linux系統:Centos6.5linux
1.首先肯定是否是圖形化界面:緩存
yum -y groupinstall Desktop "X Window System" chinese-supportserver
2.先備份數據:ip
cd /etc/yum.repos.d/(進入對應文件夾)→mv CentOS-Base.repo CentOS-Base.repo.bak(備份文件)it
3.下載對應版本的rpm包,個人是64位的因此是這樣:table
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmiptables
32的就是:rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmservice
4.生成緩存:下載
yum clean all →yum makecache防火牆
5.開始安裝:
yum -y install xrdp tightvnc-server
6.啓用服務:
/etc/init.d/xrdp start
service xrdp start
到如今Windows就能夠遠程鏈接linux了,可是通常防火牆會攔截,因此把防火牆關掉就能夠了
關閉防火牆:service iptables stop