LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 09-17-2003, 12:06 AM   #1
mark9121
LQ Newbie
 
Registered: Jul 2003
Location: Akron,Ohio USA
Distribution: Gentoo,Slackware
Posts: 14

Rep: Reputation: 0
x server refuses connections in mid-session


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,
 
Old 09-18-2003, 09:20 AM   #2
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
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.

RO
 
Old 09-21-2003, 09:25 PM   #3
mark9121
LQ Newbie
 
Registered: Jul 2003
Location: Akron,Ohio USA
Distribution: Gentoo,Slackware
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 09-21-2003, 09:30 PM   #4
mark9121
LQ Newbie
 
Registered: Jul 2003
Location: Akron,Ohio USA
Distribution: Gentoo,Slackware
Posts: 14

Original Poster
Rep: Reputation: 0
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lose permissions mid-session johngcarlsson Linux - Newbie 18 08-02-2004 07:23 PM
msec in MDK 10 makes me lose permissions mid-session johngcarlsson Mandriva 2 07-19-2004 07:00 PM
Pure-ftpd refuses connections 69_rs_ss Linux - Networking 0 04-29-2004 10:48 AM
in panic: server just stalled mid-use pembo13 Linux - General 1 04-10-2004 06:52 PM
Switch groups in mid-session nxny Linux - General 4 10-23-2002 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration