x11vnc: Автозапуск при старте системы.
Настройка автозапуска с паролем.
Установка:
Установка:
apt-get install x11vnc
Устанавливаем пароль:x11vnc -storepasswd
Enter VNC password: *********
Verify password: *********
Write password to /root/.vnc/passwd? [y]/n y
Password written to: /root/.vnc/passwd
Тест:
x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /root/.vnc/passwd -rfbport 5900 -shared
Создаем файл сервиса:nano /etc/systemd/system/x11vnc.service
[Unit]
Description=x11vnc remote desktop server
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /root/.vnc/passwd -rfbport 5900 -shared
Restart=on-failure
[Install]
WantedBy=multi-user.target
Запускаем:
systemctl daemon-reload
systemctl start x11vnc
systemctl status x11vnc
-------------
if active (running)
systemctl enable x11vnc.service