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.
is your DISPLAY variable set up correctly (e.g. DISPLAY=mymachine.local:0.0)
and exported (export DISPLAY)
does your X server allow you to connect ?
(xhost +myclient.local)
the computer running the program is ROBOT1 (server side)
the computer on which I want to see it is XAVIER (client side)
The variable DISPLAY on the server side is set to 'XAVIER:0.0'
I run the command 'xhost +robot1.asl' on the client side and it says that it adds robot1.asl to the access control list
But it's still the same thing when I run the program
1) log on to your SERVER ( the one with the big display and the mouse is the server in X11 :-) and type "xhost +" to disable access control completely and disable any firewall you might have running
2) log in to a shell (assuming bash) on your client ( the one running the program in X11 terms )
3) find the address or name of your server and check if it is reachable on the network (e.g. the server is named "bobo" - test it with "ping bobo")
4) type "DISPLAY=bobo:0.0" and then "export DISPLAY" to tell your client where to open the window
5) start "xterm" to verify the setup
I tried to run the command xhost via telnet but it gives me the same error. I tried to run the command directly on the computer and it gives "unable to display "" " but the xserver wasn't running when I did this.
In fact the server is a robot without screen and mouse. I can plug a screen but no mouse on the robot's PC (server). That's why I would like to run program from other computer. Is it a problem? Do I have to run xhost on the computer server with xserver running?
I can run xserver on the robot but it is not usefull. Do I have to run the xserver to do all this? I tried with running and not running but it's the same error.
i hve a simialar problem with when i run XF86Setup i configure all hardware on my componce thts done i ask it to strt the x server and it keeps sayin _X11TransSocketINETConnect: Can't connect: errno = 111 over again until it says giving up plz help
hope i understood your configuration
xavier - the X server (the machine with the GUI)
robot1 - the X client (the machine running xterm)
check your /etc/hosts file on both machines
e.g.
10.0.0.1 xavier
10.0.0.2 robot1
try this :
on xavier:
1) RUN: ping robot1
if robot1 responds correctly
2) open a local xterm
3) RUN: xhost +robot1
to allow host robot1 to access the display on xavier
then:
on robot1:
1) RUN: ping xavier
if xavier responds correctly
2) RUN: xterm -display "xavier:0.0"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.