How to install VNC server on Linuxmint 18.3

To install VNC server on Linux Mint 18.3

VNC or ' Virtual Network Computing' server is a software is used to control and operate client machines which are connected to the same network, VNC is the graphical desktop sharing application used to control another computer. It makes management of files, software, and settings on a remote server easy for users who find command interface little hard. In this tutorial, the method to install  VNC server on Linux Mint 18.3 is covered. 

Installing  VNC server

Let' s begin with the installation of the VNC server package on your machine by running the following command. 

linuxhelp ~ # apt install vnc4server -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  xbase-clients
Suggested packages:
  vnc-java
The following NEW packages will be installed:
  vnc4server xbase-clients
0 upgraded, 2 newly installed, 0 to remove and 273 not upgraded.
Need to get 1,626 kB of archives.
After this operation, 5,515 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 xbase-clients all 1:7.7+13ubuntu3 [4,570 B]
.
. 
0vncserver) in auto mode
update-alternatives: using /usr/bin/vnc4passwd to provide /usr/bin/vncpasswd (vncpasswd) in auto mode
update-alternatives: using /usr/bin/vnc4config to provide /usr/bin/vncconfig (vncconfig) in auto mode

Once it is installed, set password for VNC as follows. 

linuxhelp ~ # vncpasswd
Password:
Verify:

After setting up the password start the VNC Server by running the following command.

linuxhelp ~ # vncserver :1

New ' linuxhelp:1 (root)'  desktop is linuxhelp:1

Creating default startup script /home/user/.vnc/xstartup
Starting applications specified in /home/user/.vnc/xstartup
Log file is /home/user/.vnc/linuxhelp:1.log

You can run the following command to kill VNC.

linuxhelp ~ # vncserver -kill :1
Killing Xvnc4 process ID 35556

If you want to edit the file run the following command. 

linuxhelp ~ # vim .vnc/xstartup
add the below line in the end of the file
exec /usr/bin/mate-session & 

Now start VNC server with custom resolution using the following command.

linuxhelp ~ # vncserver :1 -geometry 800x600 -depth 24

New ' linuxhelp:1 (root)'  desktop is linuxhelp:1

Starting applications specified in /home/user/.vnc/xstartup
Log file is /home/user/.vnc/linuxhelp:1.log

Now VNC Server is started now you can access this machine from another machine before that install VNC Viewer on that machine in order to access VNC Server.  With this, the method to  install VNC server on Linux Mint 18.3 comes to an end.

Tag : Linux Mint VNC
Comment
marclouis
May 21 2018
my device shows error:""the authentification mechanism requested cannot be provided by the computer."
Add a comment
FAQ
Q
what is the command to kill the process of VNC?
A
use the following command to kill the VNC process

# vncserver -kill :1
Q
how to install vnc server for my Linux mint?
A
refer the following link to install VNC in linuxmint,

https://www.linuxhelp.com/how-to-install-vnc-server-on-linuxmint-18-3/
Q
which are the distributions to support TigerVNC?
A
the distributions to support TigerVNC are
Fedora, OpenSUSE, FreeBSD, Arch Linux, Redhat, and SUSE Linux Enterprise
Q
how to install VNC software in windows?
A
use the below link to install VNC on windows
https://www.tightvnc.com/download.php
Q
How to install OS remotely using VNC?
A
follow this link for installing os remotely

https://www.youtube.com/watch?v=dglb0nbAHCM