There's a very simple trick to run X apps as root. We know the usual problem when you try to run an X application from a root terminal; we get a message similar to the one below:
[application]: cannot connect to X server :0.0
So instead of jumping all kinds of hoops, just run the application by calling
kdesu (if you're running KDE),
gksu or
sux (if you're running GNOME/GTK) from a non-root terminal (for instance, to run the KDE package manager as root):
$kdesu kpackage
This is a very simple trick and does not require any hacking into your X or shell configuration files, and worth remembering if you ever need to run any X window application as root when you are logged in as a normal user.
6 comment(s)
Leave a comment »Comment by drew (visitor) on 31 Jan 2009 @ 11:13 IST #
Comment by drew (visitor) on 31 Jan 2009 @ 11:18 IST #
Comment by ray (visitor) on 1 Feb 2009 @ 18:10 IST #
Comment by drew (visitor) on 3 Feb 2009 @ 00:04 IST #
Comment by ray (visitor) on 3 Feb 2009 @ 14:13 IST #
Comment by Hari (blog owner) on 6 Feb 2009 @ 09:14 IST #