Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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).
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 ... "
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.