LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-25-2016, 07:14 AM   #1
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 106

Rep: Reputation: Disabled
vncserver Help


I have been searching and surely missing something obvious.

I have 2 Debian 8 boxes running xfce on my LAN, same user on both.

I want to remote desktop from A to B. So I run vncserver on B and try to connect using Remote Desktop Viewer (Vingre) on A. I get the grey screen which is apparently the X desktop gate :1 that vncserver started on B.

How do I access the desktop on B that is on B's monitor?

Thanks.
 
Old 09-25-2016, 07:37 AM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,656

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
Normally, you do not.
The normal way to run VNC will give you A desktop, not the same desktop that is displayed on the monitor, but another. It can look identical, or (as in this case) quite different.If everything is set properly, it will be a desktop that LOOKS like the one on the monitor, but it will be a different session.

So, you either need the setup to make your VNC desktop look like your session default, or you need the special setup to replicate the physical display onto the VNC session (RDP/MS Windows style).
Before I link you to a ton of technical stuff you really do not need, please tell me what is your true intent. From that, we will understand better how to help you.

PS. You might check out this page for a quick read: https://gofedora.com/how-to-configure-vnc-server/

Last edited by wpeckham; 09-25-2016 at 07:38 AM.
 
Old 09-25-2016, 08:32 AM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 8 Jessie
Posts: 1,688
Blog Entries: 5

Rep: Reputation: 163Reputation: 163
The vnc server you're using on B is creating a new desktop rather than sharing the already running desktop. To do the latter, what I use is x11vnc on the server side (share's the currently running desktop) and xtightvncviewer on the client side. I use the "-nowf" feature on the server side with this:

Code:
x11vnc -nowf
and on the client side, simply

Code:
vncviewer B
I like xtightvncviewer because it shows the remote cursor (with some lag) rather than having the remote cursor be invisible; it also provides a dot for the local cursor so I don't get lost. This feature may not matter much for your purposes, but it's great when you're using VNC to use a laptop as an extra external display for another computer. If that sounds like something you'd like to do some time, check out the "clip" option on the server side. You do something like this:

Code:
x11vnc -nowf -clip 1280x800+0+0
That will share just a 1280x800 piece of the desktop (including virtual space) starting at coordinates 0,0.

Note that the examples I give are just for getting it to work. They're okay for a LAN that you completely trust, but otherwise you'll want to secure vnc via ssh tunneling etc.
 
Old 09-25-2016, 12:29 PM   #4
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 106

Original Poster
Rep: Reputation: Disabled
OK, it is making some sense now. TightVNC works well on my Raspberry PI's.

I was thinking that TightVNC and VNCviewer were basically doing the same thing, but now I understand that they are not.
 
Old 09-25-2016, 12:35 PM   #5
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 8 Jessie
Posts: 1,688
Blog Entries: 5

Rep: Reputation: 163Reputation: 163
In Debian, whatever vncviewer is installed will be aliased to "vncviewer" via symlink. I don't remember off the top of my head which one will be installed by default if you do "apt-get install vncviewer" but I'm pretty sure it isn't xtightvncviewer. If you install more than one, apt will ask which one you want to be aliased to "vncviewer".
 
Old 09-25-2016, 12:45 PM   #6
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 106

Original Poster
Rep: Reputation: Disabled
Working how I want it now.

Thanks guys.
 
  


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
Job for vncserver@:1.service failed. See 'systemctl status vncserver@:1.service' and anis123 Linux - Server 0 09-16-2015 09:44 AM
vncserver -bash: /usr/bin/vncserver: /usr/bin/env: bad interpreter ravindert Linux - Server 1 07-23-2014 06:48 PM
Help with VNCSERVER please themrrobert Linux - Software 2 02-14-2009 09:55 PM
Robust vncserver startup file (rc.vncserver) arobinson74 Slackware 4 05-14-2005 06:33 AM
Vncserver metasoma Linux - Software 4 10-28-2003 03:12 PM


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