Linux VNC设置

时间:2014-03-17 09:24:53   收藏:0   阅读:514

其实配置VNC很简单。只要运行vncserver就好了.运行完毕后,它会在家目录生成.vnc目录。

里面最重要的一个文件是Xstartup。

然后你可以使用

vncviewer yourremotehost:id

就可以了。



不过VNC默认启动的X-windows是twm,看上去有点丑,那么你可以把~/.vncr/xstartup文件修改如下

#!/bin/sh


# Uncomment the following two lines for normal desktop:

#unset SESSION_MANAGER

#exec /etc/X11/xinit/xinitrc


[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey

vncconfig -iconic &

xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

#twm &

gnome-session &


Linux VNC设置,布布扣,bubuko.com

原文:http://1452008.blog.51cto.com/1442008/1377746

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!