LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-24-2006, 12:59 PM   #1
chromiumferret
LQ Newbie
 
Registered: Feb 2006
Location: Riverside, CA
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
Question X display question


Hi,
I'm familiar with command line unix systems, but a lot of this X stuff is magic to me. On my ubuntu linux system, my DISPLAY variable is set to :0.0. And this works great. When I set the DISPLAY variable to localhost:0.0 it fails with the following error:

c6404@ralnx01:~$ export DISPLAY=localhost:0.0
[1]+ Done xclock
c6404@ralnx01:~$ xclock &
[1] 16654
c6404@ralnx01:~$ Error: Can't open display: localhost:0.0

[1]+ Exit 1 xclock


And yeah, I know it works the other way, but I'm actually trying to figure something else out and I'd like to know about this.
If one of you big brains out there could give a hand, I'd appreciate it.
 
Old 02-24-2006, 01:45 PM   #2
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
I don't think you can use hostnames. try:
Code:
export DISPLAY=127.0.0.1:0.0
 
Old 02-24-2006, 05:09 PM   #3
chromiumferret
LQ Newbie
 
Registered: Feb 2006
Location: Riverside, CA
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
No, it didn't like that either.
c6404@ralnx01:~$ export DISPLAY=127.0.0.1:0.0
c6404@ralnx01:~$ xclock &
[1] 23330
c6404@ralnx01:~$ Error: Can't open display: 127.0.0.1:0.0

[1]+ Exit 1 xclock
c6404@ralnx01:~$

I'm eventually trying to get the Display from a remote host to display locally, but I thought that I'd better start by getting the localhost to display via either a hostname or IP address.
Any configurations to check?
 
Old 02-24-2006, 05:50 PM   #4
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
strange this works for me. but you should be able to use ssh -X to forward apps over the ssh conection it should set DISPLAY and xhost for you.
 
Old 09-06-2006, 02:38 PM   #5
wilberto83cg
LQ Newbie
 
Registered: Jul 2006
Distribution: FC3,FC5, Solaris8,9, SUSE 10.1
Posts: 12

Rep: Reputation: 0
Did you find a solution

Hi,

Did you get a solution to your problem, because I have the same problem with my Linux machines. All Solaris OS machines work fine.

And yes you can use names instead of the ip, but this names must be in the /etc/hosts
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
X display question aaylnx Linux - General 2 09-13-2005 09:36 AM
display configuration question prplmnkydw Debian 4 07-13-2005 10:17 AM
not common x display question kdotsky Linux - Newbie 2 12-19-2004 10:36 PM
Display config Question opsraja Debian 2 12-01-2004 12:35 PM
Another dual display question Stephanie General 6 01-20-2003 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:56 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
Open Source Consulting | Domain Registration