Fun Pro-Tip - ArmFP + Debian Unstable + X11 + Sound = Actually Usable Linux on Android
Here’s a quick pro-tip for a lazy Sunday. Want to run an obscure Linux app on your rooted android tablet? Maybe you want to do some Wireshark Snooping, run a Linux game with sound, or download a set of Linux images at maximum speed? With the convergence of a few awesome technologies, we can now install and run pretty much any Linux application or environment on your Android device. Follow the steps below or check out some of the example photos of apps running on my Dell Streak 7.
- Install Linux in a chrooted environment, you can use Install Linux from the app store to save time.
- (For first-timers, open setup under the ‘menu’ in ‘Install Linux’, allow writing to root filesystem and set your loop device size and you should be good to go)
- For more advanced users, choose ‘Armhp’ for the hard floating point speed improvements and Debian testing for the additional package support. There will be some broken packages as a result from both, but the performance increase is worth it.
- Install Xserver (for graphical apps), or you can use a VNC client if you wish.
- Install an SSH client to connect to your installation
- Run the ‘X Server’ application
- Connect to localhost via terminal (select ‘local’ in connectbot), run ‘linuxchroot’. This will give you a root console on your local Linux installation if you like.
- Switch back to your terminal and set your display variable with
export DISPLAY=127.0.0.1:0.0
- Still in the terminal, install xterminal with
apt-get install xterm
. This will install a bunch of X prerequisites as well. - Fire up an X terminal for your X Server app with
xterm &
- The X terminal process will continue to run in the background, so switch on over to your ‘X Server’ application and you should see your XTerm!
- From here the sky’s the limit. You can install a window manager, try out expiramental packages, play games with sound, install SSH and FTP servers, etc.
Let’s say there’s an extremely rare Linux distribution from Russia that you can only download from an encrypted private torrent tracker. These things happen, but your android bittorrent application may not support protocol encryption. This is easy to do with your new Linux install.
- Open up a console either graphical or text as describe above.
- Install your client of choice (deluge, say) with
apt-get install deluge
- Fire it on up with
deluge &
- Add the Torrent
- Voila! Even with the crappy screens on most Android tablets it’s pretty useful. (check out my 800×480 Streak downloading an Ubuntu torrent)
- For others with limited screen space, transmission-daemon is good as you can interface with it through Android’s local browser.
[![](http://www.hunterdavis.com/content/images/2012/05/CameraZOOM-20120520160732671-150x150.jpg "CameraZOOM-20120520160732671")](http://www.hunterdavis.com/content/images/2012/05/CameraZOOM-20120520160732671.jpg) | [![](http://www.hunterdavis.com/content/images/2012/05/CameraZOOM-20120520164950292-300x225.jpg "CameraZOOM-20120520164950292")](http://www.hunterdavis.com/content/images/2012/05/CameraZOOM-20120520164950292.jpg) | [![](http://www.hunterdavis.com/content/images/2012/05/CameraZOOM-20120520174440850-150x150.jpg "CameraZOOM-20120520174440850")](http://www.hunterdavis.com/content/images/2012/05/CameraZOOM-20120520174440850.jpg) |
[![](http://www.hunterdavis.com/content/images/2012/05/CameraZOOM-20120520174549905-150x150.jpg "CameraZOOM-20120520174549905")](http://www.hunterdavis.com/content/images/2012/05/CameraZOOM-20120520174549905.jpg) | [![](http://www.hunterdavis.com/content/images/2012/05/CameraZOOM-20120520180937970-150x150.jpg "CameraZOOM-20120520180937970")](http://www.hunterdavis.com/content/images/2012/05/CameraZOOM-20120520180937970.jpg) | [![](http://www.hunterdavis.com/content/images/2012/05/CameraZOOM-20120520181213148-150x150.jpg "CameraZOOM-20120520181213148")](http://www.hunterdavis.com/content/images/2012/05/CameraZOOM-20120520181213148.jpg) |