Thursday, May 8, 2014
How to Make an Ubuntu IMG for the Android
1. Turn on your computer, go to 'Applications,' select 'Accessories,' and click 'Terminal' to open the Terminal utility.
2. Type 'sudo rootstock \' and press 'Enter' to start creating an ARM Ubuntu image. The TAR is created in your computer's root folder and named 'armel-rootfs.tgz.'
3. Run the following commands to configure the ARM Ubuntu image:--fqdn ubuntu \
--login ubuntu \
--password anypassword \
--imagesize 4G \Replace 'anypassword' with the password you want to use when you log in to Ubuntu.
4. Run this command to add packages (programs) to the ARM image:--seed linux-image-omap,build-essential,mysql-server,tightvncserver,mysql-server-core-5.1,mysql-server-5.1,libmysqlclient16,mysql-commonYou can add as many packages as you need in the seed command. For example, to add the Lightweight X11 desktop environment, add 'lxde' to the list of packages. Note that you can use the apt-get command to get more programs after you install Ubuntu on the Android device.
5. Create an empty image file by running this command:dd if=/dev/zero of=ubuntu.img bs=1MB count=0 seek=2048You can replace '2048' (2 GB) with the maximum size you want your image to have.
6. Format the new image as ext3 to be compatible with the Android OS by running this command:mke3fs -F ubuntu.img
7. Mount the empty image to a directory, for example /mount, by running this command:sudo mount -o loop ubuntu.img /mount
8. Extract the ARM image into the /mount directory to create the Ubuntu image by running this command:sudo tar -C /mount -zxf armel-rootfs.tgz
9. Unmount the ubuntu.img image by running this command:sudo umount /mount
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment