【求组】X11VNC无法自动启动
Tofloor
poster avatar
yofc0904
deepin
2019-10-08 01:38
Author
每次要手动启动下面这段命令,怎么设置啊?
x11vnc -auth guess -once -loop -noxdamage -repeat -rfbauth ~/.vnc/passwd -rfbport 5900 -shared

Reply Favorite View the author
All Replies
avatar
132******16
deepin
2019-10-08 03:00
#1
添加到/etc.rc.local(deepin需要做些设置该脚本才能才能在开机时执行),或者写个systemd的service。但是据我观察,最重要的是需要开启账号开启自动登录(界面化登录),否则无法连上。比如我开机后通过ssh登录开启x11vnc后,一连接就会断开,只有通过初次界面化登录后开启x11vnc,后面才能正常连接,我也不懂是为什么。。。
Reply View the author
avatar
yofc0904
deepin
2019-10-08 06:01
#2
不会整,还是手动吧
Reply View the author