Results 1 to 3 of 3
  1. Thread Author  Thread Author    #1  
    igotsanevo4g's Avatar
    Retired Moderator

    Posts
    3,558 Posts
    Global Posts
    3,549 Global Posts
    ROM
    Ice Cream Sandwich

    Default [Guide] How to root Nexus S, using Linux

    I'm not responsible for what you do to your phone, yadda yadda, you know the drill


    Its pretty straight forward, lets get to it. 2 options: easy, and involved.

    This is the hard way, scroll down if it's not for you.

    1. Set up the working AndroidSDK. We have a guide for that also, AndroidSDK linux

    2. Add packages buy doing either - Navigating to your AndroidSDK folder, going to the 'tools' folder and double-clicking the file called 'android'; if a popup opens asking you what you want to do with it click 'Run'.

    - Using this command: /home/<your-user-name>/Downloads/AndroidSDK/tools/android

    3. Then, In Android SDK and AVD Manager, click on "Available packages". Check the box next to "Android SDK Tools, revision 8" and "Android SDK Platform-tools", and click on "Install Selected" then "Install". When prompted click "Yes" to restart ADB.

    You should now have a folder in /home/<your-user-name>/Downloads/AndroidSDK/ called "platform-tools".

    4. Now we put fastboot (in the stuffs zip attached here, grab both fastboot files) in the previously mentioned platform-tools folder then navigate to the file, right click it, click 'Properties', go to the 'Permissions' Tab and check 'Allow executing file as program'. OR use this command "chmod +x /home/<your-user-name>/Downloads/AndroidSDK/platform-tools/fastboot"

    5. Now to set things up so adb and fastboot recognize your Nexus.

    - Type this command into a terminal:
    gksudo gedit /etc/udev/rules.d/51-android.rules

    - Paste this into the blank file:
    SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"

    - Click save and close.
    - Then, type the following terminal command:
    sudo restart udev

    6. Now we set up a path, enter:
    gedit .bashrc

    And add this line to the top of the file, filling in what yours really is:
    #AndroidDev PATH
    export PATH=${PATH}:/home/<your-user-name>/Downloads/AndroidSDK/tools:/home/<your-user-name>/Downloads/AndroidSDK/platform-tools

    Save and close

    7. On your Nexus S, go to Menu>Settings>Applications. Select "Development" and check the box next to "USB debugging" Power off the phone, and then hold down the Volume Up button and the Power button simultaneously to get into Bootloader/Fastboot mode. Connect your Nexus to the computer via USB.

    8. Run fastboot oem unlock, and viola. Your bootloader is unlocked after confirming on screen.

    9. Flash a recovery by: fastboot flash recovery /home/<your-user-name>/AndroidSDK/platform-tools/name-of-recovery.img

    10. Flash the super user zip. -DONE

    Time for the easy way now!


    1. Turn off your nexus s, boot into fastboot mode by holding down both Volume Down and Power buttons together. Once in fastboot mode, connect your Nexus S/Nexus S 4G to your computer via micro-USB cable.

    2. Download this nexussrootICS zip and un-zip the file

    3. Navigate to the nexussrootICS that you just un-zipped in command (cd /nexussrootICS)

    4. Then enter ./fastboot-linux oem unlock and agree to unlock your bootloader

    5. Now enter ./fastboot-linux flash recovery twrp-crespo-2.0.0RC0.img to flash a recovery

    6. Flash the super user zip and youre rooted!
    Some say the glass is half empty. Some say its half full. I say, "Are you going to drink that?"
  2. #2  
    RamboDroid's Avatar
    A|C Fanboy

    Posts
    173 Posts
    Global Posts
    175 Global Posts
    ROM
    TrickDroid

    Default Re: [Guide] How to root Nexus S, using Linux

    Ok I am trying to do this via the easy way and having no luck....


    pastor@ubuntu:~$ cd /home/pastor/Desktop/nexusrootics
    pastor@ubuntu:~/Desktop/nexusrootics$ ./fastboot-linux oem unlock
    bash: ./fastboot-linux: Permission denied
    pastor@ubuntu:~/Desktop/nexusrootics$

    Something I am doing wrong here?
    Pearl >curve8900 >curve8330 >HTC Hero >HTC EVO 4G>Optimus S >Nexus S 4G >HTC EVO 4G >Epic Touch 4G>Galaxy Nexus>HTC One S>GNote 2>Nexus 4>LG G2
  3. #3  

    Default Re: [Guide] How to root Nexus S, using Linux

    chmod 777 fastboot-linux

Posting Permissions

B