You are not logged in.
Pages: 1
Yesterday my brother needed visiting a site while I was using the computer.
He needed one of his bookmarks, I opened a terminal and he used 'su brother', wrote his password and started firefox from the terminal.
We got this message:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(firefox-bin:5195): Gtk-WARNING **: cannot open display:
What does it mean? Is it avoidable?
Offline
what desktop enviroment you using?
on your menu do you have "run" with options
like run as different user
kde offers this dont know bout gnome or others
Offline
It's by design, so that random people on the network can't put windows on your screen or steal your output. xhost configures the exceptions. If you do "xhost localhost" in one of your terminals he should be able to run things. If you do this all the time put it in your .xinitrc.
Offline
try
xhost +localhost
so that all the request from localhost would be approved.
Offline
Thank you ataraxia! Good to finally know the 'proper' way to tackle this. I had been using the following hack in my bashrc to accomplish this with su:
if [ `id -u` = "0" ]; then
if [ "$USER" != "root" ]; then
echo "Exporitng XAUTHORITY";
export XAUTHORITY=/home/$USER/.Xauthority;
fi
fi
xhost is mucho better. Amazing how the old ways of doing things in X are slowly being forgot (by me)...
Offline
Pages: 1