Centos VNCSERVER 設定
Centos VNCSERVER 設定
1. yum -y install vncserver
2. vi /etc/sysconfig/vncservers
加入以下設定
VNCSERVERS="1:root"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
3. vncpasswd
4. service vncserver restart
5. vi /etc/rc.d/rc.local
加入以下設定
service vncserver start
6. vi ~/.vnc/xstartup
拿掉開頭的#註解,其他行則加上註解
SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
7. vi /etc/sysconfig/iptables
加入以下設定
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT
8. /etc/rc.d/init.d/iptables restart
9. service vncserver restart
標籤: Linux

0 個意見:
張貼留言
訂閱 張貼留言 [Atom]
<< 首頁