How to Install Xfce Desktop and VNC server on Ubuntu server 20.04 LTS

Опубликовано: 17 Октябрь 2024
на канале: MD TECH Tutorials
6,415
81

In this video, I will gonna show you how to install Xfce Desktop and VNC server on Ubunto 20.04 LTS
----- Contents of this video --------------------------------
00:10 - Connecting to Ubunto server using putty.
00:36 - Install lightweight Xfce desktop in ubunto server.
03:58 - check if lightweight Xfce desktop successfully installed.
04:35 - Install VNC server on Ubunto Server.
06:48 - Download and install VNC client on local windows machine.
08:55 - Outro.

----- Commands to install Desktop and VNC server on Ubunto 20.04 LTS -----

Step 1: Install a desktop on ubunto server 20.04 LTS.
Issue these command:

sudo apt update
sudo apt-get install xfce4 xfce4-goodies -y

Step 2: Installing the VNC server.
Issue the command:

sudo apt-get install tightvncserver -y

Upon the completion of the installation, issue the command:

vncserver

This will create the initial VNC configuration.

Now kill the VNC server with the command:
Issue the command:

vncserver -kill :1

Step 3: Configure the VNC server.

Create a new configuration file.
Issue the command:

nano ~/.vnc/xstartup

In this file, paste the following contents:

#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &

Save and close that file. Change the execution permissions of the file.
Issue the command:

sudo chmod +x ~/.vnc/xstartup

Restart the VNC server with the command:

vncserver

End -

Please watch our more upcoming videos and don't forget to LIKE, COMMENT, AND SUBSCRIBE.
Thank you!

MD
System Administrator