LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-28-2010, 06:05 AM   #1
antonyphilip
LQ Newbie
 
Registered: May 2009
Posts: 11

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


Hi
i was tring to launch a program which lanuches a xprogarm.But getiing this error "Xlib: connection to ":0.0" refused by server:
i have done following things to determine the problem
------------
1.[root@localhost ~]# ps -ef | grep X
root 2669 2664 0 04:52 tty7 00:00:06 /usr/bin/Xorg :0 -br -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7
root 2786 2702 0 05:13 pts/1 00:00:00 grep X
----------------
2.[root@localhost ~]# echo $DISPLAY
:0
----------------------------------
3.[root@localhost ~]# xset -q
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

xset: unable to open display ":0"
------------------------
4..[root@localhost ~]# xauth list $DISPLAY
nothing retuned
---------------

Please tel me whre am actually missing .why am unable to open the display..
tahanks in advance..
Antony
 
Old 07-28-2010, 06:14 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Typically, root is not allowed to connect to the X server. What happens if you try doing the above as a regular user?

If it works as regular user, do as regular user:
Code:
xhost +
And now `su` to root, and try again for root.

When done doing whatever you're doing as root, exit back to regular user and do:
Code:
xhost -
"xhost +" disables access permissions for X, and so is not necessarily safe. Use at own risk.

Also, it would maybe help if you tell us what Linux you are using. That may give someone the info they need to tell you with more certainty, exactly what the reason is for your problem.
 
Old 07-28-2010, 06:33 AM   #3
antonyphilip
LQ Newbie
 
Registered: May 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Hi
i ahve done su to a regular user and done Xhost +
[XXXXXXXX %5root]$ xhost +
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

xhost: unable to open display ":0.0"
but the same error appears
And more info ablut my OS
OS -Red Hat Enterprise Linux Server release 5.3
 
Old 07-28-2010, 06:40 AM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
OK, I'm not sure what's going on, as I can't be sure you've done that the right way. So, here's a link to another LQ thread which you should read, and also, note the threads indicated at the bottom of this very page we're reading right now, and also at the link I gave, on the bottom of the page. There are LOADS of similar threads asking the same question -- please peruse these other threads, as they may well give you the solution.

Other thread:
http://www.linuxquestions.org/questi...server-626091/
 
  


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 12 11-27-2018 02:30 PM
anybody familiar with this error "Xlib: connection to ":0.0" refused by server" ? rajnivanza Linux - Newbie 3 03-22-2009 06:10 PM
Xlib: connection to ":0.0" refused by server Xlib: No protocol ... ousoso@webmail.co.za Linux - Newbie 1 05-06-2008 08:46 AM
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified rajnivanza Linux - Software 1 03-13-2008 02:16 PM
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified eyalkz Programming 1 03-02-2004 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:40 AM.

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