How to install xrdp+x11rdp on UBUNTU 14.04

Here you find the compiled packages for xrdp/x11rdp version 0.8:
http://server1.xrdp.org/xrdp/release/v0.8/

You can find also pulseaudio module for audio/microphone redirection but only for i386. Unfortunately I have amd64 version of XUBUNTU.
To compile pulseaudio module:

Install dev tools and pulseaudio source…

sudo apt-get install dpkg-dev
apt-get source pulseaudio
sudo apt-get build-dep pulseaudio

Build pulseaudio…

cd pulseaudio-4.0
dpkg-buildpackage -rfakeroot -uc -b

Download and extract xrdp source from https://github.com/neutrinolabs/xrdp
Go to ../xrdp/sesman/chansrv/pulse/
edit Makefile and point PULSE_DIR to ~/pulseaudio-4.0 dir

run make; the outputs will be
module-xrdp-sink.so
module-xrdp-source.so

sudo cp module-xrdp-sink.so /usr/lib/pulse-4.0/modules
sudo cp module-xrdp-source.so /usr/lib/pulse-4.0/modules

Download and copy http://server1.xrdp.org/xrdp/release/v0.8/ubuntu14.04/pulse/x86/defaul.pa to “/etc/pulse/default.pa”

Notes:

  • if you build xrdp with –enable-load_pulse_modules, then the above modules will get loaded automatically when xrdp starts. However if –enable-load_pulse_modules is not used, then you need to edit /etc/pulse/default.pa and insert the following two lines into it:load-module module-xrdp-sink
    load-module module-xrdp-source
  • You can also decide to disable lightdm at startup because not needed…
sudo sh -c "echo 'manual' > /etc/init/lightdm.override
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s