XRDP on CentOS 5

$ yum install gcc pam-devel openssl-devel
$ tar -zxvf xrdp-0.4.1.tar.gz
$ cd xrdp-0.4.1
$ make
$ sudo make install
$ ln /usr/local/xrdp/xrdp_control.sh /etc/init.d/xrdesktop
$ gconftool-2 –type list –list-type=string –set /desktop/gnome/peripherals/keyboard/kbd/layouts [damnlayouts] # map keyboard layout
$ sudo nano /etc/xrdp/sesman.ini
change 127.0.0.1 to 0.0.0.0
$ /sbin/chkconfig –add xrdesktop
$ /sbin/service xrdesktop start

$ yum install gcc pam-devel openssl-devel

$ wget http://ncu.dl.sourceforge.net/sourceforge/xrdp/xrdp-0.4.1.tar.gz

$ tar -zxvf xrdp-0.4.1.tar.gz

$ cd xrdp-0.4.1

$ make

$ sudo make install

$ ln /usr/local/xrdp/xrdp_control.sh /etc/init.d/xrdesktop

$ gconftool-2 –type list –list-type=string –set /desktop/gnome/peripherals/keyboard/kbd/layouts [damnlayouts] # map keyboard layout

$ sudo nano /etc/xrdp/sesman.ini

change 127.0.0.1 to 0.0.0.0

$ /sbin/chkconfig –add xrdesktop

$ /sbin/service xrdesktop start

[optional]
$ cp startwm.sh startwm.sh.bak
$ nano /usr/local/xrdp/startwm.sh // change login env
export LANG=zh_TW.UTF-8

3 responses to this post.

  1. Thanks for this,

    Had some issues using the prepackaged files, i was about to give up hope!

    Reply

  2. Posted by kanegelo on 2010/05/24 at 23:07:00

    Wow…

    Great work—you do not say many things…just commands…I like it!

    I only had to correct /sbin/chkconfig –add xrdesktop to /sbin/chkconfig – – add xrdesktop (oops…I mean the dashes are connected not one and not apart- I just did that to show that they re apart!)

    Man…I’ll keep lookin to you for results as you deliver!

    Reply

  3. Posted by goll on 2010/12/19 at 11:14:45

    Add the rpmforge repo to CentOS

    yum -y install xrdp

    Reply

Leave a comment