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

This installs package tigervnc-standalone-server.

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.

Uncomment line

If not, VNC only listen on localhost IP 127.0.0.1

Auto start VNC Server

To autostart 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

Auto start using rc.local

Enable rc.local with

Create /etc/rc.local file with following content

Make /etc/rc.local executable

On reboot /etc/rc.local will be executed.

See VNC Server

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published.