How did I connect to Ubuntu 18.04 GNOME desktop from Windows 7 via xrdp?

windows
ubuntu
rdp
xrdp
(Dmitry Fedyuk) #1

Step 1

I installed GNOME:

apt install tasksel
tasksel install ubuntu-desktop
reboot

Step 2

I installed xrdp.
aptitude install xrdp did not work for me: the RDP session breaks after an authetication.
Only a compilation from sources works for me:

apt-get install git autoconf libtool pkg-config gcc g++ make  libssl-dev libpam0g-dev libjpeg-dev libx11-dev libxfixes-dev libxrandr-dev  flex bison libxml2-dev intltool xsltproc xutils-dev python-libxml2 g++ xutils libfuse-dev libmp3lame-dev nasm libpixman-1-dev xserver-xorg-dev
BD=`pwd`
mkdir -p "${BD}"/git/neutrinolabs
cd "${BD}"/git/neutrinolabs
wget https://github.com/neutrinolabs/xrdp/releases/download/v0.9.10/xrdp-0.9.10.tar.gz
tar xvfz xrdp-0.9.10.tar.gz
cd "${BD}"/git/neutrinolabs/xrdp-0.9.10
./bootstrap
./configure --enable-fuse --enable-mp3lame --enable-pixman
make
make install
ln -s /usr/local/sbin/xrdp{,-sesman} /usr/sbin
cd "${BD}"/git/neutrinolabs
wget https://github.com/neutrinolabs/xorgxrdp/releases/download/v0.2.9/xorgxrdp-0.2.9.tar.gz
tar xvfz xorgxrdp-0.2.9.tar.gz
cd "${BD}"/git/neutrinolabs/xorgxrdp-0.2.9
./bootstrap
./configure
make
make install
systemctl enable xrdp
service xrdp start

/etc/X11/Xwrapper.conf:

allowed_users =anybody
needs_root_rights=no
service xrdp restart
0 Likes