[Samsung Galaxy Nexus] FadedLite:
Root Galaxy Nexus (Either GSM or LTE) in Linux (Personally in Ubuntu)

Disclaimer: I am not at fault for anything you have done to your phone (ie. Brick, break, etc.). You are doing this at your own discression. I am merely stating what I did to unlock/root my phone.

Tutorial Broken Down Into Three Sections

I. Unlocking the bootloader

II. Installing Clockwork Mod Recovery

III. Installing SuperUser

Resources

1. Super User (used by flashing in Clockwork): http://download.clockworkmod.com/test/su.zip

You can get the latest version here: SuperUser by ChainsDD

2. Clockwork – based by carrier

1. Verizon (CDMA) version: CMW Galaxy Nexus

File name:*recovery-clockwork-5.5.0.4-toro.img

MD5:*b2d31c29b7ef785f9c0802a12264d322

File size:*5,263,360*(bytes)​

2. GSM version: CMW Galaxy Nexus

File name:*recovery-clockwork-5.5.0.2-maguro.img

MD5:*445887336a863573997ccbaeedddc984

File size:*5,427,200*(bytes)​

Unlocking Bootloader

Part 1: Unlock

1. First off, you need to download the adb drivers. There have been mentions of just getting the drivers, but I actually have the entire SDK. You can download it here. http://developer.android.com/sdk/index.html

2. Plug in your device, then open up Terminal (Ctrl + Alt + T) and type in: “lsusb” (without quotes). This will pull up all the devices plugged into your usb slots. Look for the one that says samsung (others have found google, but please make note).

3. Find the device, then find where it says ID. After where it says ID, it should have a number/letter mix such as “04e8” or such. Make note of that for later.

4. Go to http://developer.android.com/guide/developing/device.html . This will give the instructions on how to Install the device drivers (specific to each manufacturer). Start from where it says “4. Set up your system to detect your device.”

5. Go to your internal and cd to platform-tools. (This should include both adb and fastboot.) Put your phone into fast boot. (Do this by holding the power, volume up, and volume down buttons while phone is off).

6. Once in fastboot, go back to your computer and type in “sudo fastboot oem unlock”. This will bring up the option to unlock your phone's bootloader on your device's screen. It will give you a disclaimer, and it will say that if you unlock, it will wipe all of your phone's data. Scroll to Yes using the vol up or vol down buttons, and select it with the power button.

7. If you boot straight from there, you will go through a series of boot loops (it was 2 for me) then will be prompted to go through the process of setting up your Google account again. again.​

Congratulations, your phone is now unlocked. However, this doesn't mean that you have rooted your phone.

Rooting

Part 2: Putting Clockwork Mod Recovery On Your Phone

(do step one for preparation of Part 3)

1. First, we will want to push su.zip to your phone's Internal storage or “sdcard” partition. Open up Terminal and type the command “adb push 'directory_of_su.zip'/su.zip /sdcard/”. Hit enter/return and it should transfer over. (Based on the quality of usb cord, times of transfer may vary.)

To make this easier, put su.zip into the directory of adb. Then all you have to use for the command is “adb push su.zip /sdcard/”.
​

EDIT:

After you root, you have to delete /system/recovery-from-boot.p and reflash or else every time you reboot, the recovery partition will be written over by android. This can either be done in terminal (phone or comp) or by a file manager with root access (such as Root Explorer).

Reference: http://xdaforums.com/showthread.php?t=1392336

Thanks vihil

2. Put your phone in fastboot mode again (vol up + vol down + power)

3. Go back to Terminal and type in “fastboot flash recovery 'whatever the file name is'”. This will flash CWM (Clockwork Mod) onto your phone, deleting your phone's stock recovery image.

EDIT: If it doesn't work, i.e. due to permissions, run with sudo
​

Part 3: Flashing Super User onto your phone.

1. Next, go into Clockwork by hitting the volume up or down buttons till you see recovery mode. Hit the power button to enter Clockwork.

2. Scroll down (using volume buttons) till you get to “install zip from sd card”. Use the power button to select it.

3. Scroll down to “su.zip” and select it. Then, hit the selection for installing the zip file.

4. Go back using the “Go Back” selection to return to the main screen.

5. Reboot the system using the “reboot system”.​

Congratulations! You now have Root access!!!

Have fun with Flashing ROMs!

Special Thanks to scary alien on androidforums.com and jcarrz1 on XDA