You are not logged in.

#1 2010-09-22 20:36:03

pomok
Member
From: Luxembourg
Registered: 2010-04-22
Posts: 5

[Solved] Awesome/SLiM: Failed to execute login command

Hi,

I've got some trouble starting awesome from my .xinitrc - I've been trying to fix it for a while now but I was unable to find anything helpful so far. I'm using awesome v3.4.6 and slim version 1.3.2.
Hereby is my .xinitrc File:

xmodmap /home/deus/.xmod

DEFAULT_SESSION=startxfce4

case $1 in
awesome)
        exec awesome
        ;;
*)
        exec $DEFAULT_SESSION
        ;;
esac

My /etc/inittab File looks like this:

#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S)       Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

## Only one of the following two lines can be uncommented!
# Boot to console
id:3:initdefault:
# Boot to X11
#id:5:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux

# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 38400 hvc0 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1

# End of file

I'm not really sure what causes the problem, let me know if you guys need any other Logfiles or anything.

Thanks for your help.

Last edited by pomok (2010-09-22 22:39:38)

Offline

#2 2010-09-22 20:53:26

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: [Solved] Awesome/SLiM: Failed to execute login command

have you edited the /etc/slim.conf file?  search for the sessions option, and add awesome first. works for me, but i prefer using a small script which runs startx after i login.

Offline

#3 2010-09-22 21:09:53

pomok
Member
From: Luxembourg
Registered: 2010-04-22
Posts: 5

Re: [Solved] Awesome/SLiM: Failed to execute login command

Hi,

I've edited my slim.conf accordingly but it still doesn't work. Here's the file:

# 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

# 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            awesome,xfce4

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window root /slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# Session message. Prepended to the session name when pressing F1
# session_msg         Session: 

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user        simone

# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password      no

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login          no


# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       archlinux-soft-grey

# Lock file
lockfile            /var/lock/slim.lock

# Log file
logfile             /var/log/slim.log

Offline

#4 2010-09-22 21:27:03

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: [Solved] Awesome/SLiM: Failed to execute login command

very strange. i can only suggest to add echo $1 >> debugslim.txt to your .xinitrc to see if the awesome variable is really sent by slim.

you are starting using /etc/rc.d/slim start? try to restart this daemon after makeing any modification to slim.conf. like i said before, for me it works only adding awesome first in the sessions line, and makeing something similar to my .xinitrc file.

Last edited by JokerBoy (2010-09-22 22:03:05)

Offline

#5 2010-09-22 21:37:02

pomok
Member
From: Luxembourg
Registered: 2010-04-22
Posts: 5

Re: [Solved] Awesome/SLiM: Failed to execute login command

Hi,

Pasting echo $1 >> debugslim.txt works fine and the output is:

awesome
xfce4

(I changed the session to xfce4 afterwards)

The SLiM daemon is automatically started by my rc.conf:

DAEMONS=(syslog-ng network netfs crond slim alsa dbus wicd)

Not sure what I should test next..

Offline

#6 2010-09-22 22:05:28

schen
Member
Registered: 2009-06-06
Posts: 468

Re: [Solved] Awesome/SLiM: Failed to execute login command

You are pressing f1 to set your choice, right?

Offline

#7 2010-09-22 22:39:15

pomok
Member
From: Luxembourg
Registered: 2010-04-22
Posts: 5

Re: [Solved] Awesome/SLiM: Failed to execute login command

Thanks to ioni from #archlinux I figured out the problem: Since I was using the testing repository, cairo conflicted with awesome. So I had to install cairo-xcb from AUR, which fixed my whole issue.

http://mailman.archlinux.org/pipermail/ … 17852.html

Thanks for your effort!

Last edited by pomok (2010-09-22 22:40:00)

Offline

#8 2010-09-22 22:50:11

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: [Solved] Awesome/SLiM: Failed to execute login command

ah, you didn't mention that.

[offtopic]
regarding cairo-xcb from aur, when are you using firefox the animations (gif's) (from the websites), they disappear and appear and so on?

Offline

#9 2010-09-23 07:13:44

pomok
Member
From: Luxembourg
Registered: 2010-04-22
Posts: 5

Re: [Solved] Awesome/SLiM: Failed to execute login command

I'm not using Firefox, so I don't know.

Offline

#10 2010-09-30 08:06:43

zebulon
Member
Registered: 2008-10-20
Posts: 359

Re: [Solved] Awesome/SLiM: Failed to execute login command

I have exactly the same issue since yesterday's updates (cairo 1.10).
The issue is explained in the Redhat bug report as mentioned above. There is nothing to do, except to make awesome in community require cairo-xcb. The problem is that cairo-xcb is an AUR package. Is it possible/legal that a community package depends on an AUR one ?

Last edited by zebulon (2010-09-30 08:19:03)

Offline

#11 2010-09-30 08:13:01

phoenigs
Member
From: Munich - Germany
Registered: 2010-09-03
Posts: 16

Re: [Solved] Awesome/SLiM: Failed to execute login command

EDIT: <- has to learn to read.

Last edited by phoenigs (2010-09-30 08:16:11)

Offline

#12 2010-09-30 08:31:27

zebulon
Member
Registered: 2008-10-20
Posts: 359

Re: [Solved] Awesome/SLiM: Failed to execute login command

The bugtracker does not allow entering bug reports for community packages. Is there a way to do this ?

Offline

#13 2010-09-30 10:39:33

zebulon
Member
Registered: 2008-10-20
Posts: 359

Re: [Solved] Awesome/SLiM: Failed to execute login command

I have reported the isue on the bugtracker: https://bugs.archlinux.org/task/20996

Offline

Board footer

Powered by FluxBB