LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-01-2013, 05:43 AM   #1
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Rep: Reputation: 21
sharing the SAME desktop with vncviewer


Hi friends,

I need to view the desktop of a customer in order to see what they are doing. I tried the following but it always opens a new desktop:

vncviewer -shared -encodings Zlib -compresslevel 5 localhost:5901

The customers box has a tightvnc server running. I've read somewhere on the net that tightvnc could not share the same desktop. The man page of vncviewer says about the "-shared" option:

"
-shared
When connecting, specify that a shared connection is requested.
In TightVNC, this is the default mode, allowing you to share the
desktop with other clients already using it.
"

So what am I doing wrong ?

Thanks,

Mario
 
Old 11-01-2013, 09:41 AM   #2
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Quote:
So what am I doing wrong ?
localhost = your computer. You connect back you your own computer??

With vnc you should connect to the other computer, something like:

vncviewer othercomputersip

-shared means that you request a shared session so that others can connect at once to the same computer.

If the other computer runs Linux, make sure youre you use a vnc server that captures the display that is used (x11vnc for example).
 
Old 11-01-2013, 12:58 PM   #3
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
x11vnc will let you share a "real" display with a vncviewer.
 
Old 11-01-2013, 04:25 PM   #4
amiciziaeamore
LQ Newbie
 
Registered: May 2011
Location: Italy
Posts: 1

Rep: Reputation: 0
Credo che la cosa migliore sia utilizzare un vncviewer.
 
Old 11-02-2013, 01:38 PM   #5
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by gradinaruvasile View Post
localhost = your computer. You connect back you your own computer??

With vnc you should connect to the other computer, something like:

vncviewer othercomputersip

-shared means that you request a shared session so that others can connect at once to the same computer.

If the other computer runs Linux, make sure youre you use a vnc server that captures the display that is used (x11vnc for example).
Hi, yes the word "localhost" appears strange to me but however, I see the customers linux desktop. Before starting vncviewer I prepare the connection by

ssh -L 5901:192.168.7.3:5901 customers_user_name@customers_router_ip

afterwards I run

vncviewer -shared -encodings Zlib -compresslevel 5 localhost:5901

which does the actual desktop connection to the customers desktop.
 
Old 11-02-2013, 01:40 PM   #6
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by amiciziaeamore View Post
Credo che la cosa migliore sia utilizzare un vncviewer.
I'm sorry but I don't understand, English please :-)
 
Old 11-02-2013, 01:42 PM   #7
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Original Poster
Rep: Reputation: 21
So tightvnc does not allow sharing the SAME desktop ?
 
Old 11-02-2013, 03:14 PM   #8
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by Mario Blunk View Post
So tightvnc does not allow sharing the SAME desktop ?
Under Linux, i dont think so. Under Windows it does only that.
Quote:
Originally Posted by Mario Blunk View Post
Hi, yes the word "localhost" appears strange to me but however, I see the customers linux desktop. Before starting vncviewer I prepare the connection by

ssh -L 5901:192.168.7.3:5901 customers_user_name@customers_router_ip

afterwards I run

vncviewer -shared -encodings Zlib -compresslevel 5 localhost:5901

which does the actual desktop connection to the customers desktop.
Well you should have said that you use ssh tunneling. So probably the customer has Linux running.

Under Linux VNC solutions tend to behave by default more like a terminal services (remote desktop) server under Windows - ie providing a new session.
You need a VNC solution that actually shares the active session.
For example Gnome DE has a built in VNC server named vino-server that can be activated easily.

One of the established and working solutions on Linux which is DE-agnostic is x11vnc. This runs really well on anything (there are some permission related tricks in some circumstances, but that depends on the used DE).
I use it and its great. I use it with ssh tunneling too, but i use it in reverse VNC mode - this means that the server does the connection towards the viewer.
My script launches the viewer (i use ssvncviewer, but you can use anything) in listening mode on my end, sets up the port forwardings and launches x11vnc on the target computer with the reverse connection option.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to connect to remote desktop connection(vino) using vncviewer nkd Ubuntu 2 09-21-2012 02:30 AM
[SOLVED] vncviewer w/ Unity desktop? jgpalmore Linux - Newbie 1 05-16-2011 02:20 PM
[root@localhost Desktop]# vncviewer 192.168.0.11:2 vncviewer not viewing kde display nickleus Linux - Software 13 10-27-2006 03:58 AM
vncviewer and desktop look and feel davidtcw Linux - Newbie 1 02-23-2006 11:14 AM
vncviewer and desktop look and feel davidtcw Linux - General 2 02-23-2006 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:07 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