• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Setup VNC Server on Linux Mint 20

  • 00:26 cat /etc/os-release
  • 00:33 apt-get -y install x11vnc
  • 00:51 mkdir /etc/x11vnc
  • 01:02 x11vnc --storepasswd /etc/x11vnc/vncpwd
  • 01:14 xed /lib/systemd/system/x11vnc.service
  • 01:31 systemctl daemon-reload
  • 01:39 systemctl enable x11vnc.service
  • 01:52 systemctl start x11vnc.service
  • 02:09 ifconfig
{{postValue.id}}

To Setup the VNC Server on Linux Mint 20

Introduction:

Virtual Network Computing (VNC) is a graphical desktop sharing system that handles the Remote Frame Buffer protocol (RFB) that control the other computer remotely. This tutorial will cover to setup VNC Server on Linux Mint 20. Installation Procedure: First check the version of OS

root@linuxhelp:~# cat /etc/os-release 
NAME="Linux Mint"
VERSION="20 (Ulyana)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20"
VERSION_ID="20"

Install the VNC service

root@linuxhe:~# apt-get -y install x11vnc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
.
.
.
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24+linuxmint1) ...

Create a directory for VNC service

root@linuxhe:~# mkdir /etc/x11vnc

Now create an encrypted password for the VNC file:

root@linuxhe:~# x11vnc --storepasswd /etc/x11vnc/vncpwd
Enter VNC password: 
Verify password:    
Write password to /etc/x11vnc/vncpwd?  [y]/n 
Password written to: /etc/x11vnc/vncpwd```

create a system service file for the VNC service:

root@linuxhe:~# xed /lib/systemd/system/x11vnc.service

Enter this line to the configuration file:

 [Unit]
Description=Start x11vnc at startup.
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -noxdamage -repeat -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 –shared

[Install]
WantedBy=multi-user.target

Now reload the service

root@linuxhe:~# systemctl daemon-reload

now enable the VNC service

root@linuxhe:~# systemctl enable x11vnc.service
Created symlink /etc/systemd/system/multi-user.target.wants/x11vnc.service → /lib/systemd/system/x11vnc.service.

Now start the VNC service

root@linuxhe:~# systemctl start x11vnc.service

finally switch your windows and open your vnc and enter your IP snap1 The VNC server is working snap2

With this method, to Setup the VNC Service on Linux Mint 20 is comes to an end.

Tags:
samson
Author: 

Comments ( 1 )

markdm
I tried this in Mint 20.2 Mate it does not work. Wonder what I need in 20.2 Mate?
Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is meant by VNC?

A

Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer protocol (RFB) to remotely control another computer.

Q

Where do you create a password file for x11vnc?

A

The location is # /etc/x11vnc/vncpwd

Q

What is the command to reload the service?

A

The command is # systemctl daemon-reload

Q

How do you create a systemd file for the vnc service?

A

The command is # xed /lib/systemd/system/x11vnc.service

Q

Where we create a directory for x11vnc?

A

The location is /etc/x11vnc

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luke ?
workbench for debian

I am using workbench in CentOS whereas now I need to use Debian Operating system so could you please help to install and use in Debian?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.