, , , , , , ,

SLES xrdp/RDP howto

zypper ref && zypper dup && zypper in -t pattern kde kde_plasma
systemctl set-default graphical.target
zypper ref && zypper dup && zypper in xrdp xorgxrdp
sed -i "s/  SESSION=\"gnome\"/  SESSION=\"plasma\"/g" /etc/xrdp/startwm.sh
update-alternatives --config default-xsession.desktop

There are 2 choices for the alternative default-xsession.desktop (providing /usr/share/xsessions/default.desktop).

  Selection    Path                                        Priority   Status
------------------------------------------------------------
  0            /usr/share/xsessions/plasma5.desktop         25        auto mode
  1            /usr/share/xsessions/icewm-session.desktop   15        manual mode
* 2            /usr/share/xsessions/plasma5.desktop         25        manual mode

Press <enter> to keep the current choice[*], or type selection number:

2

install -vbD --owner=root --group=root --mode=0644 -T <(cat << 'EOF'
## Supported server options to pass to vncserver upon invocation can be listed
## in this file. See the following manpages for more: vncserver(1) Xvnc(1).
## Several common ones are shown below. Uncomment and modify to your liking.
##
securitytypes=vncauth,tlsvnc
# desktop=sandbox
geometry=1920x1080
# localhost
alwaysshared
EOF
) /etc/vnc/config


systemctl enable --now xrdp
firewall-cmd --get-default-zone

public

firewall-cmd --zone=public --add-service=rdp --permanent

success

firewall-cmd --list-services --permanent

sdhcpv6-client rdp ssh

firewall-cmd --reload

success

~~DISCUSSION~~