You are not logged in.

#1 2015-05-17 01:05:01

DystopianFreak
Member
Registered: 2015-05-17
Posts: 4

[SOLVED] SLiM "Failed to execute login command"

I'm currently trying to install SLiM, as opposed to GDM, because it allows for themes, but when I go to login, it tells me that it "Failed to execute login command".


I'm not sure what could be wrong, but here is the output of a few different relevant files:

/etc/slim.conf

# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        /bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments -nolisten tcp vt07

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth 

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
# numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
login_cmd           exec /bin/bash -login ~/.xinitrc %session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd	some command
# sessionstop_cmd	some command

# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon	yes

# Set directory that contains the xsessions.
# slim reads xsesion from this directory, and be able to select.
sessiondir            /usr/share/xsessions/ 

/var/log/slim.log

slim: waiting for X server to begin accepting connections.

slim: waiting for X server to shut down



slim: waiting for X server to begin accepting connections.

slim: waiting for X server to shut down



slim: waiting for X server to begin accepting connections.

slim: waiting for X server to shut down



slim: waiting for X server to begin accepting connections.
slim: unexpected signal 15
slim: connection to X server lost.

slim: waiting for X server to shut down

Last edited by DystopianFreak (2015-05-17 01:36:00)

Offline

#2 2015-05-17 01:16:50

DystopianFreak
Member
Registered: 2015-05-17
Posts: 4

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

I figured out the problem.  I didn't have an xinitrc file at all.  I made one for my desktop environment, and now SLiM works as expected.

If anyone else stumbles on this problem, create a ~/.xinitrc file for your desktop environment.  In my case, with Cinnamon, all you need is

exec cinnamon-session

in your xinitrc file for it to work.

Offline

#3 2015-05-17 01:26:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

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

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB