查看你的OS版本是32位元還是64位元
# uname -r

根據你的版本,下載相對應的rpm
CentOS 6 32-Bit
# wget http://download.fedoraproject.org/pub/epel/6/i386/...
# rpm -ivh epel-release-6-8.noarch.rpm

CentOS 6 64-Bit
# wget http://download.fedoraproject.org/pub/epel/6/x86_6...
# rpm -ivh epel-release-6-8.noarch.rpm

# yum repolist

# yum install xrdp tigervnc-server
如果你出現"Starting VNC server: no displays configured [FAILED]"的錯誤訊息
# vi /etc/sysconfig/vncservers
將這行 # VNCSERVERS="2:myusername" 改成 VNCSERVERS="2:這裡改成你的username"
# vncpasswd
輸入二次你的VNC密碼
完成後就可以再次執行
# yum install xrdp tigervnc-server

# service vncserver start
# service xrdp start

# chkconfig xrdp on
# chkconfig vncserver on

# iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 3389 -j ACCEPT
# service iptables save
# service iptables restart

這樣就完成了,你可以用windows遠端桌面連線了


arrow
arrow

    痞客興 發表在 痞客邦 留言(0) 人氣()