Langkah-langkah instalasi x11vnc di ubuntu 16.04.3

Langkah instalasi x11vnc di ubuntu 16.04.3

1. install x11vnc

sudo apt install x11vnc

2. setting password vnc

x11vnc -storepasswd

akan muncul :

Enter VNC password:
Verify password:
Write password to /home/USERNAME/.vnc/passwd? [y]/n y
Password written to: /home/USERNAME/.vnc/passwd

*USERNAME disesuaikan dengan user akun ubuntu

3. setting koneksi

x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/USERNAME/.vnc/passwd -rfbport 5900 -shared

*USERNAME disesuaikan dengan user akun ubuntu

4. setting autostart vnc

sudo nano /lib/systemd/system/x11vnc.service

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

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/USERNAME/.vnc/passwd -rfbport 5900 -shared

[Install]
WantedBy=multi-user.target

*USERNAME disesuaikan dengan user akun ubuntu

5. aktifkan daemon dan start vnc
sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service
Menjalankan vnc :
sudo systemctl start x11vnc.service
Mengecek status vnc:
sudo systemctl status x11vnc.service