Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Slim: Failed to execute login command. But startx works?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
The_Journey
n00b
n00b


Joined: 13 Jun 2010
Posts: 20

PostPosted: Thu Jun 17, 2010 8:22 pm    Post subject: Slim: Failed to execute login command. But startx works? Reply with quote

I keep getting the error failed to execute login command from SLiM, but using startx from the terminal correctly starts fluxbox

Here is my ~/.xinitrc
Code:

#!/bin/sh
rl=$(runlevel | grep -o [0-6])

exec ck-launch-session startfluxbox


Here is my /etc/conf.d/xdm
Code:

# We always try and start X on a static VT. The various DMs normally default
# to using VT7. If you wish to use the xdm init script, then you should ensure
# that the VT checked is the same VT your DM wants to use. We do this check to
# ensure that you haven't accidentally configured something to run on the VT
# in your /etc/inittab file so that you don't get a dead keyboard.
CHECKVT=7

# What display manager do you use ?  [ xdm | gdm | kdm | kdm-4.3 | gpe | entrance ]
# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
#
# KDE-specific note:
# - If you are using kdeprefix go with "kdm-4.Y", e.g. "kdm-4.3".
#     You can find possible versions by looking at the directories in /usr/kde/.
# - Else, if you are using KDE 3 enter "kdm-3.5"
# - Else, if you are using KDE 4 enter "kdm" without a version
DISPLAYMANAGER="slim"

# Set whether xorg should depend on hald or not. If set to 'auto' then the init
# script tries to determine the dependency on hald automatically, by examining
# xorg.conf files on various locations. If you have built xorg without hal
# use-flag, you should set 'no' here.  If xorg has been built with hal then you
# may set 'auto' or 'yes' here.
# Possible values are: [ yes | no | auto ]
NEEDS_HALD="auto"



I don't know what I'm doing wrong :(
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Sun Jun 20, 2010 1:10 am    Post subject: Reply with quote

exact error?

slim.conf?
_________________
The End of the Internet!
Back to top
View user's profile Send private message
mathdesc
n00b
n00b


Joined: 25 Sep 2010
Posts: 1

PostPosted: Sat Sep 25, 2010 2:36 am    Post subject: [RESOLUTION] slim failed to login Reply with quote

Hey,

After a few session debug tracking, I found a workable way out.

1. Check /etc/slim.conf to be :
Code:

login_cmd        exec /bin/bash -login /etc/X11/xinit/xinitrc


2. Consider /etc/X11/xinit/xinitrc
Code:

if [ -n "`/etc/X11/chooser.sh" ] ;then
       command="`/etc/X11/chooser.sh`"
else
       failsafe="yes"
fi

...
Code:

if [ -n "$failsafe" ] ; then

else
      exec $command
fi


If chooser.sh can't find a $XSESSION to match to /etc/X11/Session then it's failsafe with few xterms and a clock
indeed :

3. Considering /etc/X11/chooser.sh

Code:

# Find a match for $XSESSION in /etc/X11/Sessions
GENTOO_SESSION=""
for x in /etc/X11/Sessions/*
do
        if [ "`echo ${x##*/} | awk '{ print toupper($1) }'`" \
                = "`echo ${XSESSION} | awk '{ print toupper($1) }'`" ]
        then
                GENTOO_SESSION=${x}
                break
        fi
done

GENTOO_EXEC=""

if [ -n "${XSESSION}" ]; then
..
..
..
fi

echo "${GENTOO_EXEC}"


If no XSESSION var is defined chooser is voided and it will have a failsafe session.
And when using this in slim.conf :
Code:

login_cmd        exec /bin/bash -login ~/.xinitrc %session

%session seems not to be defined as well.

In the previous gentoo's days this script starts with a recover of XSESSION just-in-case :
Code:

# If $XSESSION is "", source first /etc/conf.d/basic, and then /etc/rc.conf
if [ -z "${XSESSION}" ]
then
        [ -f /etc/conf.d/basic ] && . /etc/conf.d/basic
        [ -f /etc/rc.conf ] && . /etc/rc.conf
fi


but It has been deleted (why?) , just adding it on topstart of chooser.sh and check /etc/rc.conf is well defined for example
with :

Code:

XSESSION="Xfce4"


and back on tracks.

Hope it helps.

Mathdesc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum