Install Ubuntu Phone in a Nexus 4 (step by step from me, as a complete newbie in this)

Well :) I bought a second hand Nexus 4, because I want to test uNav in it.

I never flashed an Ubuntu Phone, then, I'll put step by step :P Any doubts, please ask in comments.

I followed this official guide, but I didn't backup Android.
Step 1. Install in Ubuntu Desktop the software for flashing phone:
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update
sudo apt-get install ubuntu-device-flash
sudo apt-get install phablet-tools


Step 2. Enable adb to see the device:

Connect Nexus by USB, turn it on
Settings > About Phone
About Phone > Build number > Tap 7 times to become developer
Settings > Developer Options > USB Debugging
Click to enable USB Debugging mode
Acept popup (remember checkbox)

costales@dev:~$ adb devices
List of devices attached
0065f7f61916b80b    device
costales@dev:~$


Step 3. Reboot in recovery mode:

costales@dev:~$ adb reboot bootloader
costales@dev:~$



Step 4. You'll see your device here:

Remember "PRODUCT NAME - mako" that mako ;)

Step 5. Check phone is visible yet:


costales@dev:~$ fastboot devices
0065f7f61916b80b    fastboot
costales@dev:~$


Step 6. Unlock OEM lock:
costales@dev:~$ sudo fastboot oem unlock
[sudo] password for costales:
...
OKAY [ 14.160s]
finished. total time: 14.160s
costales@dev:~$

Step 7. Accept OEM unlock:
Volume up > Accept with Power button: LOCK STATE will be unlocked, in red

Step 8. Reboot.
costales@dev:~$ fastboot reboot
rebooting...
finished. total time: 0.001s
costales@dev:~$



Phone will reboot in Android, this will take a while. When it will boot, skip everything Android will ask. Poweroff the phone.

Step 9. Choose your Ubuntu Phone channel:
Take a look to what version of Ubuntu Phone you want (stable, rc-proposed...):
https://developer.ubuntu.com/en/start/ubuntu-for-devices/image-channels/

Step 10. Reboot in Recovery mode:
Reboot in recovery mode: Power off + Volume Down

Step 11: Install Ubuntu Phone with your desired channel:
I'll choose the rc-proposed (I want to try next things :D):
ubuntu-device-flash touch --channel=ubuntu-touch/rc-proposed/ubuntu --bootstrap

Install in recovery boot


It'll take a while:

costales@dev:~$ ubuntu-device-flash touch --channel=ubuntu-touch/rc-proposed/ubuntu --bootstrap
2016/02/08 19:58:01 Expecting the device to be in the bootloader... waiting
2016/02/08 19:58:01 Device is |mako|
2016/02/08 19:58:02 Flashing version 361 from ubuntu-touch/rc-proposed/ubuntu channel and server https://system-image.ubuntu.com to device mako
10.61 MB / 273.55 MB [=>________________________________________________________________] 3.88 % 85.43 KB/s 52m31s


Step 12. Wait the Ubuntu menu

A menu with Ubuntu logo will appear, don't touch anything, the phone will restart by itself ;)

Wait, don't choose anything

All is done :)) Enjoy the freedom, enjoy your Ubuntu Phone!

Yes!!! :D

EXTRAS:
Convergence:
Do you want connect the Nexus to a Monitor and have an Ubuntu Desktop? Follow this guide :)

Picture of Marius Quabeck

Run desktop apps:
Do you want to run Desktop apps in your Ubuntu Phone? Follow this guide :))

Thanks to Marius & Gonzalo for their help!


10 comments:

  1. ubuntu-device-flash touch --channel=ubuntu-touch/rc-proposed/ubuntu --bootstrap... waiting
    just waiting and waiting. nothing is going on. how long need to wait? :)
    phone in recovery mode already 10 minutes

    ReplyDelete
    Replies
    1. You need to be in fastboot mode if youre using --bootstrap

      Delete
  2. Even in the example it was 52m31s (52 minutes more)

    ReplyDelete
  3. @Henpyxa: It was ~20minutes for me. But it could take more time.

    @Ricardo Gaya: Another devices here: https://wiki.ubuntu.com/Touch/Devices

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Any reason to use this method and not MultiROM? I've generally found MultiROM to be a lot simpler (and then I can dual-boot Android and Ubuntu . . . well, triple-boot Android, Ubuntu, and SailfishOS, really :P)

    ReplyDelete
  6. did u success install ubuntu desktop on nexus devices?

    ReplyDelete
  7. sorry to post on an old thread.
    Great write up, worked like a charm.

    2017/02/09 10:30:19 <-- Start
    2017/02/09 10:42:09 <-- Finished

    ReplyDelete