Carry A Git Server In Your Pocket

android-git-server

We love using Git for its superior version control. We often host our more advanced projects in a public Github repository. But the bulk of our little experiments are simply local repos. This is fine if you’re always at home, but if we are away from home we find ourselves having to SSH into our server to copy over the Git files. [Andrew] found a way around this slightly awkward process. He used an old Android phone as a Git server.

This actually makes a lot of sense when you start to think about it. Most Android phone have a microSD card slot to provide a huge storage bin (the lack of this on the Nexus 4 is baffling) so you don’t need to worry about running out of space. All of these devices have WiFi, making it easy to use them as an AP when there isn’t any other WiFi around. And the web-connected nature of the device will make syncing your repo over the Internet a snap.

Most of the behind the scenes work is done using Debian packages. This provides a few issues which [Andrew] walks through one by one. We also like his pointers like using ‘noatime’ on your EXTx file systems to avoid wear on the SD card.

Using An Android As A Webserver

In the latest episode of XDA TV [Adam Outler] turned his Android phone into a webserver. At first this might sound comical, but the ever-increasing power of our handhelds makes it a pretty legitimate option. It’s hard to come up with concrete uses off the top of our head, but we’re sure there’s value in being able to pull the phone out of your pocket and serve some content.

The app BotBrew Basil makes the installation process nearly automatic. It gives you point-and-click access to install the lighttpd webserver package and set the daemon to run automatically at boot time. That’s it! Of course you need to supply your own HTML to be served. [Adam] used an HTML5 website template for this.

Next you also need a way to resolve the address of the phone. In this case it’s assigned a static IP from the router, and a dynamic DNS service provides a link that maps to the router’s location. But since these phones are running Linux (at least on the lowest level) it should be pretty easy to add a cron job which will send IP address updates to the service if you want to take the ‘webserver’ out in the world with you. You can watch the entire video after the break.

Ironically this is a big hardware upgrade for [Adam’s] webserver. The previous version was running from an Evalbot.

Continue reading “Using An Android As A Webserver”

Chumby Webserver Using Upgraded Internal Storage

The Chumby One has an internal SD card offering a fair amount of storage. [Kenneth Finnegan’s] came with a 1 GB card that had about 500 MB left over which he filled with a collection of MP3s. But he wanted to do more and so installed a pre-compiled version of lighttpd to act as a web server. The problem is that this binary requires a thumb drive to be plugged in because it maps the storage directory to the mounted USB folder. He wasn’t happy with that so he upgraded the internal SD card and rolled his own webserver to run from the internal SD card.

The upgrade involved going from a 1 GB to an 8 GB microSD card. In order to run the webserver internally he needed to recompile lighttpd to use a different root directory. This meant setting up an ARM cross-compiler and eventually finding a new place for the start up script. The location change for the ‘lighty’ directory leaves us wondering if a symlink couldn’t have solve the problem without recompilation. But we don’t have the hardware on hand to try this out ourselves.

But if you want to give it a shot, check out [Bunnie’s] post about Chumby-based hardware. Looks like you can head out to the big-box store and have one in hand without shelling out too many clams.