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  How To Install and Configure GNOME Desktop On Ubuntu?

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

6 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?

  3. James L Parmenter says:

    I have a question: On my Samsung Galaxy Tab 2 10.1 wifi I tried to install Linux Distro Ubuntu using Linux Deploy and VNC Remote Desktop Viewer as stated in the Youtube Video. All went fine except for the VNC Viewer when trying to display Ubuntu Desktop. The message I get is: “The port that the Computer is listening to can not make a connection”……? So, Ubuntu never opens..! The VNC app I got from Google Playstore.com and it said before downloading that the app may not be fully optimized for your device….. Does your application have any faults to this application of installing Linux on my Tab 2..?
    Thanks in Advance….James..

  4. aslam.zaki says:

    Can i limited the port, for example if i run “vncserver” with root user that start with port “1” but if i run again this command “vncserver” it again run the vnc service in port “2”

    we need to limited the root or any other user fix port “1” and if we run “vncserver” so service not start in other ports

  5. Aslam Zaki says:

    Can i limited the VNC port, for example if i run “vncserver” with root user that start with port “1” but if i run again this command “vncserver” it again run the vnc service in port “2”

    So now we need to limited this if vnc service run in “1” port with root user so if root user again run this command service not run or run in same “1” port

    It is possible ?

Leave a Reply

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