Canonical, the company behind “Ubuntu” has hit yet another milestone with their latest Announcement of Ubuntu and Android dual boot developer preview. Official Dual boot support for Android and Ubuntu was unveiled by Canonical with the claim “Christmas has arrived early”. It is still however in developer preview stage and is currently targeted at developers who are familiar with their partition layouts and willing to go about reflashing since the recovery partition will be erased.
Ubuntu now supports many Android flavours and can be built from a “Stock” base. “Dual boot” is a GUI interfaced app to quickly switch between OSes and has been tested with the Nexus 4.
Installing in Dual Boot
1. First step is to install the “Developer Preview Tools”. Open a terminal and type the following.
sudo add-apt-repository ppa:phablet-team/tools
sudo apt-get update
sudo apt-get install phablet-tools android-tools-adb android-tools-fastboot
2. Now, we need an unlocked Android device. This can also be done by enabling USB Debugging on your phone and connecting it in “Fastboot” to your system and opening a terminal and typing
sudo fastboot oem unlock
3. Make sure a current image of your OS is saved in order to return to it.
4. Now, download the installation script to your home directory from here and make it executable with the command
chmod +x dualboot.sh
5. To install dual-boot (“Ubuntu Installer”), run the following command on your desktop with your phone connected.
If you are using a stock rom without a SuperUser app flashed
On non stock OSes like CyanogenMod, use this instead.
You phone may reboot several times and finally boot into Android. You should find “Ubuntu Installer” in the Apps section.
6. To install Ubuntu, we need to first clear up space. Type the following command in terminal.
adb shell "su sh rm -rf /cache/*"
Now run the “Ubuntu Installer” app. Choose “Trusty” channel. You will be required to make a few SU(Superuser) grants when prompted.
7. When done, press “Reboot to Ubuntu” to boot to Ubuntu.
Troubleshooting and returning to normal
If something goes wrong or if you need to return to your former state, you will need to reflash recovery and restore from your backup.
Choice is certainly great for the market, especially when one choice does not compromise another. Users should still be able to use their favourite android apps the way they love them and their PC apps just as seamlessly by connecting to monitor and keyboard without ever needing two devices. Canonical may have earned a few cold shoulders among the Linux community, but they definitely deserve credit for one thing.