【转】Getting xrdp to work on CentOS 6.4

vi /etc/selinux/config

SELINUX=disabled

reboot

Step 1:

#rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
#rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
#yum -y update
#yum repolist

Step 2:

#yum install -y xrdp tiger-vncserver autoconf automake libtool openssl-devel pam-devel libX11-devel libXfixes-devel

Step 3:

Download the latest version of xrdp. That’s probably going to be 0.6.0. Unzip/tar it to a folder on your desktop

#cd /home/username/Destkop/xrdp-v0.6.6/
#chmod u+x bootstrap
#./bootstrap
#chmod u+x configure
#./configure
#make
#make install

This will compile a bunch of stuff.

#groupadd tsusers
#groupadd tsadmins

Fantastic. All the easy work is done, now let’s modify a bunch of config files manually.

Step 4:

#nano -w /etc/group

Now add these two lines to the group file. Note it is group, not groups.

tsusers:x:501:YOURUSERNAME
tsadmins:x:502:root

Setting up the password for xrdp/vnc

#su YOURUSERNAME
#vncpasswd
Insert your password twice
#exit
To return root user

Edit VNC server files

#nano -w /etc/sysconfig/vncservers

Add to end of vncservers file. You can adjust the resolution from microsoft’s RDC app, but it’s good to have a resolution to start with.

VNCSERVERS=”1:YOURUSERNAME”
VNCSERVERARGS[1]=”-geometry 1355×768 -depth 16″

Edit another text file

#nano -w /etc/rc.local

Dump this line at the end on a new line

/etc/xrdp/xrdp.sh start

And then start up the service. Awesome. You shouldn’t need to muck around with the firewall, but if you do the port number is 3389

#chkconfig vncserver on
#service vncserver start
#/etc/xrdp/xrdp.sh start

And… behold! Hopefully it was worth it.

转载于:https://www.cnblogs.com/yuliyang/p/3583397.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值