http://c-nergy.be/blog/?p=9285
apt-get -y update
apt-get -y install build-essential automake autoconf libtool pkg-config checkinstall
apt-get -y install libx11-dev libxfixes-dev libssl-dev libpam0g-dev libtool libjpeg-dev flex bison gettext autoconf libxml-parser-perl libfuse-dev xsltproc libxrandr-dev python-libxml2 nasm xserver-xorg-dev fuse
apt-get -y install xrdp
apt-get -y remove xrdp
mkdir ~/Downloads
cd ~/Downloads
wget https://github.com/neutrinolabs/xrdp/releases/download/v0.9.1/xrdp-0.9.1.tar.gz
wget https://github.com/neutrinolabs/xorgxrdp/releases/download/v0.2.0/xorgxrdp-0.2.0.tar.gz
tar xfz xrdp-0.9.1.tar.gz
cd ~/Downloads/xrdp-0.9.1/
./bootstrap
./configure
make
checkinstall -y
cd ~/Downloads
tar xfz xorgxrdp-0.2.0.tar.gz
cd xorgxrdp-0.2.0
./bootstrap
./configure
make
checkinstall -y
echo "Symbolic links for xrdp"
echo "-----------------------"
sudo mv /etc/xrdp/startwm.sh /etc/xrdp/startwm.sh.backup
sudo ln -s /etc/X11/Xsession /etc/xrdp/startwm.sh
sudo mkdir /usr/share/doc/xrdp
sudo cp /etc/xrdp/rsakeys.ini /usr/share/doc/xrdp/rsakeys.ini
## Needed in order to have systemd working properly with xrdp
echo "-----------------------"
echo "Modify xrdp.service "
echo "-----------------------"
#Comment the EnvironmentFile - Ubuntu does not have sysconfig folder
sudo sed -i.bak 's/EnvironmentFile/#EnvironmentFile/g' /lib/systemd/system/xrdp.service
#Replace /sbin/xrdp with /sbin/local/xrdp as this is the correct location
sudo sed -i.bak 's/sbin\/xrdp/local\/sbin\/xrdp/g' /lib/systemd/system/xrdp.service
echo "-----------------------"
echo "Modify xrdp-sesman.service "
echo "-----------------------"
#Comment the EnvironmentFile - Ubuntu does not have sysconfig folder
sudo sed -i.bak 's/EnvironmentFile/#EnvironmentFile/g' /lib/systemd/system/xrdp-sesman.service
#Replace /sbin/xrdp with /sbin/local/xrdp as this is the correct location
sudo sed -i.bak 's/sbin\/xrdp/local\/sbin\/xrdp/g' /lib/systemd/system/xrdp-sesman.service
#Issue systemctl command to reflect change and enable the service
sudo systemctl daemon-reload
sudo systemctl enable xrdp.service
--------/etc/xrdp.ini----------
[Xorg]
name=Xorg
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
code=20
--------/etc/xrdp.ini----------
Sunday, January 22, 2017
Monday, January 2, 2017
ubuntu 16.04 - package list
build-essential apache2 apache2-dev apache2-utils autotools-dev automake autoconf checkinstall unzip zip libssl-dev
python-letsencrypt-apache
xubuntu-desktop xrdp
tomcat8 maven openjdk-8-jdk-headless
libcairo2-dev libjpeg-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev libavcodec-dev libswscale-dev
python-letsencrypt-apache
xubuntu-desktop xrdp
tomcat8 maven openjdk-8-jdk-headless
libcairo2-dev libjpeg-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev libavcodec-dev libswscale-dev