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!