PS: Always use the "exit" command to shutdown Ubuntu! Or next time you will experience problems. If this occurs, you will have to edit the bootubuntu.sh file. So, search for "export loopdev=/dev/block/loop3" line and replace loop3 with loop4. Save and exit. The problem will be probably solved.
Original post+home-made method
Hey guys! There was a request that you want to use Ubuntu on Cyanogenmod. I will show you how to install and use it.
I posted here
Запуск Debian Lenny на Samsung GT-I5700 Spica how to use ubuntu in Eclair. But at the moment apps2sd is not working, so this method is not good for us. I have read in saurik's homepage how to create ext2 formatted img file so it was a big help for me. The original method was posted here:
Debian & Android Together on G1 - Jay Freeman (saurik) So, let's rock 
First, if you want to use
only the console, download my uploaded tarball here:
MEGAUPLOAD - The leading online storage and file delivery service, or
Multiupload.com - upload your files to multiple file hosting sites!
extract, and copy the ubuntu.img file to your sdcard's root. Then download the bootubuntu.sh attachment and copy it to sdcard's root, too. Then execute these commands in terminal or in ADB:
Code:
su
sh /sdcard/bootubuntu.sh
And that's it
When you first start Ubuntu, please execute this (thanks to cygnus) Code:
echo deb Index of / jaunty multiverse >> /etc/apt/sources.list
echo deb Index of / jaunty universe >> /etc/apt/sources.list
apt-get update
PS: this img file has about 50MB of free space.
Second method: You want to use GUI.
It is a bit complicated, you must have linux to do this method. (I suggest Ubuntu)
First, download this tarball here:
http://paolo.sammiche.li/android/ubuntu.tar.gz
Then copy it to your home directory.
After it:
Code:
cd ~
Login as root:
sudo su
tar -zxvf ubuntu.tar.gz
chown -hR yourusername $HOME/ubuntu
mkdir mountdir
dd if=/dev/zero of=ubuntu.img seek=749999999 bs=1 count=1 # this will create a 750MB img file.
mke2fs -F ubuntu.img
mount -o loop ubuntu.img mountdir
cp -r $HOME/ubuntu/* $HOME/mountdir
umount mountdir
You must have 750MB of free space in your sdcard. Attach your phone to your PC, enable USB mass storage mode. Copy the created ubuntu.img file to your sdcard's root. Download the attached bootubuntu.sh to your sdcard's root, too.
Execute:
Code:
su
sh /sdcard/bootubuntu.sh
in this method you will have a lot of free space in the img file, you can install GUI, posted here how:
Re:Gnome, KDE, IceWM or LXDE Desktop on your Android! - AndroidFanatic Community Forums
Bookmarks