VNC

From radwiki
Revision as of 12:06, 26 May 2020 by Jurgen (talk | contribs)
Jump to navigation Jump to search

VNC gives users a remote desktop Graphical User Interface. Our VNC server requires a VNC viewer application of your choice.

To connect, a user must first start a running vnserver process and connect to it: vncserver -name <sessionname> :<N> where <N> is an integer. E.g. vncserver -name bobsvnc :23 will create a session at display number 23, which means they have to connect to port 5923. The port formula is 5900+N. Ports occupied by others are not available, so if 23 was taken in the previous example it would have tried 24, etc. Users may request a permanent VNC on a fixed display number, if they use it alot.

To minimize bandwidth and cpu usage, do not use too many sessions, kill redundant sessions with vncserver -kill, and don't use uncompressed high quality video settings

Before a user can run a VNC session, they must have proper configurations, including setting a vnc password:

  • set a vnpcpasswd
  • check if the folder ~/.vnc exists, if not try running vncserver
  • copy 2 config files from /home/utility/vncstuff into ~/.Xresources and ~/.vnc/xstartup
  • check your existing vncs with vncserver -list. Terminate them with vncserver -kill <N>.
  • run a display using vncserver and connect using your client of choice.
  • The firewalls do not allow direct access on the VNC ports. To connect to the port you must first establish an SSH tunnel.
In case the remote desktop reports errors upon first (successful) login: replace the last line in ~/.vnc/xstartup with dbus-launch xfce-session. This seems to be a bug related to xfce and/or anaconda. If that fails try conda uninstall dbus or deleting ~/.config.