You are not logged in.

#1 2011-09-21 15:27:56

Sadin
Member
From: Douglassville PA (USA)
Registered: 2011-06-13
Posts: 9

[SOLVED] SLiM login "failed to execute login command"

Hi everyone i installed SLiM and whever i try to login root or normal users i get the error message "failed to execute login command"

im not loading SLiM in daemons just to clarify

thanks for any help!

Last edited by Sadin (2011-09-21 20:23:42)


PHP Developer | Musician | Hobbyist Producer | 19yr old | Fedora Design Team

Offline

#2 2011-09-21 15:38:05

Mr_ED-horsey
Member
From: Portland, OR
Registered: 2011-04-06
Posts: 177

Re: [SOLVED] SLiM login "failed to execute login command"

What DE or WM are you running and what's the contents of your .xinitrc file?

Reading this may help too if you haven't: https://wiki.archlinux.org/index.php/SLiM


Desktop: Fedora 21 Mate + Compiz [x86_64] on 2 TiB HDD  /  Windows 7 Professional [x86_64] on 500 GiB HDD
Laptop: Arch Linux + Openbox [i686] 120 GiB SSD on Acer c720 Chromebook

Offline

#3 2011-09-21 19:33:00

Sadin
Member
From: Douglassville PA (USA)
Registered: 2011-06-13
Posts: 9

Re: [SOLVED] SLiM login "failed to execute login command"

eI read that article and it said to change your login command if you dont use bash but i am pretty sure i am.

here is my .xinitrc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec wmfs

PHP Developer | Musician | Hobbyist Producer | 19yr old | Fedora Design Team

Offline

#4 2011-09-21 19:47:46

Mr_ED-horsey
Member
From: Portland, OR
Registered: 2011-04-06
Posts: 177

Re: [SOLVED] SLiM login "failed to execute login command"

Have you added wmfs to your sessions list in your slim.conf file?

# /etc/slim.conf
 login_cmd           exec /bin/sh - ~/.xinitrc %session
 
 # Available sessions (first one is the default).
 # The current chosen session name is replaced in the login_cmd
 # above, so your login command can handle different sessions.
 # see the xinitrc.sample file shipped with slim sources
 sessions            wmfs

I'm not very familiar with WMFS, but slim should be able to work with it.

If that doesn't work, if you're using consolekit and dbus try this in your xinitrc:

exec ck-launch-session dbus-launch wmfs

Last edited by Mr_ED-horsey (2011-09-21 19:52:10)


Desktop: Fedora 21 Mate + Compiz [x86_64] on 2 TiB HDD  /  Windows 7 Professional [x86_64] on 500 GiB HDD
Laptop: Arch Linux + Openbox [i686] 120 GiB SSD on Acer c720 Chromebook

Offline

#5 2011-09-21 19:56:20

Sadin
Member
From: Douglassville PA (USA)
Registered: 2011-06-13
Posts: 9

Re: [SOLVED] SLiM login "failed to execute login command"

Mr_ED-horsey wrote:
exec ck-launch-session dbus-launch wmfs

I reread the wiki page before i saw your reply and i did just that and it worked thanks so much for your help!


PHP Developer | Musician | Hobbyist Producer | 19yr old | Fedora Design Team

Offline

#6 2011-09-21 19:57:41

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] SLiM login "failed to execute login command"

Sadin, please mark this thread [SOLVED] by editing the title of your first post.


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB