Install Vnc Viewer Linux Mint

Virtual Network Computing ( VNC) is a widely used that allows user accounts to remotely connect and control the desktop interface of one computer from another computer or mobile device.In this article, we will explain how to install and configure a VNC Server on a Ubuntu 18.04 Desktop edition via tigervnc-server program. Testing Environment VNC Server: 192.168.56.108VNC Client: 192.168.56.2Install a Desktop Environment in UbuntuAs I said, VNC is a desktop-sharing system, so you need to have a desktop environment installed on your Ubuntu server. You can install the DE of your choice by running the appropriate commands below.

  1. Install Vnc Viewer Linux Mint Version

For the purpose of this article, we will install Ubuntu Gnome (Official flavor). $ sudo apt-get install ubuntu-desktop #Default Ubuntu desktop$ sudo apt install ubuntu-gnome-desktop #Ubuntu Gnome (Official flavor)$ sudo apt-get install xfce4 #LXDE$ sudo apt-get install lxde #LXDE$ sudo apt-get install kubuntu-desktop #KDEInstall and Configure a VNC in UbuntuTigervnc-server is a high-speed, multi-platform VNC program which runs an Xvnc server and starts parallel sessions of Gnome or other Desktop Environment on the VNC desktop.To install TigerVNC server and other associated packages in Ubuntu, run the following command. $ sudo apt install tigervnc-standalone-server tigervnc-common tigervnc-xorg-extension tigervnc-viewerNow start the VNC server by running the vncserver command as a normal user. This action will create the initial configuration stored in the $HOME/.vnc directory and it will also prompt you to set up a login password.Enter a password (which must be at least six characters length) and confirm/verify it. Then set a view-only password if you wish, as follows. $ vncserver$ ls -l /.vnc.

Stop VNC ServerTo configure GNOME or whatever desktop you have installed, create a file called xstartup under the configurations directory using your. $ vi /.vnc/xstartupAdd the following lines in the file.

These commands will be automatically executed whenever you start or restart the TigerVNC server. Note that the commands may vary depending on the DE you installed.

#!/bin/shexec /etc/vnc/xstartupxrdb $HOME/.Xresourcesvncconfig -iconic &dbus-launch -exit-with-session gnome-session &Save the file and set the appropriate permission on the file so it can be executed. $ chmod 700 /.vnc/xstartupNext, start the VNC server by running the following command as a normal user. Set your own values for the display geometry. In addition, use the -localhost flag to allow connections from the localhost only and by analogy, only from users authenticated on the server.In addition, VNC by default uses TCP port 5900+N, where N is the display number. In this case, the:1 means that the VNC server will run on display port number 5901.

$ vncserver:1 -localhost -geometry 1024x768 -depth 32. Verify VNC Running Ports Connecting to VNC Server via VNC ClientIn this section, we will show how to connect to the VNC server, but before we go into that, you need to know that by default VNC is not secure by default (it is not an encrypted protocol and can be subject to packet sniffing). This problem can be fixed by creating a tunnel from the client to server connection through SSH.Using, you can securely forward traffic from your local machine on port 5901 to the VNC server on the same port.On Linux client machine, open a new terminal window and run the following command to create an SSH tunnel to VNC server. $ ssh -i /.ssh/ubuntu18.04 -L 5901:127.0.0.1:5901 -N -f -l tecmint 192.168.56.108Next install vncviewer client such as TigerVNC Viewer as follow s(you can install any other client of your choice).

Install Vnc Viewer Linux Mint Version

$ sudo apt install tigervnc-viewer #Ubuntu/Debian$ sudo yum install tigervnc-viewer #CnetOS/RHEL$ sudo yum install tigervnc-viewer #Fedora 22+$ sudo zypper install tigervnc-viewer #OpenSUSE$ sudo pacman -S tigervnc #Arch LinuxOnce the installation is complete, run your VNC client, specify the address localhost:5901 to connect to display 1 as follows. $ vncviewer localhost:5901Alternatively, open it from the system menu, enter the address above and then click Connect. Ubuntu Desktop Access via VNCAttention: If you are security conscious, you may have noticed that the VNC viewer is showing “ connection not encrypted” even though we have enabled SSH tunneling.This is because it is designed to use specific security schemes other than SSH tunneling when attempting to authenticate with the server.

However, the connection is secure once you have enabled SSH tunneling. Creating a Systemd Unit File for TigerVNC ServerIn order to manage the VNC server under systemd i.e start, stop, and restart the VNC service as needed, we need to create a unit file for it under the /etc/systemd/system/ directory, with root privileges.

Install Vnc Viewer Linux Mint

$ sudo vim /etc/systemd/system/Then add the following lines in the file: UnitDescription=Remote desktop service (VNC)After=syslog.target network.targetServiceType=simpleUser=tecmintPAMName=loginPIDFile=/home/%u/.vnc/%H%i.pidExecStartPre=/usr/bin/vncserver -kill:%i /dev/null 2&1 :ExecStart=/usr/bin/vncserver:%i -localhost no -geometry 1024x768ExecStop=/usr/bin/vncserver -kill:%iInstallWantedBy=multi-user.targetSave the file and close it.Next, reload the systemd manager configuration to read the newly created a unit file, as follows. $ sudo systemctl daemon-reloadThen start the VNC service, enable it to auto-start at system boot and check its status as shown. $ sudo systemctl stop$ sudo systemctl stop$ sudo systemctl stop. Starting vncserver works but I can’t get service to work.Ubuntu 18.04.3 Server, I edited User=tecmint to User=densm and – geometry 1024×768 to -geometry 1600×900 in /etc/systemd/system/.server:1.log:Sat Sep 14 22:vncext: VNC extension running!vncext: Listening for VNC connections on all interface(s), port 5901vncext: created VNC server for screen 0XIO: fatal IO error 11 (Resource temporarily unavailable) on X server “:1”after 175 requests (175 known processed) with 1 events remaining.

Posted on  by  admin