Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-30-2004, 02:39 PM   #1
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Rep: Reputation: 30
X server? $DISPLAY? Now what?

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

x11drv: Can't open display: :0.0
Please ensure that your X server is running and that $DISPLAY is set correctly.

This is what I get when I try to install some windows software using wine.
What does it mean and how do I fix it?
Old 05-30-2004, 02:58 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
That means that you're trying to run a program that
requires X as a different user than the one whose
X display you're working on. Quick & dirty solution:

As the owner of the X session: xhost +localhost
As the user who wants to install: export DISPLAY=localhost:0.0

Old 05-30-2004, 03:04 PM   #3
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Original Poster
Rep: Reputation: 30
Thanks Tink That seems to do the trick *bows for the guru*

That's probably the first answer I've gotten that solved a problem at first try

Last edited by NonSumPisces; 05-30-2004 at 03:05 PM.


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
X server display settings lm317t Linux - Software 3 09-21-2005 09:05 PM
display server load newuser455 Programming 3 06-21-2005 08:43 PM
FC3 - Which X server / display driver mackayr Fedora 4 02-07-2005 01:27 PM
X-server display timeout? batchman Linux - Software 0 09-30-2004 03:49 PM
X-server display-timeout batchman Linux - Software 0 08-22-2004 03:07 AM

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

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