Linux VNC設置

其實配置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 &


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章