Today there is again an article on Android. More specifically, it’s about how you can run Android and Ubuntu (Linux) in parallel on your smartphone or tablet. Although I had already blogged about it before, but today I want to explain the whole setup process, step-by-step (using a slightly different method).
The title of this article is actually not quite correct, because we will not install Ubuntu, but setup some kind of a live system – so we get down to business.
I used my Galaxy S2 for the project. If it works with other smartphones, I could not test, but would be happy about comments on your part, if you tried it.
For our purposes we need the following things / conditions:
- Android based device with root rights
- Android Terminal Emulator (freely available on Google Playstore)
- android-vnc-viewer (freely available on Google Playstore)
- A special Ubuntu Image
- Shell script for starting the Ubuntu system
The two apps you can find in Google Play or you just click on the names of the apps in the list above. The shell script and the Ubuntu image you can download either from Google Docs or directly from my server.
Download from Google Docs:
Download from code-bude.net:
If you have downloaded everything, extract the two .rar-archives and then you can start already.
Copy the two files from the archive (ubuntu.img and ubuntu.sh) on your Galaxy S2. I have created a folder called “ubuntu” on the SD card for that purpose. But basically you are free to choose the folder name.
When you are finished copying, you open the terminal emulator app and give in the following commands.
su cd /sdcard/external_sd/ubuntu/ sh ubuntu.sh
With “cd” we go to the folder that we have specified after “cd”. If you have chosen a different path for the files from the archive, then of course you have to specify your own path at this point. Then with “sh” we run the shell script “ubuntu.sh”.
Let’s go on. After you have typed the three commands, Ubuntu starts already. In order to see something now, we need the android-vnc-viewer app. Minimize (not close) the terminal app and open the VNC Viewer.
Give the following details:
Color Format: 24 Bit
Now, when you click “Connect”, you are ready. You can now work with your new Ubuntu system. If you want to quit the whole spook again, shutdown Ubuntu via the Start menu, then disconnected the VNC Viewer (Android menu button -> Disconnect) and open again the terminal emulator and close the terminal window at the end (Android menu button -> close window ).
If you need more details or want to see a live demo, watch one (or both) of the two following videos I made for you:
I hope you had fun reading and watching the videos. If you have questions or have any tips, just write me a comment.