For the lucky owners of the Samsung Nexus S, XDA forum member BlackOtaku has written a shell script to automate some of the more menial tasks involved with unlocking the Nexus S bootloader and rooting it.
The script also guides you through the various tasks involved in the process. Remember that unlocking the bootloader will wipe your entire device including the USB storage, so make sure you backup before running.
BlackOtaku states that the script should run fine on most configurations. You’ll need to download the script, rename and mark it as executable. Double clicking and run in Terminal and then it’s just a case of following the instructions given in the script.
For more information and to download the file, head on over to the forum thread._________