LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-13-2008, 09:27 PM   #1
vin109
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Rep: Reputation: 0
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".


Thanks in advance!

Last edited by vin109; 04-13-2008 at 09:28 PM.
 
Old 04-13-2008, 10:09 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
So why cannot you install VNC server on machine 3?
 
Old 04-13-2008, 10:28 PM   #3
hariprs
LQ Newbie
 
Registered: Feb 2005
Location: Chennai, India
Distribution: Fedora
Posts: 19

Rep: Reputation: 0
Quote:
Originally Posted by vin109 View Post
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".


Thanks in advance!
This will work, but will be very slow.
 
Old 04-13-2008, 10:38 PM   #4
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.2
Posts: 1,085

Rep: Reputation: 195Reputation: 195
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)...

cheers,
 
Old 04-17-2008, 05:12 PM   #5
vin109
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Solution

It was actually relatively easy.

Running my VNC Client on node1.

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC Server no gnome session daniel_owen_uk Linux - Newbie 2 03-13-2008 10:42 AM
VNC Session mindjet SUSE / openSUSE 4 02-11-2006 10:49 AM
vnc into session 0 fraz Linux - Networking 5 11-21-2005 08:36 AM
Control multiple machine from one machine with help of network spinner_0 Linux - Networking 4 10-27-2005 08:20 AM
Vnc server session Slackware 9.1 Johny_B Linux - Software 5 04-19-2004 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration