LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   xhost + (https://www.linuxquestions.org/questions/slackware-14/xhost-232068/)

RoaCh Of DisCor 09-18-2004 03:04 AM

xhost +
 
I've been having issues with root..

Sometimes, when trying to run programs under root (k3b, xine...) I get this message.

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

This is xine (X11 gui) - a free video player v0.99.1.
(c) 2000-2003 The xine Team.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

I figured out that xhost + fixes this, and after I do this...anyone can connect...but once I reboot, it goes back to this same issue. How can I get this to stay..so that any user can connect?

Thanks.

-RoaCh

Cedrik 09-18-2004 03:10 AM

In short, don't run k3b or xine as root because you don't need to ;)

Otherwise there are many way to fix that...Like put something like that in your ~/.bashrc :

alias k3b="xhost + && k3b"

RoaCh Of DisCor 09-20-2004 01:31 AM

okay, thanks. I'll try that.

esben 10-02-2004 04:31 PM

You might want to use xhost
Code:

+local:
to allow just local connections.


All times are GMT -5. The time now is 05:00 PM.