[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: root and X problem



Petr Simon said:
> Hi,
> when I am loged as user and I change to root in a konsole I can't open
> any app getting this error:
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified


ssh root@localhost -X

or enable tcp connections on your X server and export the display:

cd /etc
grep -nri "nolisten tcp" *
(delete all references to this option)
restart your X server and/or your display manager
telnet localhost 6000 to be sure that it's accepting connections
xhost +localhost
su
(run your app)

the SSH option is the better way to go..

nate





Reply to: