Install VNC Server - TightVNC

From Embedded Workshop
Revision as of 11:23, 19 March 2019 by JMerkle (talk | contribs)
Jump to navigation Jump to search

VNC: Virtual Network Computing
Let's follow the directions provided by Digital Ocean:
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-18-04

On your server, begin by updating your list of packages:

$ sudo apt-get update

Install the lightweight Xfce desktop environment, along with some "goodies"

$ sudo apt-get install xfce4 xfce4-goodies

Once the desktop environment is in place, install the TightVNC service:

$ sudo apt-get install tightvncserver

Run the following to create the password(s) and configuration files for your VNC service:
Password must be between six and eight characters in length.
Passwords longer than eight characters will be truncated.
At this time, you can also create a "View Only" password.

$ vncserver

We will now configure the VNC service, but first, we must stop the service:

$ vncserver -kill :1

Edit xstartup to configure and run your window manager (I'm using LXQT)

$ sudo nano ~/.vnc/xstartup
  1. !/bin/sh

xrdb $HOME/.Xresources xsetroot -solid grey

  1. x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
  2. x-window-manager &
  3. Fix to make GNOME work

export XKL_XMODMAP_DISABLE=1

  1. /etc/X11/Xsession

/usr/bin/startlxqt