Starting a VNC session on a new X display
On Debian 7: install and use tightvncserver
or vnc4server
. You probably have similar packages on your system (maybe without the 4
).
type apt-cache search vnc | grep -v lib | grep server
on any debian based system (including Ubuntu, mint, elementary).
X11vnc
is the vnc server that connects to an existing X11 server, useful for tech support to help a user etc. But not so good to remote login, without allowing people to see what you are doing.
Also consider using just X11 (no vnc): ssh -X otherhost
Related videos on Youtube
Naftuli Kay
Updated on September 18, 2022Comments
-
Naftuli Kay over 1 year
I'm currently using
x11vnc
to share my existing X session over VNC.What I'd like to do is to start a new X session/display which would work and act exactly like the existing one, except wouldn't be visible to someone sitting at my computer. (Problem right now is that people at the office can watch my unattended screen as I work, weird.)
Is there a way that I can do something like this to achieve this:
ssh -L 5900:localhost:5900 otherhost "x11vnc -newdisplay -geometry 1920x1080 -localhost"
to tunnel back the port and connect in a more secure way?
-
ctrl-alt-delor almost 10 yearsIf the local machine also is running X11, then you don't need to use vnc. There are advantages for just using X11, other advantages for vnc.
-
ctrl-alt-delor almost 10 yearsYou need one of the other vnc servers, X11vnc ties vnc to an existing X11 display. There are others that do not. Which OS are you running?
-
Naftuli Kay almost 10 yearsElementary Luna (Ubuntu 12.04 LTS)
-
ctrl-alt-delor over 9 yearsHow is it going. Have you got it working yet, or do you need more help?
-