Sunday, September 8, 2013

Install CyanogenMod(CM) 10.1 on Nexus 7 using Ubuntu

I recently wanted to install CyanogenMod(CM) 10.1 on my 1st Gen Wifi Nexus 7 and decided to roll all the steps into a simple to use script.  This script has been tested on Ubuntu 12.04 and Ubuntu 13.04 on a 1st Gen Nexus 7 running stock Android 4.2.2.  It will factory reset your device so make sure you back up anything you want to keep(you will be prompted before the factory reset).    As a bonus installing CM10.1 also roots your Nexus 7 too.

The script provides step by step prompts to do the following:
  • Install ADB if not present
  • Install Fastboot
  • Unlock bootloader
  • Install ClockworkMod Recovery
  • Backup your existing ROM
  • Install CM10.1
  • Install Google apps

To run the script simply open a terminal and run the following command(in a directory you have write access to):

 wget http://ubuntuone.com/5422gu14eWnrRkiu7uNfOx -O nexus7_cm_install.sh && chmod +x nexus7_cm_install.sh && ./nexus7_cm_install.sh

Now just follow the prompts to complete the install.

NOTE: I found my Nexus 7 was running really laggy after a few months and it turned out that the problem was a bug in Android 4.2.2.  Running an app called LagFix made heaps of difference and cleared up all my lag issues, so if you're experiencing a similar problem give it a try.