linux系统:Centos6.5
1.首先确定是不是图形化界面:
yum -y groupinstall Desktop "X Window System" chinese-support
2.先备份数据:
cd /etc/yum.repos.d/(进入对应文件夹)→mv CentOS-Base.repo CentOS-Base.repo.bak(备份文件)
3.下载对应版本的rpm包,我的是64位的所以是这样:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
32的就是:rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
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