LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to start GNOME terminal as root? (http://www.linuxquestions.org/questions/linux-software-2/how-to-start-gnome-terminal-as-root-755873/)

tatacalu 09-17-2009 06:26 AM

How to start GNOME terminal as root?
 
How can I start the GNOME terminal logged in directly as root? I would be interested in a panel launcher, or a launcher in the applications menu.
My distribution is Fedora 11 x86_64.

Thank You!

jkzfixme 09-17-2009 06:59 AM

Quote:

#!/bin/sh
#
#
#This script opens a root-based gnome-terminal in the directory you select.
# You need to have appropriate sudo priveleges.
#Install in your ~/Nautilus/scripts directory.

cd $NAUTILUS_SCRIPT_CURRENT_URI
sudo gnome-terminal

Regards,
JKZfixme

tatacalu 09-17-2009 07:01 AM

without sudo?
 
Can't it be done without sudo ?
I managed to open Nautilus as root using beesu... can't a similar thing be used for the terminal or sth?

repo 09-17-2009 07:07 AM

I now KDE has a root terminal.
Perhaps someone who uses KDE can paste the command used to open the terminal.

archlinux_jessica 09-17-2009 09:43 AM

I believe this should work. gksu is a gtk frontend for sudo. I believe the KDE version uses a kde frontend for the same command. kdesu is the kde frontend.

gksu gnome-terminal

tatacalu 09-17-2009 12:00 PM

No gksu on fedora
 
There is no gksu on Fedora, only beesu, a similar alternative.
But when I run beesu gnome-terminal from the terminal the following errors occur:

Code:

[tatacalu@leptan1 ~]$ beesu gnome-terminal

(beesu:2734): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed

(beesu:2734): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
Failed to contact the GConf daemon; exiting.

Does anybody have any ideea?
How is the security implemented into the launchers from the System->Administration menu [for example] ?

Or... as repo said, cand someone with Fedora KDE paste the command here ?

Thank you

lutusp 09-17-2009 05:35 PM

Quote:

Originally Posted by tatacalu (Post 3687222)
There is no gksu on Fedora, only beesu, a similar alternative.
But when I run beesu gnome-terminal from the terminal the following errors occur:

Code:

[tatacalu@leptan1 ~]$ beesu gnome-terminal

(beesu:2734): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed

(beesu:2734): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
Failed to contact the GConf daemon; exiting.

Does anybody have any ideea?
How is the security implemented into the launchers from the System->Administration menu [for example] ?

Or... as repo said, cand someone with Fedora KDE paste the command here ?

Thank you

You're running KDE? Okay, will you accept a fully functional alternative?

$ kdesu konsole

If you're running KDE, why are you trying to use a Gnome superuser dialog to launch a Gnome shell application?

repo 09-18-2009 01:32 AM

Quote:

You're running KDE? Okay, will you accept a fully functional alternative?
$ kdesu konsole
If you're running KDE, why are you trying to use a Gnome superuser dialog to launch a Gnome shell application?
The OP is using GNOME

tatacalu 09-18-2009 03:46 AM

Gnome 2.26
 
I am running GNOME 2.26

paulo.monk 09-18-2009 08:11 AM

Did some quick search and this is reported as an gtk | glib bug.
Which version of these are you running?

tatacalu 09-18-2009 08:57 AM

Gtk / glib
 
I am running Fedora 11:
* GTK+ 1.2.10-68
* GTK2 2.16.5-1
* GLIB 1.2.10-32
* GLIB2 2.20.4-1

I assume that they are as close to the latest stable packages as I can get, as I am updating my packages as often as the updates come out.


All times are GMT -5. The time now is 04:00 AM.