LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2005, 05:06 PM   #1
leg_of_pinguin
LQ Newbie
 
Registered: Apr 2005
Location: Israel
Posts: 28

Rep: Reputation: 15
Xlib: connection to ":0.0" refused by server


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

/opt/openoffice/program/spadmin.bin X11 error: Can't open display: :0.0
   Set DISPLAY environment variable, use -display option
   or check permissions of your X-Server
   (See "man X" resp. "man xhost" for details)
What does it mean?
Sorry for a newbie question...
 
Old 04-28-2005, 05:11 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
It means the program you are trying to use has been denied access to the display. Generally, this means the program is being run as a user other than that running the X server.

What, exactly, were/are you trying to do?
 
Old 04-28-2005, 05:17 PM   #3
leg_of_pinguin
LQ Newbie
 
Registered: Apr 2005
Location: Israel
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks for help

I tried to add more fonts to OpenOffice through some recommended "spadmin" program (taken from OpenOffice help pages).

It seems it should run some GUI
 
Old 04-28-2005, 05:27 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
I'm not familiar with spadmin, but it shouldn't matter too much. Are you running spadmin as root, by any chance?
 
Old 04-28-2005, 05:52 PM   #5
leg_of_pinguin
LQ Newbie
 
Registered: Apr 2005
Location: Israel
Posts: 28

Original Poster
Rep: Reputation: 15
Yes, I was running it as root.

I see 2 ways of investigating this problem
1) "display" command
2) x-server permissions

as was given in the error message.

Frankly, I read the "man display" with zero results. What is the simplest example of using this command?
 
Old 04-29-2005, 08:30 AM   #6
leg_of_pinguin
LQ Newbie
 
Registered: Apr 2005
Location: Israel
Posts: 28

Original Poster
Rep: Reputation: 15
As I see, permission is not a problem because I worked under root privileges.
$DISPLAY variable has normal value :0.0

We see this error message in many situations, when we try to open GUI using command line shell.
For some applications (like xman) it doesn't happen - the GUI is opened correctly.

We use knoppix 3.8.1 install of Debian, KDE

Please advise how to fix this problem.
 
Old 04-29-2005, 08:38 AM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Actually, permissions are the culprit.

Generally, only the user the X server is running as can run commands that display on that X server. Even root cannot do it without special permissions. You can use "xhost +localhost" to allow any program on localhost to display to your X server.
 
Old 04-29-2005, 08:56 AM   #8
leg_of_pinguin
LQ Newbie
 
Registered: Apr 2005
Location: Israel
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks, 'xhost +' solves this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified eyalkz Linux - Newbie 11 04-22-2015 09:17 AM
XERROR: 'Xlib: connection to ":0.0" refused by server' tsiMental Debian 11 02-16-2007 07:30 PM
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified eyalkz Programming 1 03-02-2004 08:22 AM
Wine not working. Xlib: connection to ":0.0" refused by server Xerop Linux - General 1 02-18-2004 09:37 PM
What is "Xlib: connection to ":0.0" refused by server " rack201 Linux - Software 1 02-04-2004 07:49 AM


All times are GMT -5. The time now is 09:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration