[HELP] XRDP not working CentOS

General support questions
centosalot
Posts: 3
Joined: 2014/03/19 15:23:12

Re: [HELP] XRDP not working CentOS

Post by centosalot » 2014/03/19 15:26:22

when I do yum install xrdp I get not found.
I did desktop load of latest centos.
Do I have to add more repositories? If so, how?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: [HELP] XRDP not working CentOS

Post by TrevorH » 2014/03/19 16:08:40

xrdp is in the EPEL repository
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

chaambu
Posts: 1
Joined: 2014/05/13 08:27:10

Re: [HELP] XRDP not working CentOS

Post by chaambu » 2014/05/13 08:41:42

After installing xrdp, I had this problem in CentOS six which was solved by following steps (some of them could be redundant):
1) Installed latest version of xrdp from source: http://sourceforge.net/projects/xrdp/fi ... t/download
gunzip xrdp-v0.6.1.tar.gz
tar -xvf xrdp-v0.6.1.tar
cd xrdp-v0.6.1
./bootstrap
./configure
make install
/etc/xrdp/xrdp.sh start

2) Followed instructions by TiTex
edited /etc/sysconfig/iptables and added
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3389 -j ACCEPT
before the REJECT rule , and restarted iptables
service iptables restart

3) yum install tigervnc-server tigervnc

4) /etc/xrdp/xrdp.sh restart

And it worked for me. In another machine with RHEL5, xrdp stopped working (error problem connecting ...) after an update of software. I could solve it with the following steps:

1) Same as the previous case

2) download all rpms from http://sourceforge.net/projects/tigervn ... MS/x86_64/

3) yum install openmotif openmotif22

4) rpm -i tiger*.rpm

3a) yum remove vnc #or any other package if any conflict shows up & repeat previous line

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: [HELP] XRDP not working CentOS

Post by TrevorH » 2014/05/13 09:53:12

EPEL has a packaged copy of xrdp. You should not use source installs.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

carltm
Posts: 11
Joined: 2008/08/09 10:54:22
Location: Canton, MI
Contact:

Re: [HELP] XRDP not working CentOS

Post by carltm » 2014/09/19 00:28:46

I have installed xrdp many times and it just works. I'd suggest trying to
completely uninstall everything you currently have and starting from scratch.

Code: Select all

rm -rf /etc/xrdp /etc/sysconfig/xrdp
yum -y --enablerepo epel install xrdp tigervnc-server
chkconfig xrdp on; service xrdp start
If you are running iptables, run this also.

Code: Select all

lokkit -q -p3389:tcp

techguy3
Posts: 1
Joined: 2015/02/06 18:34:45

Re: [HELP] XRDP not working CentOS

Post by techguy3 » 2015/02/06 19:22:32

I had this problem with Centos 6.6 and was getting stuck at the "problem connecting" error below and here is what worked for me::

connecting to 127.0.0.1 5910
error - problem connecting

It looks like even though

Code: Select all

yum install xrdp

seems to install tigervnc, it either didn't really install it, or it didn't install all of the required tiger-vnc dependencies.

So I installed:

Code: Select all

yum install tigervnc
yum install tigervnc-server
Following one of the links in this thread, It looks like there were some kind of font requirements issues for tiger-vnc and xrdp.
One of these (I think tigervnc-server) also installed an X11 fonts dependency, maybe that was the issue...

I also added port 3389 TCP to the firewall (I just used the gui)

After restarting xrdp...

Code: Select all

service xrdp restart
I could connect fine from Windows 7 rdp. I didn't edit any config files or add my users to any groups.

usao
Posts: 28
Joined: 2011/09/02 10:53:40
Location: Chandler, AZ

Re: [HELP] XRDP not working CentOS

Post by usao » 2015/03/10 18:59:57

Hi all. Im hitting this issue as well.
I installed xrdp from:
http://mirror.centos.org/centos/6.6/ext ... noarch.rpm
Is this not the correct or recomended EPEL, if not, which is the correct one?
Can I simply un-install xrdp and re-install after pulling the correct EPEL release?

spredwood
Posts: 1
Joined: 2015/07/21 19:02:30

Re: [HELP] XRDP not working CentOS

Post by spredwood » 2015/07/21 19:07:45

Finally, I have managed to find the solution to this problem. I like many people I have read about, I too have hunted high and low for a solution to this.
Some people have managed to get it working OTB, I wasn't one of those. It turns out, the my solution was to simply install a vnc server.

sudo yum install tigervnc-server

kamonoo
Posts: 1
Joined: 2016/11/04 12:07:42

Re: [HELP] XRDP not working CentOS

Post by kamonoo » 2016/11/04 12:21:10

Hello I am Kojo Amonoo - Rockson from Ghana and this is what I did to get my xrdp working maybe it might work with yours too.
This what to do;
Process for installing and enabling remote desktop connectivity on redhat 6 (xrdp and vncserver)
Step 1
a. Download and install tightvnc-server rpm (don't bother to re-install if you have it installed already)
b. Download and install xrdp packages and all its dependencies (don't bother to re-install if you have it installed already)
Step 2
c. Configure the firewall by allowing “5900” to be allowed. on some servers this port is automatically enabled when vnc-server is intalled
d. Configure the /etc/xrdp/sesman.ini file by changing the port number under [globals] from “3350” to defined VNC-SERVER port “5900”
e. In the “xrdp.ini” file, do the following configurations under the [xrdp1]
**** change the ip address from 127.0.0.1 to the ip of the server eg 192.168.9.17
**** change the port number from “3350” to the defined port of vnc-server “5900”
Step 3
f. Save all your configuration in the two .ini files and close the them
g. Test your connection by using remote desktop connectivity to login to the server
h. Look on the server it will pop up a message to either "allow connection" or "refuse connection"
Click on "allow" and bingo.....you are in
:D :D :D :D :D :D
Enjoy the fun....and share it with any who faces same issues.
Blessed love

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: [HELP] XRDP not working CentOS

Post by TrevorH » 2016/11/04 18:56:27

Rather than open port 5900 on the firewall and change the listening ip address, it is more secure to tunnel over ssh to the server so that you continue to liston on 127.0.0.1:5900 on the server and no-one can access it. Then you tunnel e.g -L:5900:127.0.0.1:5900 via an ssh connection to it and connect your vnc client to 127.0.0.1:5900 on your own machine. This also has the advantage of encrypting all your rdp traffic.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply