Generally, you not solely want to connect with distant programs but additionally must entry the complete GUI setting. In Linux, VNC is such a device that means that you can log in to the Linux server graphically remotely. VNC (Stands for Digital Community Computing) is much like the distant desktop device in Home windows programs. It allows you to handle and management the distant server out of your native system.On this tutorial, we are going to describe how one can set up the VNC server on the Linux Mint 20 system. To check the connection to the VNC server, we are going to use the VNC viewer (VNC shopper) utility. You should use some other VNC shopper utility.

Earlier than continuing in the direction of the article, be sure you are logged in as a sudo person.

Step 1: Set up the Desktop setting

There are a number of desktop environments in Linux, corresponding to Gnome, KDE, XFCE, Unity, and so forth. We might want to set up any considered one of them for the VNC server to work correctly. Right here, we’re going to set up the XFCE desktop.

Open the command-line Terminal utility utilizing the Ctrl+Alt+T keyboard shortcut after which situation the next command in Terminal to put in XFCE desktop.

$ sudo apt set up xfce4 xfce4-goodies

Install VNC Server at Linux Mint 20 – Hint for Linux

After working the above command, the system would possibly ask for affirmation that if you wish to proceed the set up or not. Press y to proceed; after that, XFCE desktop will likely be put in in your system together with all dependencies.

Step 2: Set up VNC server

There are completely different VNC servers obtainable for Linux programs. Right here, we’re going to set up “Tightvncserver”. It’s fairly straightforward to arrange and run Tightvncserver, and it is usually dependable. Subject the next command in Terminal to put in Tightvncserver.

$ sudo apt set up -y tightvncserver

Install VNC Server at Linux Mint 20 – Hint for Linux

After the set up is accomplished, situation the next command in Terminal:

You can be prompted to set a password for the VNC server. Enter the password after which verify it by coming into it once more. Then you can be requested that if you wish to enter a view-only password, hit n. Should you press y, you won’t be able to make use of the mouse and keyboard for controlling the VNC occasion.

Install VNC Server at Linux Mint 20 – Hint for Linux

If you run the “vncserver” command for the primary time, it creates a brand new listing “.vnc” beneath your House listing. To view this listing, you’ll be able to situation the next command in Terminal:

Install VNC Server at Linux Mint 20 – Hint for Linux

To view the VNC server course of, situation the next command in Terminal:

$ ps -ef | grep Xtightvnc

Install VNC Server at Linux Mint 20 – Hint for Linux

Step 3: Configure VNC

Now we are going to configure the VNC server. For that, first, kill the VNC session utilizing the next command in Terminal:

Install VNC Server at Linux Mint 20 – Hint for Linux

The default configuration file of the VNC server is ~/ .vnc/xstartup. Earlier than making any adjustments to this file, let’s create a backup copy of this file. Subject the next command in Terminal to take action:

$ mv ~/.vnc/xstartup ~/.vnc/xstartup.backup

Now edit the ~/.vnc/xstartup file utilizing any textual content editor. Right here, we’re utilizing Vim textual content editor:

$ sudo vim ~/.vnc/xstartup

Insert the next strains on this file:

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

Now hit Esc key and press :wq to save lots of and shut the ~/.vnc/xstartup file.

Install VNC Server at Linux Mint 20 – Hint for Linux

Now you have to to make this file executable. Subject the next command in Terminal to take action:

$ chmod +x ~/.vnc/xstartup

Run VNC server utilizing the next command in Terminal:

Step 4: Configure VNC as a service

Now you have to to create a service file for the VNC server. For this objective, navigate to the /and so forth/systemd/system listing utilizing the next command:

Then create a service file with the next command in Terminal:

Insert the next strains on this file:

[Unit]
Description=Distant desktop service (VNC)
After=syslog.goal community.goal
[Service]
Sort=forking
Consumer=edward
PIDFile=/dwelling/edward/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280×800 :%i
ExecStop=/usr/bin/vncserver -kill :%i
[Install]
WantedBy=multi-user.goal

Now hit Esc key and press :wq to save lots of and shut the file.

Install VNC Server at Linux Mint 20 – Hint for Linux

Now reload the systemd processes utilizing the next command in Terminal:

$ systemctl daemon-reload

Then begin the VNC server companies:

$ systemctl begin [email protected]

To allow the VNC server service to start out at boot, use the next command:

$ systemctl allow [email protected]

To examine the VNC service standing, use the next command:

$ systemctl standing [email protected]

Install VNC Server at Linux Mint 20 – Hint for Linux

Step 5: Connect with VNC server

Now we are going to attempt to connect with the VNC server by means of an SSH tunnel as VNC itself shouldn’t be an encrypted protocol. Subject the next command in Terminal to take action:

$ ssh -L 5901:127.0.0.1:5901 -N -f -l [user_name] [server_ip]

Substitute the [user_name] and [server_ip] with the precise person title and the IP tackle of the VNC server. In our instance, the command could be:

$ ssh -L 5901:127.0.0.1:5901 -N -f -l kbuzdar 192.168.72.159

Install VNC Server at Linux Mint 20 – Hint for Linux

This command will arrange a safe tunnel between your localhost and the VNC server.

Now set up VNC shopper utility (VNC viewer )in your system and launch it. Within the prime bar of a VNC viewer, sort 127.0.0.1:5901, and press Enter.

Install VNC Server at Linux Mint 20 – Hint for Linux

When the next dialog seems, click on Proceed.

Install VNC Server at Linux Mint 20 – Hint for Linux

Within the following Authentication dialog, sort VNC server password and click on OK.

Install VNC Server at Linux Mint 20 – Hint for Linux

Now you will note the distant system’s desktop.

Install VNC Server at Linux Mint 20 – Hint for Linux

VNC server connection has efficiently established now. As soon as you might be completed, shut the VNC viewer utility and in addition kill the SSH tunnel by utilizing the Ctrl+c within the Terminal window. If it’s good to hook up with the VNC server once more, first create the tunnel after which hook up with the VNC server utilizing the VNC viewer utility.

On this article, you might have discovered how one can set up the VNC server on the Linux Mint 20 system. Now you’ll be able to simply handle Linux Mint out of your native system utilizing the GUI interface. I hope you favored the article!

linux mint 19 vnc server,linux mint vnc client,linux mint 19 x11vnc,linux mint tigervnc,linux mint 19 vnc setup,vino vs x11vnc,install vnc viewer linux mint,xrdp linux mint 19 cinnamon,linux mint x11vnc,how to install vnc on mint easily,linux mint vnc viewer,linux mint tightvnc,ubuntu 18.04 vnc server,ubuntu 20.04 vnc server,ubuntu 16.04 vnc server,install realvnc server ubuntu,tigervnc-xorg-extension,ubuntu vino,install vnc server linux mint 19,linux mint 20 vnc server,tigervnc,vnc viewer linux mint 19,how to install vnc server in linux,linux mint vino

Share: