tutorials questions & answers

How to install VNC on Ubuntu and connect to it!

TAGS:
  • vnc
  • graphical interface
  • how to install vnc
  • ubnuntu tutorial

Hello and welcome to my tutorial. Here is how you can install VNC and connect to your servers.

Start by updating your packages:

sudo apt-get update

Start by installing VNC4SERVER package:

sudo apt -y install vnc4server

Now you must install your desktop enviroment. I prefer XFCE since it's easy to setup. sudo apt install xfce4 xfce4-goodies

Configure VNC: Run this command and enter your password for VNC!

vncpasswd

Start your VNC service:

vncserver :1

Kill your VNC service:

vncserver -kill :1

Follow these instructions: sudo vim ~/.vnc/xstartup Add the following of the end of the file:

Start the VNC Server again: vncserver :1 -geometry 800x600 -depth 24

Now you can connect to your server using an application called VNC VIEWER. Download it here: VNC[1]

[1]: https://www.realvnc.com/en/connect/download/viewer/

comments (0)

    Start now for as low as $3,99 a month!