LinuxQuestions.org
Visit Jeremy's Blog.
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 06-27-2007, 12:20 PM   #1
mathit
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Rep: Reputation: 0
display


Hi,
When variable DISPLAY=:0.0 then OK.
But if I set DISPLAY=<ip_addr>:0.0 then I can not run any X application.
The ip_addr above matches the one which is printed by ifconfig.
 
Old 06-27-2007, 01:57 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
perhaps your X server is not setup to listen to internet connections?
 
Old 06-28-2007, 06:55 AM   #3
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Maybe you can use "xhost" to allow X connections to the specific IP (even though it's the same machine, the IP and localhost interfaces may be handled differently).
 
Old 06-28-2007, 12:22 PM   #4
mathit
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Original Poster
Rep: Reputation: 0
I don't know how to set Xserver. But I discovered yet another oddity.
Command "hostname -i" displays "127.0.0.1". But ifconfig has output
"eth0 ... inet addr:192.168.0.5 ... "
 
Old 06-28-2007, 04:07 PM   #5
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Thats normal, the 127.0.0.* is supposed to be local only, meaning NOT the internet, but your computer. Your internet address is 192.168.10.5 (which is not a internet address, but a internal network address, still, you get where this is going i hope).

speaking of which, why are you trying to use a ip address in the DISPLAY, when your only trying to display on your local computer?
 
Old 06-29-2007, 02:20 AM   #6
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
The localhost network interface, 127.0.0.1, which represents the local machine itself and is inaccessible from any other machine (each machine has its own localhost interface), is different from the network interface that has IP 192.168.10.5. For your Linux, it's as if your computer has 2 network interfaces and one just "loops back" to your own machine.

My point is that the X config & access may be set differently for both network interfaces. Hence, setting DISPLAY to :0.0 (or 127.0.0.1:0.0) is different from 192.168.10.5:0.0, even though both refer to the same machine.

Using the IP (192.168.10.5) of your own machine for X display is rather useless. Even if this loops back (ie via a network gateway), you're bothering the network for no reason and you should really use the built-in loopback interface, 127.0.0.1.
 
Old 06-29-2007, 12:17 PM   #7
mathit
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Working on this problem I have discovered another one.
Route table looks as the following
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
It does not include "lo" route. I was not able to add it with the help of
command "route add -net 127.0.0.0". I received the error message "SIOCADDRT: Invalid argument".
I don't know what it means.
My system is "uname -a
Linux cored 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386
GNU/Linux".
Command ifconfig displays the present of both interfaces in UP state.

Last edited by mathit; 06-29-2007 at 12:27 PM.
 
  


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
Problem withChanging DISPLAY environment variable to display on someone else's screen wantsri Linux - Networking 1 10-25-2005 11:14 AM
Tcl Error no display name and no DISPLAY environment variable thinkgeek Programming 5 07-06-2005 10:24 PM
xlsfonts is dependant on DISPLAY setting not working on one display with Redhat iainsear Linux - General 0 12-21-2004 06:24 AM
xlsfonts is dependant on DISPLAY setting not working on one display with Redhat iainsear Linux - General 0 12-21-2004 06:19 AM
RH9 Shrike /sbin/loader display problem with SIS 630 laptop - display is blank ! johnvoisey Red Hat 4 11-01-2003 06:52 AM

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

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