Install Xfce VNC remote desktop on Ubuntu

XFCE is a light weight desktop for Linux. XFCE + vnc allow you to setup remote desktop on a VPS or dedicated server located on a data center or cloud. You can connect to remote desktop using VNC client and work like it is local computer.

To instal XFCE run

Next install vncserver

It is bad idea to use root user for logging into desktop. Create a normal user to run desktop.

It will be good to make this user an admin, so user can install software or update system.

Now login as the user

Create a vnc password for this user.

Create vnc startup file

Add

Make it executable

Now exit the user with “exit” command. You should be user “root” now.

Create service file

To auto start vncserver on boot, you need to create a service file.

Add

Enable the service with

You can start/stop vncserver with

Now reboot the server. You should be able to connect to VNC server using SERVER_IP:1

Add a Comment

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