This repo contains files and instructions to set up VNC server on Linux.
NOTE: This has been tested on the following:
- Kubuntu 18.04
- KDE Neon (18.04 base)
- Kubuntu 20.04
- Arch Linux
-
Since this is a remote desktop setup, it's assumed that your server has one of the linux desktop environments installed.
-
Install
tigervnc
$ sudo apt install tightvncserver
-
Run the
vncserver
command to set a VNC password. This will also create the default configuration files.$ vncserver
-
Copy xstartup file. Ensure xstartup is executable
$ chmod +x xstartup
-
Modify or replace the [email protected] file
-
On the client side, set up ~/.ssh/config file from the ssh-config.template
-
To reset the password for the vnc server
$ vncpasswd
-
To kill running vncserver
# 0 can be replaced by display/instance number being used $ vncserver -kill :0
Relevant Links:
- TigerVNC website - tigervnc
- ArchWiki page for TigerVNC - ArchWiki
- VNC Server man page - vncserver(1)
- Systemd Unit man page - systemd.unit(5)