systemctl enable XXX.service
sudo vim /lib/systemd/system/x11vnc.service
[Unit]
Description=x11vnc Application Container Engine
Requiers=display-manager.service
After=display-manager.service
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -display :0 -auth guess -rfbport 7001 -forever -shared -noxdamage -noncache -repeat -capslock -nomodtweak -rfbauth /home/deepin/.vnc/passwd
ExeStop=/usr/bin/killall
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl restart x11vnc.service
sudo systemctl enable x11vnc.service
sudo vim /etc/rc.local
sudo chmod 755 /etc/rc.local
sudo crontab -e
@reboot (rm -rf /tmp)
添加我为好友,拉您入交流群!
请使用微信扫一扫!