Step 3. Starting x11vnc server
With the service config file in place, notify the systemd service of the change made as follows.
sudo systemctl daemon-reload
Next, enable the X11vnc service in order to auto-start on boot time. This will include the x11vnc server in the list of startup applications.
sudo systemctl enable x11vnc.service
Once enabled, start the service using the following command:
sudo systemctl start x11vnc.service
To verify if the X11 VNC server is running, execute the command.
sudo systemctl status x11vnc.service
From the above output, you can see that the VNC server is up and running and listening on port 5900.
install ufw
sudo ufw status
kalau belum aktif
sudo ufw enable
sudo ufw allow 5900/tcp
sudo ufw reload