1.x0vncserver 使用
安裝:
apt-get -y install tightvncserver tigervnc-scraping-server
2.創建密碼:
vncpasswd
3.启动:
x0vncserver -display :0 -passwordfile ~/.vnc/passwd
新增開機自動啟動服務:
/etc/systemd/system/x0vncserver.service
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
User=root
ExecStart=/bin/bash -c ‘/usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /root/.vnc/passwd &’
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable x0vncserver.service