Fedora 9系統(tǒng)下創(chuàng)建和配置vncserver過程
#vi /etc/sysconfig/vncserver //編輯vncserver配置文件
VNCSERVERS=”1:root”
VNCSERVERARGS[1]=”-geometry 800×600 -0.0.0.0″
#vncpasswd //創(chuàng)建vnc口令
#vncserver (service vncserver start) //啟動vncserver
#service iptables stop //關閉iptables防火墻
#vi .vnc/xstartup //編輯xstartup的腳本
#!/bin/sh
vncconfig -iconic &
# 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
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
twm &
在windowx xp 客戶端打開vic viewer 連接輸入: Fedora ip add:1
其它:
#vi /etc/sysconfig/iptables //允許5901端口通過
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 5901 -j ACCEPT
#vi /etc/sysconfig/vncserver //允許連接兩個不同的用戶,當然同時需要iptables開放5902端口
VNCSERVERS=”1:root 2:keith”
vncviewer 切換全屏模式--F8
版權聲明:本站文章來源標注為YINGSOO的內(nèi)容版權均為本站所有,歡迎引用、轉載,請保持原文完整并注明來源及原文鏈接。禁止復制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務器上建立鏡像,否則將依法追究法律責任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學習參考,不代表本站立場,如有內(nèi)容涉嫌侵權,請聯(lián)系alex-e#qq.com處理。