How To Install and Access TightVNC Remote Desktop In Linux? – POFTUT

How To Install and Access TightVNC Remote Desktop In Linux?

TightVNC is a very handy remote desktop application which is based VNC protocol. TightVNC is mostly used for Linux systems in order to manage with a remote desktop environment with GUI. In this tutorial, we will look at how to install and configure properly to run desktop environments like KDE, GNOME, XFCE etc. with TightVNC.

Install

Ubuntu, Debian, Mint, Kali

We can use the following command to install deb based distributions.

Ubuntu, Debian, Mint, Kali

Ubuntu, Debian, Mint, Kali

CentOS, Fedora, RHEL

We can use the following command to install rpm based distributions.

Create VNC Session

Now we need to specify a desktop environment for our VNC session. Actually, we have not created a VNC session yet but we will create a new one to create default configuration files. We run the following command by providing a password for the VNC session.

Create VNC Session

Create VNC Session

xstartup Configuration File

All VNC Server related configuration is held in a file named xstartup which is located in the users home directory .vnc folder. Let’s print defualt configuration.

xstartup Configuration File

xstartup Configuration File

Set Desktop Environment For KDE

In order to enable KDE desktop environment with a new VNC session, we need to add the following line to the xstartup file.

Set Desktop Environment For GNOME

In order to enable GNOME desktop environment with a new VNC session, we need to add the following line to the xstartup file.

Set Desktop Environment For XFCE

In order to enable GNOME desktop environment with a new VNC session, we need to add the following line to the xstartup file.

LEARN MORE  Best VNC Viewer Clients For Linux

Set Desktop Environment For LXDE

In order to enable GNOME desktop environment with a new VNC session, we need to add the following line to the xstartup file.

Kill VNC Server or Session

As we have started a VNC server or session to create default configuration files. We need to kill it we can kill the VNC server with the -k option and the session ID. In this example, we will kill session ID 1 .

Kill VNC Server or Session

Kill VNC Server or Session

Start Server or Session

Now we can start a new server with the vncserver command where the default configured desktop will be fired-up.

Connect with VNC Client

VNC servers start with port number 5900 and count one by one with the session ID. For example, if we have given session ID 3 the port number will be configured as 5903 . We can connect with a VNC client which is explained in the following tutorial in detail.

Best VNC Viewer Clients For Linux

Connect with VNC Client

Connect with VNC Client

3 Responses

  1. Kali Linux says:

    verry good thanks.!

  2. Tom Stugmyer says:

    I have been accessing our LINUX CentOS computer remotely from several windows bases computers for approx 4 years now with Tightvnc. For the last week, I will get an ‘Authentication failure’ when I try to login remotely. The only way I can fix the issue is to reboot the host computer. Any idea what my be causing this issue & how to fix it?

Leave a Reply

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

Enjoy this blog? Please spread the word :)