To launch a terminal as root in Gnome 2 you can try the beesu
command. In order to keep it open after the execution of the command has terminated and to specify the command itself, you can create a new Profile. At first run the command
$ beesu gnome-terminal
from any terminal, write the root's password when prompted and in the newly open terminal go to Edit --> Profiles
. Click New
to add a Profile, choose a name and click Create
. In the next window (Editing profile
) go to the Title and Command
tab and check "Run command as a login shell" and "Run a custom command instead of my shell". In the Custom command
text box type:
bash -c "cd /home/username/workspace/MMOCoreORB-Testing/bin; ./core3
Finally in the When command exits
drop-down menu select "Hold the terminal open".
Now you have to create a custom launcher on your desktop and in the Command
beesu gnome-terminal --window-with-profile=ProfileName
where ProfileName is the name you chose before. Now, when you click the launcher you will be prompted for root password, a terminal will open and the command executed as root and it will stay on your desktop until you explicitly close it.
This procedure is valid on CentOS 6 with Gnome 2.28 installed. I cannot test on Fedora or Debian-like distributions, but maybe the method is slightly different. Hope this helps.