Panel-Launcher for a Root-Terminal
August 7th, 2009
Another not-so-trivial problem with a beautifully simple solution within half an hour. First I created a panel launcher and started hacking its Command Line.
sudo gnome-terminal
Wrong. Nothing happens.
gnome-terminal -e su
Looks better, a terminal-window appears, but disappears again after entering the password. Should have remembered. If a command is specified, bash does not become interactive, closes when the command is completed.
sudo bash
That’s it, baby!
gksudo gnome-terminal
If you insist on an additional login window appearing
Why don’t you consider using the “awesome” window manager. It’s a tiling manager centered around using terminals only.
I’ll remove Gnome first thing in the morning and install “awesome”. Or maybe not
Anyway, thanks for the gksudo solution. For instance if I ever need a launcher for a GTK application run as root, I’ll definitely use gksudo and not sudo. Sudo would open an awkward additional terminal window, right?