Table of Contents

Preparing nexus s device for dev

Unlocking the Bootloader

Warning: Unlocking the Nexus S's bootloader will void the warranty.

If the Bootloader on the Nexus S has already been unlocked, you may skip this section.

You will need fastboot on the computer to unlock the bootloader on the Nexus S. Follow the Android SDK guide, to get the fastboot on the computer.

      fastboot oem unlock 

On the Nexus S, a prompt will open up asking you if you are sure you want to unlock the bootloader and again warning you that doing so will void your warranty. If you agree to these terms, press Volume Up to select Yes, and then press the Power button to confirm.

NOTE: Unlocking the bootloader wipes the device.

The Nexus S will reboot.

Installing the ClockworkMod Recovery Image

If you have already flashed a custom recovery image, skip this section.

Download the latest version of the ClockworkMod Recovery: ClockworkMod Recovery 5.0.2.0: Download

md5: dfbc5814b776bd5a45b52d626810d192

The ClockworkMod Recovery should now be installed on the Nexus S.

Rooting Device

Not needed if Cyanogenmod rom is being flashed

* Install clockwork recovery as above.
* Download Superuser-3.0.7-efghi-signed.zip: 
  downloads.androidsu.com/superuser/Superuser-3.0.7-efghi-signed.zip
* Copy that app to sdcard
  adb push Superuser* /sdcard/
* Boot into clockworkrecovery and install that app.

Source

http://wiki.cyanogenmod.com/wiki/Nexus_S:_Full_Update_Guide