Thursday, March 5, 2009

gksudo'ed Terminal

While working on the TeeVee project*, I compiled, installed and run the application as the "root" user. I needed new terminal tabs all the time and giving them root privileges was time consuming. Then I searched a bit and found that if I launch a terminal via gksudo, all the tabs created inherit the root privileges. So, I wrote the following script and run it happily afterwards:

gksudo.sh:

#! /bin/bash
gksudo gnome-terminal


I think this is a useful script. Obviously running commands with root privileges is a dangerous activity...

* I developed the code using a Ubuntu 8.04 installed Linux computer.