Friday, August 11, 2017

Install XRDP on OSX


  • Install XCode commandline tools: xcode-select --install
  • Install XQuartz
  • Install homebrew
  • brew install openssl
  • brew install pkg-config
  • brew install nasm
  • wget https://github.com/neutrinolabs/xrdp/releases/download/v0.9.3/xrdp-0.9.3.tar.gz
  • tar -zxvf xrdp-0.9.3.tar.gz
  • cd xrdp-0.9.3
  • ./configure PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
  • make
  • sudo make install
  • wget https://github.com/neutrinolabs/xorgxrdp/releases/download/v0.2.3/xorgxrdp-0.2.3.tar.gz
  • tar -zxvf xorgxrdp-0.2.3.tar.gz
  • cd xorgxrdp-0.2.3
  • ./configure PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig
  • make
  • sudo make install

Thursday, June 23, 2016

Install XRDP on Ubuntu 16.04

Same as the Steps for Ubuntu 14.04. Additionally create following symbolic links:
  • /usr/sbin/xrdp-sesman -> /usr/local/sbin/xrdp-sesman
  • /usr/sbin/xrdp -> /usr/local/sbin/xrdp
Configure xrdp to start automatically during startup:
  • systemctl enable xrdp.service
Start xrdp  service:
  • systemctl start xrdp.service
Optionally, if you want to launch mate after login:
  • echo mate-session > ~/.xsession
  • While logging into rdp, select "Session Manager: option in the dropdown for session

Wednesday, February 10, 2016

NFS mount has owner as nobody:nogroup

In such a case check /etc/idmapd.conf and ensure that it contains line of form Domain = <your domain>
E.g.:
Domain = example.com

Install XRDP with RemoteFX on Linux

On Ubuntu 14.04:

Login as root and run following commands:
apt-get install tmux git build-essential autoconf libtool nasm xserver-xorg-dev libxfixes-dev libssl-dev libpam0g-dev libfuse-dev libxrandr-dev

git clone git://github.com/neutrinolabs/xrdp


cd xrdp



git submodule init

git submodule update

cd librfxcodec

make

cd ..

cd xorgxrdp/

./bootstrap

./configure

make

make install

cd ..


./bootstrap

./configure --enable-fuse --enable-rfxcodec


make


make install

xrdp-keygen xrdp auto

update-rc.d xrdp defaults


cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak.`date +%s` && sed -e s/"\[xrdp1\]"/"\[xrdp0\]\nname=Session Manager\nlib=libxup.so\nusername=ask\npassword=ask\nip=127.0.0.1\nport=-1\nxserverbpp=24\ncode=20\n\n\[xrdp1\]"/g /etc/xrdp/xrdp.ini > /tmp/xrdp.ini.tmp && cp /tmp/xrdp.ini.tmp /etc/xrdp/xrdp.ini

service xrdp start

On login screen, choose "Session Manager"

Installing mate on Ubuntu 14.04

Login as root and run following commands:

apt-add-repository ppa:ubuntu-mate-dev/ppa

apt-add-repository ppa:ubuntu-mate-dev/trusty-mate

apt-get update

apt-get upgrade

apt-get install mate-desktop-environment-extras

Tuesday, February 9, 2016

Installing XRDP on linux for remote desktop

On Ubuntu:

Login as root and run following commands:
apt-get install tmux git x11proto-core-dev zlib1g-dev xsltproc libxau6 libxau-dev x11proto-kb-dev x11proto-input-dev libxfixes-dev build-essential flex bison libssl-dev libxml-parser-perl autoconf libtool libpam0g-dev libfuse-dev libxrandr-dev

git clone git://github.com/neutrinolabs/xrdp

 
cd xrdp

 
git checkout v0.8

 
mkdir /opt/X11rdp

 
cd xorg/X11R7.6

 
./buildx.sh /opt/X11rdp/

 
cd ../..

 
./bootstrap

 
./configure --enable-fuse

 
make

 
make install


xrdp-keygen xrdp auto
 
ln -s /opt/X11rdp/bin/X11rdp /usr/local/bin/X11rdp

 
ls -latr /usr/local/bin/X11rdp

 
ls -latr /opt/X11rdp/bin/X11rdp

 
cp /etc/xrdp/xrdp.sh /etc/init.d/


update-rc.d xrdp.sh defaults
 
/etc/init.d/xrdp.sh start


On Fedora:

Login as root and run following commands:

yum install flex bison imake libtool xorg-x11-proto-devel libdrm-devel gcc-c++ xorg-x11-server-devel libXi-devel libXmu-devel libXdamage-devel git expat-devel llvm-devel python-mako zlib-devel libXau-devel libXfixes-devel openssl-devel perl-XML-Parser pam-devel fuse-devel libXrandr-devel

git clone git://github.com/neutrinolabs/xrdp
 
cd xrdp

 
git checkout v0.8

 
mkdir /opt/X11rdp

 
cd xorg/X11R7.6

 
./buildx.sh /opt/X11rdp/

 
cd ../..

 
./bootstrap

 
./configure --enable-fuse

 
make

 
make install

 
xrdp-keygen xrdp auto



cp instfiles/pam.d/xrdp-sesman.other /etc/pam.d/xrdp-sesman

ln -s /opt/X11rdp/bin/X11rdp /usr/local/bin/X11rdp
 
ls -latr /usr/local/bin/X11rdp

 
ls -latr /opt/X11rdp/bin/X11rdp

 
cp /etc/xrdp/xrdp.sh /etc/init.d/


chkconfig --level 345 --add xrdp.sh 


chkconfig --list

service xrdp.sh start