How To Install and Configure TigerVNC server on Ubuntu

How To Install and Configure TigerVNC server on Ubuntu

To install and configure TigerVNC on Ubuntu, follow these steps:

  1. Install the TigerVNC server package using the following command:
sudo apt update
sudo apt install tigervnc-standalone-server
Sourc‮e‬:www.lautturi.com
  1. After the installation is complete, create a configuration file for the TigerVNC server by running the following command:
vncserver

This will create a configuration file at ~/.vnc/config and start the VNC server.

  1. Edit the configuration file to set the desired options for the VNC server. Some options that you might want to consider setting include:
  • geometry: This option specifies the dimensions of the VNC desktop in pixels.
  • depth: This option specifies the color depth of the VNC desktop.
  • localhost: This option specifies whether the VNC server should only listen on the loopback interface (localhost).

For example, to set the VNC desktop to a resolution of 1280x1024 with a color depth of 24 bits, you can add the following lines to the configuration file:

geometry=1280x1024
depth=24
  1. Save the configuration file and restart the TigerVNC server using the following command:
vncserver -kill :1
vncserver
  1. To connect to the VNC server from a remote machine, you will need to install a VNC client on the remote machine and connect to the IP address and port of the VNC server. The default port for the TigerVNC server is 5901.
Created Time:2017-10-28 21:38:52  Author:lautturi