A note about CPU supportUbuntu does not support earlier ARM CPUs like the ones used in the T-Mobile G1 and Motorola Cliq. You need at least an ARMv7 CPU like the kind found in the Motorola Droid, T-Mobile G2 or most newer phones (Hummingbird, Snapdragon, Tegra2, etc.). If you're not sure what your device has, look up your device on http://pdadb.net/, click the link under CPU, and read the line for "Supported Instruction Set(s)".
Debian supports the CPU on practically all Android devices, so if you prefer Debian, or you can't run Ubuntu, choose the Debian download below.
You will need to root your device.
Required Files:Choose one of the following:
- linux.ubuntu-natty.tar.bz2 Ubuntu 11.04 (Natty)
- linux.ubuntu-oneiric.tar.bz2 Ubuntu 11.10 (Oneiric)
- linux.debian-squeeze.tar.bz2 Debian 6.0 (Squeeze)
Required Apps:BusyBox Installer
A terminal emulator like ConnectBot or Terminal Emulator
Phase 1 - Preinstall:
(Mount the SD card on your computer.)
Extract the .tar.bz2 file you downloaded to your SD card. You should now have a folder named "
linux" on the root of your card.
(Unmount the SD card.)
Open Busybox Installer, and install Busybox.
Phase 2 - Install
Open your terminal emulator. (If using ConnectBot, connect to 'local', not 'ssh'.)
Run the following commands:
If you don't see any errors, Linux is now installed.
Phase 3 - Running Ubuntu
Open your terminal emulator.
To start a chroot session
To start the SSH server
You can then use ConnectBot (SSH: user@localhost) on your device, or any SSH client to connect to your device. See Login Information, below.
To start a VNC session
The first time you run VNC, it will prompt you to create a VNC password.
You can then use androidVNC (host: localhost port: 5901), or any VNC client to connect to your device.
Note: The default desktop environment is icewm. If you wish to replace it, for example, with LXDE:
Run the following as root in Linux:
apt-get autoremove icewm- lxde+
Please remember to change these passwords if you are planning on using the SSH server. Malicious people can do Very Bad things to your device if you don't.
There are two accounts included in the images:
If you would like to try a different distro altogether, you can download just the collection of scripts involved in installing, mounting, and running Linux. Your filesystem image should be
/sdcard/linux/linux.img. You will need to modify the scripts in
linux/root-scripts/ to suit your distro.