Xrdp start cinnamon failes

Hey,
since 7 hours of google research, I have no idea how to solve my issue.
So If I want to connect to my system, I only three white command lines:

In the command line I can start the cinnamon desktop with “cinnamon-session” that works but I dont want to type that command every time I logged in and have an open command that command that I can not close.

my .xinitrc in my home directory looks like:

#!/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
exec cinnamon-session
#dbus-launch --exit-with-session

but to start cinnamon in the .xinitrc does not work.
So anybody any idea?

Thanks for help!

There can be only one! (exec command).
Remove exec from the start of xterm line, and add & at the end of the same line.

1 Like

Hey,
now it looks like:

#!/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 &
xterm -geometry 80x66+0+0 -name login &
exec cinnamon-session 
#dbus-launch --exit-with-session

but nothing changed. The same three white command lines. Of course I checked if the .xinitrc files is used so I comment the last lines and then I only get a black screen so the file is used correct.

I think @Shjim is right, it sounds like you don’t want to use TWM–you want to use Cinnamon.

Try removing this line from your config and see how it goes:

1 Like

For educational reason, those things are instances of the xterm terminal emulator.
Since you actually want to start a cinnamon session, you can try that.
Delete the other lines (twm, xclock, xterm) and leave only the exec line.

If it also fails, you might want to try a Display Manager, unless you are willing to learn how to troubleshoot (reading manuals and wiki articles). :wink:

2 Likes

https://wiki.archlinux.org/title/Xinit:blush: :innocent:
" https://wiki.archlinux.org/title/Xrdp "

1 Like

Does not Work ;(

Shjim: Thanks I have of course already read this manual. But I stuck… Don’t know why