Re: su and X question
I used to have te same problem. It is because root cannot access to the X server.
Here the sollution:
user$ xhost + (press enter)
And then:
user$ su (without the "-") (press enter)
password: (type your root password)
root#
Now you can launch windows from shell as root.
Ciao!
Matías.-
On 4/12/06, Chris <
list.hurschler@gmx.de> wrote:Hello,
Hi I'd like to open X-applications like the in the example below from an su
Terminal, but get an Xlib connection error. I have set up sudo so that: sudo
kwrite /etc/fstab works, but how come it doesn't in a normal su Terminal?
Thanks,
Chris
athlon:/home/stoffel# kwrite /etc/fstab
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
kwrite: cannot connect to X server :0.0
--
C. Hurschler
--
To UNSUBSCRIBE, email to
debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
--
----------------------------------------------------------------------------------------------------------------
"La vida es una aplastante derrota tras otra, hasta que acabas deseando que se muera Flanders."
Homero Simpson
Dios es el único ser que para reinar no tuvo ni siquiera necesidad de existir.
Charles Baudelaire
Reply to: