$ sudo systemctl enable use a VNC viewer to take the shared desktop. $ sudo systemctl start it on system startup as root. nano /home/raj/.vnc/xstartupĭelete all the existing entries and place the below lines into the file. Now, Edit the xstartup file to start Xfce desktop in VNC. Starting applications specified in /home/raj/.vnc/xstartup A server with a default installation of Ubuntu 16.04 and setup using our Initial Server Setup with Ubuntu 16.
#UBUNTU 16.04 VNC SERVER GNOME3 INSTALL#
This article will help you install and configure the graphical desktop environment and VNC on your server. New ':1 (raj)' desktop is :1Ĭreating default startup script /home/raj/.vnc/xstartup With VNC you can use a graphical desktop environment remotely. Xauth: file /home/raj/.Xauthority does not exist You will require a password to access your desktops.
Below you can see me running two VNC sessions at the same time, test1 on the left is using Firefox & test2 on the right is using.
for user test1 it could be 192.168.10.5 :1. An Ubuntu 16.04 Droplet set up via the Ubuntu 16.04 initial server setup tutorial, which includes having a sudo non-root user. Connect to your VNC server using its IP Address and the number associated with the user you want to log in as. Reload the systemctl daemon as root $ sudo systemctl daemon-reload Run systemctl start vncserver to start the VNC servers. #ExecStartPre=/usr/bin/vncserver -kill %i > /dev/null 2>&1ĮxecStart=/usr/bin/vncserver -depth 24 -geometry 1024x768 %i ĭescription=Start TightVNC server at startup To connect, you can use the standard format ipaddress:sub-port ( 192.168.2.109:5 or 192.168.2.109:5905) $ sudo nano with your real user.
VNC server listens on port 5900, but if you plan to setup port-offset in VNC we can run a VNC service on a sub-port of the default port 5900.įor example, if we configure VNC for port 5, the desktop will be accessible on port 5905. Install the VNC server using the following command. As you know, VNC is a protocol that allows sharing the desktop and controlled remotely over the internet. This simple guide helps you to install VNC on Ubuntu 16.04 machines.īefore installing the VNC server, let us install Xfce desktop.