LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-25-2006, 05:46 PM   #1
mathfeel
Member
 
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:

Code:
DISPLAY=:0.0 xclock
works, but

Code:
# xhost && DISPLAY=localhost:0.0 xclock
access control enabled, only authorized clients can connect
INET:localhost
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
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

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

Original Poster
Rep: Reputation: 15
Quote:
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

Code:
INET:localhost
Anyway:

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

Last edited by mathfeel; 05-26-2006 at 02:19 PM.
 
  


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
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 04:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration