Fedora 9.0系統(tǒng)下創(chuàng)建和配置vncserver遠(yuǎn)程連接
發(fā)布日期:2021-12-12 03:09 | 文章來源:CSDN
#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 //關(guān)閉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 //允許連接兩個(gè)不同的用戶,當(dāng)然同時(shí)需要iptables開放5902端口
VNCSERVERS=”1:root 2:keith”
vncviewer 切換全屏模式--F8
VNCSERVERS=”1:root”
VNCSERVERARGS[1]=”-geometry 800×600 -0.0.0.0″
#vncpasswd //創(chuàng)建vnc口令
#vncserver (service vncserver start) //啟動vncserver
#service iptables stop //關(guān)閉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 //允許連接兩個(gè)不同的用戶,當(dāng)然同時(shí)需要iptables開放5902端口
VNCSERVERS=”1:root 2:keith”
vncviewer 切換全屏模式--F8
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。
相關(guān)文章