Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-25-2006, 05:46 PM   #1
Registered: Feb 2002
Distribution: Gentoo
Posts: 95

Rep: Reputation: 15
correct DISPLAY setting

I am trying to do x-forwarding (not ssh tunneling, which has it own problem for me) with some network computer. Before I do that, I wanted to test what's the correct DISPLAY to set to. So here's the experiment:

DISPLAY=:0.0 xclock
works, but

# xhost && DISPLAY=localhost:0.0 xclock
access control enabled, only authorized clients can connect
Error: Can't open display: localhost:0.0
This obvious implies that if I set DISPLAY=(my ip address):0.0 at another computer, it will fail as well. Any idea?
Old 05-25-2006, 06:03 PM   #2
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,172

Rep: Reputation: 52
xhost +localhost did you try?
Old 05-26-2006, 02:15 PM   #3
Registered: Feb 2002
Distribution: Gentoo
Posts: 95

Original Poster
Rep: Reputation: 15
Originally Posted by whansard
xhost +localhost did you try?
Yes, that's why I ran xhost, just to show that localhost is already added to the list. Note the line


$ echo $DISPLAY
$ xclock  (xclock runs...quit xclock)
$ xhost +localhost
localhost being added to access control list
$ xhost
access control enabled, only authorized clients can connect
$ DISPLAY=localhost:0 xclock
Error: Can't open display: localhost:0

Last edited by mathfeel; 05-26-2006 at 02:19 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
Help getting Japanese characters to display correct R00ts Linux - Software 5 03-13-2005 09:04 PM
xlsfonts is dependant on DISPLAY setting not working on one display with Redhat iainsear Linux - General 0 12-21-2004 06:19 AM
Correct X11 display??? s1lv1a9999 Linux - Software 2 05-03-2004 01:39 AM
Setting correct permissions for my ~/ ShadyCharacter Linux - General 2 04-14-2004 11:06 PM
PC Display Not Correct Mal495 Linux - Newbie 1 10-30-2003 10:08 PM

All times are GMT -5. The time now is 08:27 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