You are not logged in.

#1 2021-05-15 17:26:23

hikikomori666
Member
Registered: 2021-05-11
Posts: 7

[Solved] How to start KDE using .xinitrc in arch installed on hyper-v?

Hello everybody,
I have successfully installed arch on Hyper-V following  https://wiki.archlinux.org/title/Installation_guide and https://wiki.archlinux.org/title/Hyper-V
I have also been successful in enabling Enhanced mode as described in in Hyper-V wiki, but I am stuck at the part where it is required to edit .xinitrc to start KDE when log in a Xrdp session.
Following what described in https://wiki.archlinux.org/title/KDE I have edited my .xinitrc as follows:

#!/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
export DESKTOP_SESSION=plasma
exec starplasma-x11

However, when I login using xrdp I get only a blank screen with the mouse pointer?
Can anybody help me to understand where is the error?

Last edited by hikikomori666 (2021-05-15 22:02:23)

Offline

#2 2021-05-15 17:34:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Solved] How to start KDE using .xinitrc in arch installed on hyper-v?

you have a typo in the last line.

Offline

#3 2021-05-15 19:00:29

hikikomori666
Member
Registered: 2021-05-11
Posts: 7

Re: [Solved] How to start KDE using .xinitrc in arch installed on hyper-v?

Scimmia wrote:

you have a typo in the last line.

Fixed, but the situation is still the same.

Offline

#4 2021-05-15 22:01:52

hikikomori666
Member
Registered: 2021-05-11
Posts: 7

Re: [Solved] How to start KDE using .xinitrc in arch installed on hyper-v?

Ok, I have found the solution looking into https://wiki.archlinux.org/title/xrdp: the .xinitrc above is correct, but in addition it is necessary to comment out all the references to systemd-home in /etc/pam.d/system-auth.

Offline

Board footer

Powered by FluxBB