Home > posts > Panel-Launcher for a Root-Terminal

Panel-Launcher for a Root-Terminal

August 7th, 2009 subogero

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!

Categories: posts Tags: ,
  1. Anirudh
    August 10th, 2009 at 20:30 | #1

    gksudo gnome-terminal

  2. August 10th, 2009 at 23:25 | #2

    If you insist on an additional login window appearing :-)

  3. August 11th, 2009 at 09:43 | #3

    Why don’t you consider using the “awesome” window manager. It’s a tiling manager centered around using terminals only.

  4. August 11th, 2009 at 16:46 | #4

    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?

Comments are closed.