LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-09-2013, 01:46 AM   #1
Toonses82
Member
 
Registered: Sep 2004
Location: Calhoun, TN, USA
Distribution: openSUSE
Posts: 131

Rep: Reputation: 15
VNC movement hidden on server side


I just set up a TightVNC Server on a Linux Mint box which I access from a Windows 7 machine. I'm using TightVNC Viewer over a SSH tunnel. I'm able to access and remotely control the Linux Mint machine as you would expect.

However, tonight when I was trying to remotely help the user of this machine, I found out that they can't see anything I'm doing and I can't see anything they're doing. It's like we're in two different user sessions or something. Thing is, I'm clearly under their user name (the only user account on the computer) and their files are all there. But we can't see each other using the same desktop.

To further illustrate the issue, they had firefox open, but I couldn't see it. When I tried to open Firefox (because I thought it was closed) I got the standard error that an instance is already running.

What's up with this? Is this one of the options when running VNC? I didn't know this was possible. Does it have something to do with the SSH tunnel? I'd like for both of us to be able to see each others' movements and windows.
 
Old 07-09-2013, 02:55 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by Toonses82 View Post
I just set up a TightVNC Server on a Linux Mint box which I access from a Windows 7 machine. I'm using TightVNC Viewer over a SSH tunnel. I'm able to access and remotely control the Linux Mint machine as you would expect.
I'm using a similar setup, but just the other way round: I'm remote-controlling a Windows PC from my Linux box (when the Windows user asks for it).

Quote:
Originally Posted by Toonses82 View Post
However, tonight when I was trying to remotely help the user of this machine, I found out that they can't see anything I'm doing and I can't see anything they're doing. It's like we're in two different user sessions or something. Thing is, I'm clearly under their user name (the only user account on the computer) and their files are all there. But we can't see each other using the same desktop.

To further illustrate the issue, they had firefox open, but I couldn't see it. When I tried to open Firefox (because I thought it was closed) I got the standard error that an instance is already running.

What's up with this? Is this one of the options when running VNC? I didn't know this was possible. Does it have something to do with the SSH tunnel? I'd like for both of us to be able to see each others' movements and windows.
I'm not sure, but I guess the X server actually considers VNC like another, separate X session. However, you want the local and the remote user to share the same session.
Since I've never used the VNC server side on Linux, I can't help you in detail. But I'd try to browse through the VNC server settings and look for something like "shared session" or "shared desktop".

I don't believe it's related to SSH, because once the SSH tunnel is established, it looks fully transparent from an application's point of view.

Good luck. :-)
(yes, that's serious, I'm not being sarcastic here)

[X] Doc CPU
 
Old 07-09-2013, 10:45 AM   #3
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
vncserver will create a new user session when you connect via vnc, and give it it's own console screen and desktop.

I use x11vnc when I need to share the remote screen on a linux computer. Windows TightVNC will share the remote vnc screen by default when vnc'ing between windows machines.
 
1 members found this post helpful.
Old 07-09-2013, 01:16 PM   #4
David Trest
Member
 
Registered: Jul 2013
Distribution: CentOS/RHEL, Backtrack, many more.
Posts: 58

Rep: Reputation: Disabled
VNC is indeed considered another X11 session. It's not a way to control an existing session. IIRC there's no ready way of doing that like there is in Windows due to a lot of redirections needed.
 
1 members found this post helpful.
Old 07-09-2013, 04:13 PM   #5
Toonses82
Member
 
Registered: Sep 2004
Location: Calhoun, TN, USA
Distribution: openSUSE
Posts: 131

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Doug G View Post
vncserver will create a new user session when you connect via vnc, and give it it's own console screen and desktop.

I use x11vnc when I need to share the remote screen on a linux computer. Windows TightVNC will share the remote vnc screen by default when vnc'ing between windows machines.
Interesting. This would explain why it used to work when I would assist the other person with their Windows XP computer. So, I'm gathering that the only way to do this is to use x11vnc. I'm not familiar with it so I'll have to do some research. Is it complicated? I like TightVNC because it's simple and light.
 
Old 07-10-2013, 01:35 AM   #6
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
If it helps this is the command line I use to start x11vnc and set up sharing the console over port 5911. I use this internally only, there is no security and no password with this setup

Code:
/usr/bin/x11vnc -nap -bg -many -repeat -clear_keys -auth guess -rfbport 5911 -no6 -xkb -display :0 "$@"
 
1 members found this post helpful.
  


Reply

Tags
remote, server, ssh, viewer, vnc



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft server side / client side technologies? nibraz General 1 01-03-2013 10:12 AM
Mounting multiple NFS or Samba shares: client-side or server-side? mariogiov Linux - Server 4 04-03-2012 08:11 AM
can't get access to client-side network from server-side network through openvpn nass Linux - Server 1 11-02-2009 04:41 AM
Issue with vnc server "tightVNC: VNC server closed connection", due to Screensaver frenchn00b General 1 07-30-2009 06:55 AM
VNC on Mandrake (9.0 & 9.2) blank screen on client side saavik24 Mandriva 10 09-19-2004 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:44 PM.

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