This article covers how to install and configure VNC on Debian Linux System. Also, you will learn how to connect it from Linux, MacOS and Windows local system and manage your Debian 9 server easily using a graphic interface.
VNC (Virtual Network Computing) is a technology for remote desktop sharing. VNC enables the visual desktop display of one computer to be remotely viewed and controlled over a network connection. It is similar to MSTSC on windows. It uses the Remote Frame Buffer protocol (RFB) to remotely control another computer.
To install VNC and XFCE on Debian, run the following commands:
$ apt-get update
$ apt-get install xfce4 xfce4-goodies gnome-icon-theme tightvncserver
To Create a VNC User on Debian:
1. Create a user named vnc by using this command.
$ adduser vnc
2. Install sudo by executing this command. We will need to add vnc user to sudo group.
$ apt-get install sudo
3. Now, Add vnc user to sudo group, it will give permission to vnc user to act like a root user and execute root command.
$ gpasswd -a vnc sudo
Adding user vnc
to group sudo
4. switch to a vnc user for further operations.
$ su - vnc