DarkELEC – Raspberry Pi optimised OpenELEC fork

NEW VERSION! http://darkimmortal.com/2012/08/darkelec-release-2/

None of the currently available solutions do a perfect job with running XBMC on the Pi, however OpenELEC comes by far the closest, in spite of its locked down nature.

This fork aims to remedy the very few flaws in its implementation and to focus 100% on the Pi, while also sticking to the upstream and incorporating its updates.


  • Low idle CPU usage (< 15%)
  • Smoother and more responsive
  • Built in XBMC addons: iPlayer, custom fixed version of Demand 5, various unofficial repos
  • iPlayer, 4oD, Demand 5, ITV Player, SportsDevil all fully tested+working
  • Improved wifi connectivity
  • Added test-connman scripts for easy wifi setup (see here)
  • Added wireless_tools (iwconfig etc.)
  • Added rndis_wlan wifi driver (broadcom 4320 chipset)
  • Easy SD card installation script for building from source (./install [block device])

Download pre-built SD Card image: darkelec1.zip (~75MB)
(Fixed partition size at just under 2GB total, you can expand manually with GParted if necessary)

Source: https://github.com/darkimmortal/DarkELEC
(Refer to Building and Installing OpenELEC for Raspberry Pi – expect build issues on anything but a stock debian squeeze i686 install)

My ruTorrent fork – extsearch fixes and other improvements

Posting this mainly to get Google presence, as many ruTorrent users will likely find these fixes useful.

At the time of this post, it includes the following:

  • Fixed extsearch engine for TorrentDamage
  • Fixed extsearch engine for Bit-HDTV
  • Fixed extsearch engine for BTN
  • Fixed extsearch engine for TorrentLeech
  • Fixed extsearch engine for IPTorrents
  • Fixed extsearch engine for what.cd and added optional ‘File list@Artist name’ search syntax
  • Displays incomplete torrents downloading at extremely slow speed or not at all as ‘Seeding (i)’ as opposed to the more annoying ‘Downloading’

New 06/06/2012:

  • Added hacky/basic realtime extsearch status (memcache required, single user only)
  • Fixed extsearch engine for TorrentDay
  • Fixed extsearch engine for IPTorrents (again)
  • Fixed extsearch engine for TorrentLeech (again)
  • Improved extsearch performance


Realtime ASIO VST-based DSP for entire system audio

  1. Acquire Virtual Audio Cable
  2. Acquire Reaper
  3. Acquire ASIO4All
  4. Create a virtual audio cable: Sample rate 44100-sound card max, 16-24bit, volume enabled, ‘cable range’
  5. Set the cable as the default Windows output device
  6. In Reaper device settings, pick ASIO, ASIO4All, fiddle with ASIO Configuration until both your sound card and Virtual Audio Cable 1 are available as inputs and outputs, then pick Virtual Audio Cable 1 and 2 as inputs and (Your Sound Card) 1 and 2 as outputs.
  7. Tick request sample rate and put your sound card maximum, and request block size and put the smallest value you can without mega distortion
  8. Create a track, turn on monitoring/record armed, add any VST effects or generally do whatever you like with the audio :3

Improved free method to access Tera Online Japanese open beta

Follow the instructions here: http://www.reddit.com/r/TeraOnline/comments/j2tv2/japanese_open_beta_test_coming_soon_guides_on_the, but with some improvements:

  • Free fast and reliable proxy
  • No need to change system language to Japanese

Firstly, sign up for an Amazon EC2 account,which is free for a year, essentially giving you a Tokyo based VPS for free. Next, configure Polipo or a similar HTTP proxy on it or another linux box, with it set to parent requests through the SOCKS5 proxy built into SSH on the Amazon EC2 instance.

Then edit your Polipo config to include:

forbiddenUrl = "http://shit.weeaboo.com/teraonlinehax.js"

and edit /etc/polipo/forbidden to contain:


Once done, set up Proxifier to point at the Polipo proxy via HTTP, and use these filters:

Target hosts:

*.down.hangame.co.jp; down.hangame.co.jp; images.*.jp; id.hangame.co.jp

set to Action: Direct – make sure this comes first out of the two rules.

Target hosts:


set to Action: Proxy (your Polipo proxy)



Simple version: (System language change to Japanese still required)

  • Sign up to EC2 as before, set up a Tokyo instance with any linux distro
  • Connect via Putty and enable a ‘Dynamic’ (SOCKS5) tunnel (replace xxxx with port of your choice).
  • Add (port same as before) to Proxifier as a SOCKS5 proxy
  • Follow instructions above for Proxifier, where ‘Action: Proxy’ should point at the SOCKS5 proxy.

Android Reverse WiFi/Mobile AP Tethering

Having tried and failed to get Reverse USB Tethering to work on my Samsung Galaxy S running Android 2.2, I searched for another solution. And here it is: Reverse tethering via WiFi.

This allows you to connect your phone to the internet via a computer with both a WiFi dongle and a separate internet connection.


  • Windows computer with an internet connection and a separate WiFi dongle
  • Android phone with Mobile AP tethering support


  1. Enable Mobile AP on your phone with whatever security settings you wish.
  2. Connect to the phone’s access point using the spare WiFi dongle.
  3. Bridge the connection to the phone and your internet connection via a Windows network bridge.
  4. Bring up a terminal (Terminal Emulator is a great app, otherwise you can use SSH, ADB, etc.) and type:
    netcfg wl0.1 dhcp

    (Your connection may not be named ‘wl0.1’ – run ‘netcfg’ to see a full list)
  5. Try accessing the internet on the phone and ensure the 3G indicator is not lit. You can also check via Wireshark on the host PC and you should see the phone making requests.

It seems to be working perfectly for me so far, and has fulfilled its purpose of allowing me to debug stuff running on my phone using Wireshark. Of course it works for normal internet access too. 😉

InstallMaps – an easy way to download, extract, install and bzip multiple SRCDS maps on Linux


echo ---------------------------
echo InstallMaps by Darkimmortal
echo ---------------------------
echo Paste map URLs to be downloaded here, type @ to begin downloading.

mkdir -p /tmp/installmaps
cd /tmp/installmaps

read -d @ line


if [[ $line == *tf2maps* ]]
  tff=" --wait=26"

wget --no-clobber --content-disposition $tf --user-agent="Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv: Gecko/20100401 Firefox/3.6.3" --accept=bsp,rar,zip,bz2 ${line//&/\&}

echo --------------------------------------------------------------------------

echo Extracting any compressed maps...
for f in *.zip;do unzip -j "$f";done
for f in *.rar;do unrar e -ep "$f";done
bzip2 -d -v -f *.bz2

echo Removing any non-bsp files...
ls -Q | grep -v .bsp\"$ | xargs rm

echo Zipping all maps...
bzip2 -k -z -v *.bsp
bzip2 -k -z -v *.nav

echo Moving files to the correct folders...
mv -f *.bsp YOUR_SRCDS_INSTALLATION/tf/maps
mv -f *.nav YOUR_SRCDS_INSTALLATION/tf/maps
mv -f *.bz2 YOUR_SV_DOWNLOADURL/tf/maps

echo Clearing download directory...
rm -rf ./*

echo Done!

This simple bash script allows you to paste a bunch of URLs (one per line) leading to uncompressed .bsp maps, or maps compressed as .rar, .zip or .bz2. It will then extract these maps, bzip them and move them to your SRCDS maps folder and the bzipped copies to your sv_downloadurl maps folder.

Replace YOUR_SRCDS_INSTALLATION and YOUR_SV_DOWNLOADURL with the appropriate values for your system, add Rapidshare details if you want, then you’re good to go.

Prerequisites: wget, unzip, unrar, bzip2