Posted on November 21st, 2011 in android, Linux | 2 Comments »
I’ve been on a multi-month long side project trying to create a low powered web server for hosting an offline version of Wikipedia in the dessert (long story). I assembled my own machine from Newegg but even with solid-state it was running between 30-50 watts.
My latest approach has been modifying a Linksys NSLU2, an old low-powered network storage device, and installing Debian on it (thanks to great documentation from the NSLU/Linux community). The end product is a web server that runs between 3-5.5 watts! And it’s able to support two usb drives. Not the fastest machine but certainly useable, especially at the cost of only $35 used for the device off Craigslist (compared also to the $225 or so I spent assembling the machine above.)
While I think it’s the approach I’m going to go with, I found a link where someone installed Ubuntu on their Android device. This piqued my interest as it’s also a low wattage device (and the fact that I have a Galaxy S sitting around doing nothing.) I followed the steps, and though it worked well, the Ubuntu package manager has problems when you want to install any new packages or do an update. It just 404′s like so:
Err http://ports.ubuntu.com karmic/main Packages 404 Not Found
After much research I ended up having to change
deb http://ports.ubuntu.com/ubuntu-ports karmic main universe
deb http://old-releases.ubuntu.com/ubuntu/ karmic main universe
I tried to post this update to the blog above but it errored out, so I’m leaving the solution here instead should anyone else have the issue.
Additional note In the case of the NSLU2: if DHCP has assigned the Slug an ip address but your wireless router doesn’t find it, use nmap to ping for port 22 on your subnet:
nmap -p 22 --open -sV 10.0.0.0/24