Warning: Undefined array key "cperpage" in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 255

Warning: Undefined variable $output in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 325

Warning: Undefined variable $fixed_tags in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 326

Warning: Undefined variable $isshowdots in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 327

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 330

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 333

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 336

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Undefined variable $more_text_link in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345
Ubuntu12.10 配置自动启动vnc – 理想社会

Ubuntu12.10 配置自动启动vnc

1、安装x11vnc

sudo apt-get install vino vinagre x11vnc

2、设置远程桌面登录时使用的密码,设置完后直接回车确认保存密码到 ~/.vnc/passwd文件里,“~/ ”是你当前用户的根目录如:/home/xyz/

sudo x11vnc -storepasswd

3、设置x11vnc通用的密码存储位置

sudo x11vnc -storepasswd in /etc/x11vnc.pass


4、将用户目录下的passwd文件内容copy到 /etc/x11vnc.pass下

sudo cp /home/xyz/.vnc/passwd /etc/x11vnc.pass

5、配置x11vnc为跟随系统自动启动,新建一个文件/etc/init/x11vnc.conf

sudo vi /etc/init/x11vnc.conf

按 i 键进入编辑模式,粘贴以下内容,并保存退出:

    start on login-session-start  

    script  
        x11vnc -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.pass -rfbport 5900  
    end script

其中,5900是端口号,可以自己定义。

6、重启ubuntu,通过Vncview连接。

评论

发表回复

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据