Page 1 sur 3
[slim] failed to login command (résolu)
Publié : mer. 01 juin 2011, 15:52
par lepetit
bonjour, je continue dans mon exploration d'archlinux + wm awesome3
j'essaie maintenant d'utiliser le gestionnaire de login SLIM
au demarrage, slim s'affiche bien mais impossible de me loguer
j'ai ceci comme message "failed to login command"
une partie du slim.conf
Code : Tout sélectionner
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
mon ~/xinitrc
Code : Tout sélectionner
# 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 DEFAULT_SESSION=awesome
#case $1 in
# awesome) exec awesome ;;
# wmii) exec wmii ;;
# xmonad) exec xmonad ;;
# *) exec $DEFAULT_SESSION ;;
# esac
exec awesome
(j'ai aussi essayer avec ce qui est en commentaire mais meme resultat)
apres un peu de recherche, je suis tombé là dessus
https://bbs.archlinux.org/viewtopic.php?pid=829862
j'ai 2 paquets de cairo-xcb installé, l'un venant de aur (plus recent) et l'autre de archlinux-fr
que faire svp ?
merci
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 15:58
par jaco
On est bien d'accord que ton fichier s'appelle ~/.xinitrc, pas ~/xinitrc comme tu l'as écrit dans ton post ?
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 16:01
par lepetit
oups oui pardon, ya bien un . devant
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 16:04
par davidvs
Tu utilises slim parce qu'il y a plusieurs utilisateurs sur ton ordi ?
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 16:07
par lepetit
non juste pour avoir une jolie interface graphique de login
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 16:28
par jaco
Et si tu bootes en mode non graphique et que tu lances "startx" après t'être connecté, il se passe quoi ?
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 16:51
par lepetit
ben j'arrive directement sur awesome (je me suis loguer en console donc )
(bien sur le demon slim dans ce cas là est désactivé )
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 17:02
par davidvs
lepetit a écrit :non juste pour avoir une jolie interface graphique de login

Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 17:03
par davidvs
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 17:23
par karhu
lepetit a écrit :
une partie du slim.conf
essaye plutôt :
Code : Tout sélectionner
login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session
Karhu.
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 17:39
par tuxce
Que dis le /var/log/slim.log ?
@davidvs, regrouper les posts, c'est bien aussi

Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 17:52
par lepetit
karhu a écrit :lepetit a écrit :
une partie du slim.conf
essaye plutôt :
Code : Tout sélectionner
login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session
Karhu.
pareil, j'ai déja essayer ça aussi
et j'ai le meme soucis
tuxce a écrit :Que dis le /var/log/slim.log ?
@davidvs, regrouper les posts, c'est bien aussi

Code : Tout sélectionner
/usr/bin/xauth: file /var/run/slim.auth does not exist
X.Org X Server 1.10.2
Release Date: 2011-05-28
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.38-ARCH x86_64
Current Operating System: Linux sebastien 2.6.38-ARCH #1 SMP PREEMPT Mon May 23 22:02:08 CEST 2011 x86_64
Kernel command line: root=/dev/disk/by-uuid/a9d7d9e7-0863-425c-9d34-2a68c203d0e0 ro intel_idle.max_cstate=6
Build Date: 30 May 2011 08:18:15AM
Current version of pixman: 0.20.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jun 1 14:17:28 2011
(==) Using config directory: "/etc/X11/xorg.conf.d"
slim: waiting for X server to begin accepting connections.
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
/usr/bin/xauth: file /home/sebastien/.Xauthority does not exist
/home/sebastien/.xinitrc: ligne 18 : exec: DEFAULT_SESSION=awesome : non trouvé
slim: waiting for X server to shut down.
et pour le /etc/inittab
Code : Tout sélectionner
#
# /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
# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 9600 ttyS0 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
j'ai rien touché a celui là
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 17:57
par tuxce
Effectivement, si t'utilises un xinitrc différent de celui présenté
"exec" exécute une commande (à la place du process en cours), "DEFAULT_SESSION=awesome" n'est pas une commande.
Supprime le exec, ça devrait aller.
Et stp, le "citer", c'est pas nécessaire, quand c'est des réponses simples, pas besoin de surcharger les pages.
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 18:12
par lepetit
ok donc reprenons
1) je remodifie le rc.conf, et je réactive slim dans les daemons
2) je remets
Code : Tout sélectionner
login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session
dans slim.conf
3) je mets ceci dans mon .xinitrc
Code : Tout sélectionner
DEFAULT_SESSION=awesome
case $1 in
awesome) exec awesome ;;
wmii) exec wmii ;;
xmonad) exec xmonad ;;
*) exec $DEFAULT_SESSION ;;
esac
comme ça, ça ira donc ?
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 18:18
par jaco
Chez moi :
1) je n'ai pas slim dans les démons, il est lancé via l'inittab... (voir le wiki)
2) j'utilise la ligne suivante dans /etc/slim.conf
3) mon .xinitc ne contient que les lignes suivantes:
Code : Tout sélectionner
export LC_ALL=fr_FR.UTF-8
export LANGUAGE=fr_FR.UTF-8
export LANG=fr_FR.UTF-8
exec ck-launch-session gnome-session
4) ça marche...
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 18:25
par Ricard
Ton inittab n'est pas bon.
Code : Tout sélectionner
## Only one of the following two lines can be uncommented!
# Boot to console
id:3:initdefault:
# Boot to X11
#id:5:initdefault:
remplace le par:
Code : Tout sélectionner
## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
x:5:respawn:/usr/bin/slim >& /dev/null
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 18:33
par lepetit
disons qu'en lisant la doc de awesome, ils conseillent celà (qui ne fonctionne pas chez moi)
https://awesome.naquadah.org/wiki/Arch_Linux
(setup for slim )
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 18:56
par lepetit
bon je viens d'essayer, avec la methode de l'inittab (et le demon est toujours désactiver)
ça ne fonctionne pas, là slim ne s'affiche meme pas
je suis sur que ça doit avoir rapport avec le lien que j'ai cité dans le premier post
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 20:13
par davidvs
Parfois, on pense avoir fait toutes les modif...
Par acquis de conscience reposte :
1/ le inittab
2/ le .xinitrc
Re: [slim] failed to login command
Publié : mer. 01 juin 2011, 21:06
par lepetit
ok le inittab
Code : Tout sélectionner
#
# /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
x:5:respawn:/usr/bin/slim >& /dev/null
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
# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 9600 ttyS0 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
et le .xinitrc
Code : Tout sélectionner
#!/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 DEFAULT_SESSION=awesome
#case $1 in
# awesome) exec awesome ;;
# wmii) exec wmii ;;
# xmonad) exec xmonad ;;
# *) exec $DEFAULT_SESSION ;;
# esac
exec awesome