How to Install Ubuntu on Samsung Galaxy S

email

Some of you may or may not be familiar with chroot, for those who are familiar with chroot good job and for those that aren’t shame on you. Just kidding please read this for some more info about chroot.
Now that we all know what chroot is, maybe it could be fun to create an chroot environment, and to make it more exciting we are not creating an x86 but an arm processor environment

There are tons of ways of doing this but this is how I am doing it. You can use this method on any ubuntu from 9.04 and higher, but keep in mind I am using 10.04 so if you get error’s try to blame it on that instead off me. So first thing we need to do is prep our own ubuntu machine to be able to build a chroot environment. To do so we install rootstock, and we do it like this:

1
sudoaptitude installrootstock

Now we can create a chroot with rootstock, this is an simple example of no nonsense chroot:

1
sudorootstock -f localhost --login ubuntu --password ubuntu --imagesize 1G --notarball

If you wish to know what this all means I recommend you to do:

1
manrootstock

To be able to access this chroot environment we need to mount it like this:

1
2
sudomount-o loop IMG-FILE_NAME /mnt
sudomount-t proc proc /mnt/proc

Now we can enter our chroot:

1
chroot /mnt/bin/bash

Or exit it and umount it like this:

1
2
sudoumountproc
sudoumount/mnt

So here you go small simple way of creating a chroot environment. Is that all you may ask your self, no it’s not, what we actually have created here above is a empty non fun chroot environment. So instead of that let’s try to make something more fun and exciting like have access to internet, have ssh server running, have an vncserver running. Here are the steps in how to do this.

Step 1, Create the image containing ssh tightvncserver lxde

1
sudorootstock -f localhost --login ubuntu --password ubuntu --imagesize 1G --notarball --dist lucid --seed ssh,tightvncserver,lxde,expect

Step 2, Start the chroot environment. You can use my script from here or do this:

1
2
3
4
sudomount-o loop imgNAME /mnt
sudomount-t proc proc /mnt/proc
sudomount-t devpts devpts /mnt/dev/pts
sudosu-c 'chroot /mnt /bin/bash'

To be able to use SSH or VNC you need to configure some things. I have created an script that can do this for you, you can download it from here.

Step 3, Configure:
Open an new terminal and then:

1
sudocpconfig.sh /mnt

Go back to your chroot and then:

1
2
chmod+x config.sh
./config.sh

Step 4, If you want to use SSH or VNC you will need to start those every time you login to your chroot. You can do this by running these command’s

1
2
vncserver -geometry 800x600
/etc/init.d/sshrestart

OPTIONAL: You can also add these commands to your bashrc script so that they will be executed for you. You can do this by running this, if you haven’t run step 3 yet you can also uncoment these two lines from my config.sh script.

1
2
sed-i '1i vncserver -geometry 800x600'/root/.bashrc
sed-i '1i /etc/init.d/ssh restart'/root/.bashrc

Step 5, To quit the chroot just do the following or use my script from here:

1
2
3
4
exit
sudoumount/mnt/dev/pts
sudoumount/mnt/proc
sudoumount/mnt

You all are set now, you have an arm ubuntu image and you have configured it all that is left to do is use it.

UPDATE For those who don’t like to do all this here is an img I created: Download

 

Cannot see the video? Follow this link to YouTube.

Subscribe to our RSS feed to stay updated with our latest blog posts!
Join our Facebook fanpage or follow us on Twitter to stay up to Date on EMOIZ about latest technology news and reviews

Post by
Bio: Tech Blogger From Azad Kashmir | Follow Naeem on Twitter @dadyal or Add me on Google+

Tags: , , , , , , , , , , , , , , , , , , , , , ,
© 2007-2012 EMOIZ.COM | By NAEEM | CONTACT | PRIVACY POLICY | PLUSLIKE | GOOGLE GRAVITY