Install Vnc server on ubuntu 20.04

Install xfce4 and tightvncserver

1.Install xfce4 using below command

sudo apt update;sudo apt install xfce4

2.Select a desktop manager ,here we chose ligthtdm

2.Install tight vnc server

sudo apt install tightvncserver

Setup vnc server

1.Create a test vnc session for password setup and xstartup file creation


2. kill the session created in step one because we need to modify xstartup file

vncserver -kill :1

3. Modify .vnc/xstartup from your home directory to let vnc use xfce4

j@j:~/.vnc$ cat xstartup

xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work

startxfce4 &

3.Create a new vnc session using below command


Or add option -geomtry if you need bigger window

vncserver -geometry 1920x1080

Connect to vnc server from client

1.Here we are using windows 10 , download and install a Vnc viewer like

2.Connect to you vnc server via hostname:port or IpAddress:port

Leave a Reply

Your email address will not be published. Required fields are marked *