Posts

Showing posts from January, 2020

Ubuntu 20.04 with remote-desktop xrdp

xrdp remote-desktop setup 1. Install xrdp to Ubuntu 20.04 sudo apt install xrdp 2. Auto start setup after reboot sudo systemctl enable xrdp 3. Check Status sudo systemctl status xrdp 4. Firewall Setup Install gufw -GUI firewall 5. Add shell script to show side menu on Ubuntu desktop Add below text file and save as " enhanced-session-mode. sh " in home folder. --------------- script start ------------------ #!/bin/sh # Add script to setup the ubuntu session properly if [ ! -e /etc/xrdp/startubuntu.sh ]; then cat >> /etc/xrdp/startubuntu.sh << EOF #!/bin/sh export GNOME_SHELL_SESSION_MODE=ubuntu export XDG_CURRENT_DESKTOP=ubuntu:GNOME exec /etc/xrdp/startwm.sh EOF chmod a+x /etc/xrdp/startubuntu.sh fi sed -i_orig -e 's/startwm/startubuntu/g' /etc/xrdp/sesman.ini # rename the redirected drives to 'shared-drives' sed -i -e 's/FuseMountName=thinclient_drives/FuseMountName=shared-drives/g' /etc/xrdp/sesman.ini # Changed the allowed_users se...