centos6.5安装xrdp

来源:互联网 发布:oracle数据库卸载 编辑:程序博客网 时间:2024/06/02 07:02

近来工作比较无聊,折腾了个CentOS6.5玩玩。

XRDP的功能是在windows系统中使用mstsc远程桌面连接Linux进行操作。

由于上次折腾忘记了XRDP的配置步骤,特此记录一下。

1.安装源

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

安装源的 key: rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

2.使用yum完成XRDP和VNC SERVER的安装

yum install -y xrdp vnc-server

3.添加远程桌面用户

使用vi编辑/etc/sysconfig/vncservers文件,在文件末尾添加

VNCSERVERS="2:root"
VNCSERVERARGS[1]="-geometry 1280x720"

4.为用户指定密码

执行vncserver命令,按提示输入密码并确认,服务自动创建用户空间等。

5.执行netstat -nlp查看vnc server和xrdp端口是否被监听

6.打开vnc service

service vnc service start

service xrdp start

7.设置iptables允许规则

iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT

或进入/etc/sysconfig目录用vi iptables,添加-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT。

1 0
原创粉丝点击