
With these packages installed, you are now ready to configure your VNC server. Running vncserver completes the installation of VNC by creating default configuration files and connection information for our server to use. This is a helpful option if you want to demonstrate something to other people using your VNC server, but isn't necessary. Users who log in with the view-only password will not be able to control the VNC instance with their mouse or keyboard.

You'll be prompted to enter and verify a password, and also a view-only password. To complete the VNC server's initial configuration after installation, use the vncserver command to set up a secure password.

Download anyone and install it on your system, for example:Ĭongratulations! You have successfully installed VNC Server. There are various vnc viewers available to use.

To access the remote desktop on vnc server from the windows system, you must have vnc viewer installed on your system. The next step is to enable the unit file with the following command: sudo systemctl daemon-reload The next step is to create a VNC Server startup script: the following files: ĮxecStartPre=/bin/sh -c '/usr/bin/vncserver -kill :%i > /dev/null 2>&1 || :'ĮxecStart=/usr/bin/vncserver :%i -geometry 1440x900 -alwaysshared -fg Next, run the following command to make sure permissions are correct: chmod u+x ~/.vnc/xstartup We are now can turn it off to modify the xstartup file (startup script) to make it start with xfce4: vncserver -kill :1įirst, create the following file: ~/.vnc/xstartup Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/chedelics/.vnc/passwd :1 to connect to the VNC server.Īfter VNC Server started and created some of its files. Starting applications specified in /etc/X11/Xvnc-session New ':1 (chedelics)' desktop at :1 on machine usr/bin/xauth: file /home/chedelics/.Xauthority does not exist Would you like to enter a view-only password (y/n)? n Result: You will require a password to access your desktops. Once installed the next step is to run the vncserver command which will create the initial configuration and set up the password: vncserver Next, install TigerVNC on your Ubuntu server: sudo apt install tigervnc-standalone-server tigervnc-common

Sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils
