Hari's Corner
Humour, comics, tech, law, software, reviews, essays, articles and HOWTOs intermingled with random philosophy now and thenSimple way to run X apps as root in Linux
Filed under:
Tutorials and HOWTOs by
Hari
Posted on Wed, Jan 28, 2009 at 20:44 IST (last updated: Fri, Jan 30, 2009 @ 07:27 IST)
[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.
Comments closed
The blog owner has closed further commenting on this entry.
6 comment(s)
Comment by drew (visitor) on Sat, Jan 31, 2009 @ 11:13 IST #
Comment by drew (visitor) on Sat, Jan 31, 2009 @ 11:18 IST #
However, tips like this are what the internet is for, so definitely keep em coming
Comment by ray (visitor) on Sun, Feb 1, 2009 @ 18:10 IST #
Comment by drew (visitor) on Tue, Feb 3, 2009 @ 00:04 IST #
Ncurses is good, but can be a pain when you forget which menu option you're working in. A few times I've dropped out of some hard drive config options and then continually returned to the same options because I was convinced I was elsewhere in the menu.
Comment by ray (visitor) on Tue, Feb 3, 2009 @ 14:13 IST #
Comment by Hari (blog owner) on Fri, Feb 6, 2009 @ 09:14 IST #