On 10/31/22 06:42, Roger Oberholtzer wrote:
On Fri, Oct 28, 2022 at 6:52 PM Lew Wolfgang<wolfgang@sweet-haven.com> wrote:
For kde, edit /etc/xrdp/startwm.sh and make SESSION=plasma. Then login again.
Roger, I've always done it similar to the following using display:1: https://www.linuxtopia.org/HowToGuides/VNC_setup_Linux_Windows.html I use fluxbox as the remote desktop (blisteringly fast regardless), then it doesn't matter whether I connect from Linux using or Windows using vncviewer, you get the desktop of your choice. I know you have discussed this a bit in your thread, but I've had good luck with it. You don't need X actually running on the server box, starting vncserver will set that up and make it available. I pretty much followed these steps exactly. When you start vncserver on the box you want to provide the desktop from, it will create a default config. (e.g. systemctl start vncserver@:1) Kill the server then edit it and your .xinitrc to taste. You can set the ssh tunnel up to any box you have handy (see link). I start the vncserver over the same ssh connection and then just connect to the desktop. The vnc server config I use is: $ cat .vnc/config ## 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=stpdsktop geometry=1440x864 localhost alwaysshared And my .xinitrc cat .xinitrc #!/bin/sh userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/etc/X11/xinit/.Xresources sysmodmap=/etc/X11/xinit/.Xmodmap # merge in defaults and keymaps if [ -f $sysresources ]; then xrdb -merge $sysresources fi if [ -f $sysmodmap ]; then xmodmap $sysmodmap fi if [ -f "$userresources" ]; then xrdb -merge "$userresources" fi if [ -f "$usermodmap" ]; then xmodmap "$usermodmap" fi # start some nice programs if [ -d /etc/X11/xinit/xinitrc.d ] ; then for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do [ -x "$f" ] && . "$f" done unset f fi # twm & # xclock -geometry 50x50-1+1 & # xterm -geometry 80x50+494+51 & # xterm -geometry 80x20+494-0 & # exec xterm -geometry 80x66+0+0 -name login ## source xprofile for pc speaker off and keyboard setup [ -f ~/.xprofile ] && . ~/.xprofile ## some applications that should be run in the background # xscreensaver & xsetroot -cursor_name left_ptr & # exec startfluxbox session=${1:-fluxbox} case $session in fluxbox ) xscreensaver & exec startfluxbox;; i3 ) exec i3;; * ) exec $1;; esac -- David C. Rankin, J.D.,P.E.