Differences between revisions 3 and 21 (spanning 18 versions)
Revision 3 as of 2019-05-14 11:14:10
Size: 842
Editor: misticat
Comment:
Revision 21 as of 2025-04-23 07:25:44
Size: 2308
Editor: maegger
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#rev 2020-09-15 gfreudig
## page was renamed from x11vnc
Line 2: Line 4:
`x11vnc` allows you to view and interact remotely with an existing desktop session of yours. In case you have no running session on the physical display and need to login graphically, please contact [[mailto:support@isg.ee.ethz.ch|support]] and provide the name of the host you need to access.
Line 3: Line 6:
== How do I use x11vnc? == {{{{#!wiki important
'''Please note:''' While you are working with `x11vnc`, someone in your office can watch your actions on the local monitor of your computer.
}}}}
Line 5: Line 10:
Start a x11vncserver with: == Other use cases ==
The normal [[RemoteAccess/VNC|vncserver]] relies on the [[https://www.mesa3d.org/|OpenGL implementation called Mesa]], which is not hardware-accelerated in a VNC session. In case you see errors similar to:
Line 7: Line 13:
fgtest02@balz:~$ x11vnc
"Xlib: extension "GLX" missing on display ":1".
}}}
you might want to use x11vnc.
The GLX driver in use and whether hardware acceleration ("direct rendering") is active can be shown with
{{{#!highlight bash numbers=disable
glxinfo |grep -E 'vendor string|direct rendering'
Line 11: Line 21:
You can also start it with a password. Replace USERNAME with your own username.
== How do I start x11vnc? ==

In a terminal window in your existing desktop session start a `x11vnc` server with password protection. If you already have a password file `~/.vnc/passwd` from `vncserver` you must enter:
Line 13: Line 27:
fgtest02@balz:~$ x11vnc -rfbauth /home/USERNAME/.vnc/passwd pmuster@zampano:~$ x11vnc -usepw -q
Line 15: Line 29:
The VNC desktop is: zampano:0
PORT=5900
Line 17: Line 33:
At the end you should get following message: To start x11vnc in a ssh terminal not belonging to the existing desktop session you must specify the X11 display:
Line 19: Line 35:
The VNC desktop is: balz:0 pmuster@zampano:~ $ x11vnc -usepw -q -display :0

The VNC desktop is: zampano:0
Line 21: Line 39:
Line 24: Line 41:
If you don't have a password file you can create one with: If you don't have a password file from vncserver usage you will be prompted for one:
Line 26: Line 43:
fgtest02@balz:~$ x11vnc -storepasswd pmuster@zampano:~ $ x11vnc -usepw -q
Line 29: Line 46:
Write password to /home/fgtest02/.vnc/passwd? [y]/n y
Password written to: /home/fgtest02/.vnc/passwd
Write password to /home/pmuster/.vnc/passwd? [y]/n y
Password written to: /home/pmuster/.vnc/passwd
Line 32: Line 49:
The VNC desktop is: zampano:0
PORT=5900
Line 35: Line 54:
After setting everything up you can connect to it with the program VNC Viewer After setting everything up you can connect to it with a VNC viewer. If you are outside ETH you need to either use VPN or tunnel the VPN connection trough a SSH. See [[RemoteAccess|remote access documentation]] for details.
Line 37: Line 56:
'''Bild'''
Line 40: Line 58:
If you log out or close the window the process will be stopped. After connection, if you log out or close the window the process will be stopped.

x11vnc

x11vnc allows you to view and interact remotely with an existing desktop session of yours. In case you have no running session on the physical display and need to login graphically, please contact support and provide the name of the host you need to access.

Please note: While you are working with x11vnc, someone in your office can watch your actions on the local monitor of your computer.

Other use cases

The normal vncserver relies on the OpenGL implementation called Mesa, which is not hardware-accelerated in a VNC session. In case you see errors similar to:

"Xlib:  extension "GLX" missing on display ":1".

you might want to use x11vnc. The GLX driver in use and whether hardware acceleration ("direct rendering") is active can be shown with

glxinfo |grep -E 'vendor string|direct rendering'

How do I start x11vnc?

In a terminal window in your existing desktop session start a x11vnc server with password protection. If you already have a password file ~/.vnc/passwd from vncserver you must enter:

pmuster@zampano:~$ x11vnc -usepw -q

The VNC desktop is:      zampano:0
PORT=5900

To start x11vnc in a ssh terminal not belonging to the existing desktop session you must specify the X11 display:

pmuster@zampano:~ $ x11vnc -usepw -q -display :0

The VNC desktop is:      zampano:0
PORT=5900

If you don't have a password file from vncserver usage you will be prompted for one:

pmuster@zampano:~ $ x11vnc -usepw -q
Enter VNC password:
Verify password:
Write password to /home/pmuster/.vnc/passwd?  [y]/n y
Password written to: /home/pmuster/.vnc/passwd

The VNC desktop is:      zampano:0
PORT=5900

Connect with VNC Viewer

After setting everything up you can connect to it with a VNC viewer. If you are outside ETH you need to either use VPN or tunnel the VPN connection trough a SSH. See remote access documentation for details.

vnc.PNG

After connection, if you log out or close the window the process will be stopped.

FAQ/x11vnc (last edited 2025-04-23 07:25:44 by maegger)