Ubuntu上使用vnc服务

http://www.aichengxu.com/linux/8479752.htm

1. 

sudo apt-get install x11vnc

2.

sudo x11vnc -storepasswd

3.

sudo cp /%root%/.vnc/passwd /etc/x11vnc.pass

4.(貌似可以不做)

修改文件  /etc/init/x11vnc.conf

start on login-session-start
script
/usr/bin/x11vnc -auth /var/run/lightdm/root/:0 -noxrecord -noxfixes
-noxdamage -rfbauth /etc/x11vnc.pass -forever -bg -rfbport 5900 -o
/var/log/x11vnc.log
end script

 

posted @ 2017-05-15 16:35  shinedream  阅读(347)  评论(0编辑  收藏  举报