Centos 6.5 安装Xrdp 远程桌面

1. 安装源:

  Once you determine your architecture then you can install the correct EPEL repository with the below commands:

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

You can verify that the EPEL repository is there by running the below command and you should see the EPEL repository listed

sudo yum repolist

Once you have verified the EPEL repository is installed correctly you need to perform the last few steps below this will install XRDP and Tiger VNC Server for you to connect to. The Front end of XRDP uses the RDP protocol and internally it uses VNC to connect and display the Remote Desktop to you.

2. 执行安装命令

 sudo yum install -y xrdp vnc-server

 sudo yum install xrdp tigervnc-server

 

3.编辑 /etc/sysconfig/vncservers 文件

编辑 /etc/sysconfig/vncservers 文件 在文件的末尾添加如下两行。
VNCSERVERS="2:root"
VNCSERVERARGS[1]="-geometry 1280x720"

4. 设置密码:

  执行vncpasswd设定密码,这个密码用于登录

5. 使用 service 命令来启动 xrdp 和 vcnserver 功能。

sudo service vncserver start
sudo service xrdp start
sudo chkconfig xrdp on sudo chkconfig vncserver on

6. iptalble防火墙:开启3389端口,开启防火墙后要重启 `services iptables restart`

iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 3389 -j ACCEPT

7. 可以使用windows 远程桌面工具登录Linux

> cmd
> mstsc

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值