Skip to content

Latest commit

 

History

History
120 lines (86 loc) · 2.53 KB

xrdp-remmina.md

File metadata and controls

120 lines (86 loc) · 2.53 KB

xrdp remmina


prerequisites

apt install -y xrdp remmina

gnome session

tune ~/.xsessionrc

behavior: without follow taskbar and panel not appears

export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_DATA_DIRS=${D}
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg

gnome-extensions enable desktop-icons@csoriano
gnome-extensions enable [email protected]
gnome-extensions enable [email protected]

avoid color profile, pkg auth

behavior: without this authentication required for color profile and/or system repositories

create /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla

[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes

[Allow Package Management all Users]
Identity=unix-user:*
Action=org.debian.apt.*;io.snapcraft.*;org.freedesktop.packagekit.*;com.ubuntu.update-notifier.*
ResultAny=no
ResultInactive=no
ResultActive=yes
systemctl restart polkit
systemctl restart xrdp

lxde session

apt install -y lxde

tune ~/.xsession

cat > ~/.xsession <<EOF
startlxde
EOF
chmod +x ~/.xsession

remmina connection

  • Server : localhost
  • User name : xxx
  • User password : xxx
  • Color depth : RemoteFX (32bpp)

share session

if server xrdp has session opened, connecting to that with rdp client makes programs to display on the xrdp server display

to share session refers edit /etc/xrdp/startwm.sh

and place

unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR

just before test -x ...

ref: https://c-nergy.be/blog/?p=16698

troubleshoot

cannot read /etc/xrdp/key.pem. Permission denied

solve by adding xrdp user to ssl-cert

sudo adduser xrdp ssl-cert