Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Mandrake 9.1 on an IBM thinkpad 600e. I'm sure something's broken in some config file, I just don't quite know where to look. When I boot and login without root privledges, all is fine for a bit. But after a while, whenever something is opened that needs to open a window, normally nothing happens. If I was lucky enough to open a shell and I type the same command, I see that the connection was refused by server..... The only way I've found so far to restore normal operation is to logout and then in again. What should I check to fix the problem? Thanks in advance,
Hmmm, that is weird. Is the error 'Connection refused by localhost, user is not authorized to connect' or something along those lines? If so, when it happens again, try to command 'xhost + localhost' and see if that helps. Either that or the new windows doesn't have a valid env for DISPLAY picked up from the environment. Don't know what could cause that. I need the exact error you see.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Failed to open your X display. Please try setting your DISPLAY environment
variable and try again.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Failed to open your X display. Please try setting your DISPLAY environment
variable and try again.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Failed to open your X display. Please try setting your DISPLAY environment
variable and try again.
| mark |@markslappy:~$xhost +
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
xhost: unable to open display ":0.0"
i got thisoutput using eterm. all i had done was play a real audio clip and a game....Using mozilla firebird as the browser...note that I did not see info about display varablr until i happened to use eterm... attempting to set display...
| mark |@markslappy:~$set DISPLAY 127.0.0.1
| mark |@markslappy:~$Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Failed to open your X display. Please try setting your DISPLAY environment
variable and try again.
| mark |@markslappy:~$set DISPLAY 127.0.0.1:0.0
| mark |@markslappy:~$Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Failed to open your X display. Please try setting your DISPLAY environment
variable and try again.
-----
At this point it seems to be all i can do is logout... sigh...
setenv instead of set? localhost instead of 127.0.0.1?
forgot setenv doesmt seem to work in *nix....any suggestions what to check? if xhost + is done before it stops working then it never happens.
should note that those errors directly after the set commands are generated when any *new* window attempts to open in an application not already running....those particular errors were generated when i tried to play another ra clip...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.