So you want to root your Galaxy S3 on Linux/Ubuntu? Using Heimdall, you can.
THIS IS ONLY FOR GALAXY S3 GT-I9300!
For Windows, please see How to Root Galaxy S3 on Windows!
For Mac OSX, please see How to Root Galaxy S3 on Mac OSX!
Step 1. Put your phone into download mode by holding down Volume Down, Center Home, and Power button together for about 10 seconds.
Step 2. When you see the warning sign, press Volume Up button to enter Download ODIN mode.
Step 3. Connect a microUSB cable from your Galaxy S3 to your Linux/Ubuntu computer.
Step 4. Next, download GalaxyS3RootLinux.zip and unzip. You will find a folder called GalaxyS3RootLinux with all the files you need for rooting.
Step 5. Open up a command terminal and type:
chmod 755 *
sudo heimdall flash --recovery recovery.img
Step 5. Your phone should install the recovery image and reboot.
Step 6. Once your Galaxy S3 reboots, copy over the file CWM-SuperSU-v0.87.zip from the folder GalaxyS3RootLinux to the internal storage or SD card of your phone.
Step 7. Reboot into ClockworkMod Recovery by holding down Volume Up, Center Home, and Power button together for about 10 seconds.
Step 8. Once in ClockworkMod Recovery, choose “install zip from sdcard”.
Step 9. Next choose “choose zip from sdcard” or “choose zip from internal sdcard” depending on where you put the file in Step 6.
Step 10. Choose CWM-SuperSU-v0.87.zip.
Step 11. Choose “Yes”.
Step 12. Once it’s done flashing the file CWM-SuperSU-v0.87.zip (the Superuser zip file), simply reboot and enjoy a fully rooted Galaxy S3.
Step 13. You will find SuperSU app once rebooted.
Step 18. You can now run rooted apps!
Q: Does this root method erase my settings and apps?
A: No, it doesn’t touch a thing, very safe to do.
Q: I ended up in Kernel panic mode, what do I do?
A: Relax, that’s same as ODIN download mode, simply run Heimdall again and flash the files again, it will work.
Q: I don’t get ClockworkMod Recovery like you do, just get Android with belly open.
A: If you’ve updated to newer software update, the stock OS will over-write ClockworkMod Recovery on reboot. To fix this, make sure “auto-reboot” is checked off in ODIN, then take the battery out when it’s done flashing in ODIN. Then enter ClockworkMod Recovery right away.
More questions? Please leave in the comment section below for help from author and other users.
More on this Root Method
This root method simply installs ClockworkMod Recovery to the recovery partition and installs Superuser zip file, very safe to do. With Galaxy S2, recovery partition was part of the kernel and was a bit dangerous but with Galaxy S3, Samsung has made recovery parition separate from the kernel, making it much safer just like how Galaxy Nexus works.