You are not logged in.

#1 2012-08-03 16:40:58

jggiles
Member
Registered: 2012-07-29
Posts: 16

SLiM login error - Failed to execute login command

So I'm trying to run xfce4 and SLiM together, but after entering a username and password I get the error mentioned in the title. I can run xfce4 manually with start xfce4, but I cant get in to the gui through slim when booting. Help!

Offline

#2 2012-08-03 16:52:12

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: SLiM login error - Failed to execute login command

Does slim.log give any clues?  What is the login_cmd and what are the contents of your .xinitrc?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2012-08-03 16:52:51

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: SLiM login error - Failed to execute login command

Do you have an ~/.xinitrc file which correspond with /etc/slim.conf? In your case you need to make sure "startxfce4" is the command SLiM with look for in .xinitrc. You have a "session" entry in slim.conf.

Offline

#4 2012-08-03 16:59:57

jggiles
Member
Registered: 2012-07-29
Posts: 16

Re: SLiM login error - Failed to execute login command

loafer wrote:

Does slim.log give any clues?  What is the login_cmd and what are the contents of your .xinitrc?

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

in ~/.xinitrc I have exec ck-launch-session startxfce4

EDIT: Spelling

Last edited by jggiles (2012-08-03 17:40:38)

Offline

#5 2012-08-03 17:04:18

jggiles
Member
Registered: 2012-07-29
Posts: 16

Re: SLiM login error - Failed to execute login command

KimTjik wrote:

Do you have an ~/.xinitrc file which correspond with /etc/slim.conf? In your case you need to make sure "startxfce4" is the command SLiM with look for in .xinitrc. You have a "session" entry in slim.conf.


for the session section I have "sessions        xfce4,icewm-session,wmaker,blackbox"

Offline

#6 2012-08-03 17:31:35

prasinoulhs
Member
From: Greece
Registered: 2011-10-30
Posts: 53

Re: SLiM login error - Failed to execute login command

jggiles wrote:
loafer wrote:

Does slim.log give any clues?  What is the login_cmd and what are the contents of your .xinitrc?

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

in ~/.xinit.rc I have exec ck-launch-session start xfce4

startxfce (one word).

Last edited by prasinoulhs (2012-08-03 17:33:22)

Offline

#7 2012-08-03 17:38:22

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: SLiM login error - Failed to execute login command

prasinoulhs wrote:
jggiles wrote:
loafer wrote:

Does slim.log give any clues?  What is the login_cmd and what are the contents of your .xinitrc?

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

in ~/.xinit.rc I have exec ck-launch-session start xfce4

startxfce (one word).

In addition the file needs to be called .xinitrc (you have .xinit.rc instead) and you do not need ck-launch-session.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#8 2012-08-03 17:39:25

jggiles
Member
Registered: 2012-07-29
Posts: 16

Re: SLiM login error - Failed to execute login command

Those misspellings are just me being stupid when typing the names in to the post. they are correctly named in the system. Sorry for the confusions.

Offline

#9 2012-08-03 17:42:36

jggiles
Member
Registered: 2012-07-29
Posts: 16

Re: SLiM login error - Failed to execute login command

loafer wrote:
prasinoulhs wrote:
jggiles wrote:

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

in ~/.xinit.rc I have exec ck-launch-session start xfce4

startxfce (one word).

In addition the file needs to be called .xinitrc (you have .xinit.rc instead) and you do not need ck-launch-session.

removed ck-launch-session but still getting the error

Offline

#10 2012-08-03 17:45:00

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: SLiM login error - Failed to execute login command

Do you check permissions?
What $HOME/.xsession-errors reports?


do it good first, it will be faster than do it twice the saint wink

Offline

#11 2012-08-03 17:48:46

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: SLiM login error - Failed to execute login command

You still need to get rid of ck-launch-session.  Is there anything interesting in slim.log?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#12 2012-08-03 17:49:24

jggiles
Member
Registered: 2012-07-29
Posts: 16

Re: SLiM login error - Failed to execute login command

TheSaint wrote:

Do you check permissions?
What $HOME/.xsession-errors reports?

not sure how to check permissions, and I can't seem to find ".xsession-errors"

Offline

#13 2012-08-03 17:51:32

jggiles
Member
Registered: 2012-07-29
Posts: 16

Re: SLiM login error - Failed to execute login command

loafer wrote:

You still need to get rid of ck-launch-session.  Is there anything interesting in slim.log?

what is the default location of slim.log?

Offline

#14 2012-08-03 17:55:27

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: SLiM login error - Failed to execute login command

/var/log/slim.log as specified in slim.conf.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#15 2012-08-03 17:56:38

jpirie
Member
Registered: 2012-08-03
Posts: 14

Re: SLiM login error - Failed to execute login command

jggiles wrote:
TheSaint wrote:

Do you check permissions?
What $HOME/.xsession-errors reports?

not sure how to check permissions, and I can't seem to find ".xsession-errors"

You can check the permissions of .xinitrc by running 'ls -l ~/.xinitrc'.

jggiles wrote:
loafer wrote:

You still need to get rid of ck-launch-session.  Is there anything interesting in slim.log?

what is the default location of slim.log?

The default location is '/var/log/slim.log'

Offline

#16 2012-08-03 17:59:45

jggiles
Member
Registered: 2012-07-29
Posts: 16

Re: SLiM login error - Failed to execute login command

I see a line that says "Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory" but I have no idea what that means. I do know dbus is a daemon that I run on startup, though.

Offline

#17 2012-08-03 18:01:44

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: SLiM login error - Failed to execute login command

jggiles wrote:

I see a line that says "Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory" but I have no idea what that means. I do know dbus is a daemon that I run on startup, though.

Are you sure dbus is running?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#18 2012-08-03 18:06:04

jggiles
Member
Registered: 2012-07-29
Posts: 16

Re: SLiM login error - Failed to execute login command

ps aux | grep dbus

returns

dbus     347     0.0     0.1    17272     1044   ?        Ss     13:47     0:00 dbus-daemon --system
gza       698     0.0     0.1    8684       1044  ttyl      S+     14:04     0:00 grep dbus

Offline

#19 2012-08-03 18:08:32

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: SLiM login error - Failed to execute login command

exactly

 ps -A |grep dbus

BTW permission referred to ~/.xinitrc. But if there is no ~/.xsession-errors that's means two possible conditions. X didn't reach to read the ~/.xinitrc or X cannot have write permissions in $HOME
Just for try, can root start the session correctly?


do it good first, it will be faster than do it twice the saint wink

Offline

#20 2012-08-03 18:14:55

jggiles
Member
Registered: 2012-07-29
Posts: 16

Re: SLiM login error - Failed to execute login command

TheSaint wrote:

exactly

 ps -A |grep dbus

BTW permission referred to ~/.xinitrc. But if there is no ~/.xsession-errors that's means two possible conditions. X didn't reach to read the ~/.xinitrc or X cannot have write permissions in $HOME
Just for try, can root start the session correctly?


That command returns

347  ?        000:000:000 dbus-daemon

I I just type "startxfce4" I get "Fatal server error: Server is already active for display 0"

Offline

#21 2012-08-03 19:18:34

jggiles
Member
Registered: 2012-07-29
Posts: 16

Re: SLiM login error - Failed to execute login command

Honestly at this point I think I'd rather just change login managers. I'll be googling that for a while but would welcome advice.

Offline

#22 2012-08-03 19:24:17

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: SLiM login error - Failed to execute login command

Post the daemons array from rc.conf and the contents of boot.log.  Have you removed the ck-launch-session from .xinitrc?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#23 2012-08-04 07:54:26

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: SLiM login error - Failed to execute login command

loafer wrote:

ck-launch-session from .xinitrc?

I think most of the cases it might take startWM --with-ck-launch


do it good first, it will be faster than do it twice the saint wink

Offline

#24 2012-08-04 17:59:21

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: SLiM login error - Failed to execute login command

TheSaint wrote:
loafer wrote:

ck-launch-session from .xinitrc?

I think most of the cases it might take startWM --with-ck-launch

But do you need either if using a login manager (in this case slim) which start ConsoleKit automatically.  That is why I suggested removing it.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#25 2012-08-04 18:47:22

xavierp94
Member
From: Northern Virginia
Registered: 2010-09-05
Posts: 10

Re: SLiM login error - Failed to execute login command

You got to copy /etc/skel/.xinitrc and /etc/skel/.xsession to your home path. Afterwards, you chmod the xsession file to 744. Then edit .xinitrc to include exec startxfce4. That always seems to help when I face problems with slim not logging into XFCE.

Offline

Board footer

Powered by FluxBB