apt install x11vnc
x11vnc -storepasswd yourVNCpasswordHERE /etc/x11vnc.pass
Fichier : /etc/systemd/system/x11vnc.service
Contenu :
[Unit]
Description="x11vnc"
Requires=display-manager.service
After=display-manager.service
[Service]
ExecStart=/usr/bin/x11vnc -display :0 -forever -shared -rfbauth /etc/x11vnc.pass -auth guess -rfbport 5900
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure
Restart-sec=2
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable --now x11vnc
apt install remmina-plugin-rdp