Can a VNC Server control an x session on another machine?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Can a VNC Server control an x session on another machine?
If I have 3 machines, can I have a VNC Client running on MACHINE1, talking to a VNC Server on MACHINE2 and control the screen on MACHINE3 ? As in:
MACHINE1 ---> MACHINE2 ---> MACHINE3
(vnc client) ---> (vnc server) ---> (x session I want to control)
My issues is that I cannot run a VNC Server on MACHINE3. So basically, I'm sitting at MACHINE1 and need to interact with MACHINE3's desktop, menus, widgets...etc..etc.
I'm currently using x11vnc since I need to be able to control screen ":0".
If I have 3 machines, can I have a VNC Client running on MACHINE1, talking to a VNC Server on MACHINE2 and control the screen on MACHINE3 ? As in:
MACHINE1 ---> MACHINE2 ---> MACHINE3
(vnc client) ---> (vnc server) ---> (x session I want to control)
My issues is that I cannot run a VNC Server on MACHINE3. So basically, I'm sitting at MACHINE1 and need to interact with MACHINE3's desktop, menus, widgets...etc..etc.
I'm currently using x11vnc since I need to be able to control screen ":0".
You can, depending on how the x session on machine 3 is controlled from machine 2; ie, via x forwarding through ssh, or via xdmcp (using xephyr or xnest)...
Running my VNC Server (x11vnc and realvnc respectively) on node2 as:
"x11vnc -display node3:0 -noshm"
or
"x0vncserver -PasswordFile=/path/to/passwd -display=node3:0"
On node3, make sure you:
1. Ran a "xhost +" on the node
2. Allow X forwarding. On my distro, Fedora 8, I had to go into "/usr/share/gdm/defaults.confg" and add the line "DisallowTCP=false".
This is for gnome, not sure about KDE or other, however.
Like you all had said, performance took a bit of a hit as network was pegged a bit but it was very usable on my little 3 node test network. x11vnc performed much better than x0vncserver, however.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.