Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
kdm just restarts when I try to log in. I believe this is because I don't have an .xsession file in my $Home directory. What is the contents of .xsession suppost to be? I found something somewhere saying that you need a line 'startkde' and that the permissions need to be set to 755, but just this alone isn't working for me. I think I might need something else in the .xsession file.
you might need to do
exec startkde
in your .xsession or/and .xinitrc files in your home directory.
Does it happen only with a particular user or it affects all the users icluding root, if so take a look at /etc/kde/kdm/kdmrc file, you'll track it down to /etc/X11/xdm/Xsession file, and you'll have to fidle with it.
is that it? That's all you have in kdmrc? Boo...
This is mine, but I use RH
[Desktop0]
BackgroundMode=Wallpaper
BlendBalance=100
BlendMode=NoBlending
ChangeInterval=60
Color1=88,116,152
Color2=88,116,152
CurrentWallpaper=0
LastChange=0
MultiWallpaperMode=NoMulti
Pattern=
Program=
ReverseBlending=false
Wallpaper=none
WallpaperList=
WallpaperMode=Scaled
I've stripped out comments though, there are numerous options that can be turned on and off, look if you have all the mentioned files in /etc/X11/xdm/ directory.
I replaced the paths to the kdm directory with the paths to the xdm directory and everything is working fine now. I guess there was just something wrong with the ones in the kdm directory.
Here's Xsession from the kdm directory:
#! /bin/sh
# Xsession - run as user
# redirect errors to a file in user's home directory if we can
for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
do
if ( cp /dev/null "$errfile" 2> /dev/null )
then
chmod 600 "$errfile"
exec > "$errfile" 2>&1
break
fi
done
test -f $HOME/.xprofile && . $HOME/.xprofile
sess="$1"
shift
case "$sess" in
failsafe)
exec xterm -geometry 80x24-0-0 $*
;;
""|default)
exec $HOME/.xsession $*
;;
esac
# start windowmanager
type "$sess" >/dev/null 2>&1 && exec "$sess" $*
type "start$sess" >/dev/null 2>&1 && exec "start$sess" $*
type "$sess-session" >/dev/null 2>&1 && exec "$sess-session" $*
sess=`echo "$sess" | tr A-Z a-z`
type "$sess" >/dev/null 2>&1 && exec "$sess" $*
type "start$sess" >/dev/null 2>&1 && exec "start$sess" $*
type "$sess-session" >/dev/null 2>&1 && exec "$sess-session" $*
# windowmanager not found, tell user
exec xmessage -center -buttons OK:0 -default OK "Sorry, $sess not found."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.