Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.39 KB

vnc.org

File metadata and controls

61 lines (42 loc) · 1.39 KB

VNC configuration

viewer

install the viewer

sudo apt install tigervnc-viewer

use ssh to tunnel the remote port over to the local system. Here XX is the port number associated with the vnc server on the remote system.

ssh -L 59XX:localhost:59XX -N -f user@host

Start the vncviewer. The encodings help over slower connections, but are only avaialbe with some clients.

xtigervncviewer localhost:XX
vncviewer -encodings "copyrect hextile" localhost:XX

server

installing server

sudo apt install tigervnc-standalone-server tigervnc-xorg-extension tigervnc-viewer

Edit ~/.vnc/xstartup and put in the following

#!/bin/sh
# Start Gnome 3 Desktop 
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -iconic &
dbus-launch --exit-with-session gnome-session &

make sure conda is not running before starting the server. Conda seems to steal the dbus and create problmes.

General configuration depends upon the system running the server. The following seems to work OK.

vncserver -geometry 1298x950 :99

The server can be killed with

vncserver -kill :99

References

https://www.cyberciti.biz/faq/install-and-configure-tigervnc-server-on-ubuntu-18-04/