Page 1 sur 1

[DM] Pb suite désinstallation slim (contourné)

Publié : mar. 03 mars 2015, 21:16
par eliohann
Bonjour à tous,

Je voulais tester lightdm, mais j'utilisais SLiM.

J'ai donc fait :

Code : Tout sélectionner

#pacman -Rsn slim
#pacman -S lightdm lightdm-gtk2-greeter
Comme lightdm ne se lançait pas, et que :

Code : Tout sélectionner

#systemctl enable lightdm.service
me renvoyais une erreur de fichier existant, j'ai fait supprimé le fichier :
display-manager.service
du dossier /etc/systemd/system/
puis relancer la commande

Mais lightdm ne se lançait toujours pas, j'ai donc re-supprimé le fichier en question

J'arrive bien à la console pour me logger, mais sur tty1, et uniquement sur cette console, il y a un comportement bizarre ... je saisis mon login, puis mon pass, déjà ce dernier s'affiche en clair !!!
mais bon la connexion réussi mais ensuite TOUTES les commandes que je peux taper ne font rien d'autre qu'afficher une nouvelle ligne reprenant la première lettre de la commande (ie je fais un bête "ls" ... rien ne s'affiche d'autre qu'une nouvelle ligne avec un "l" ... si je fais "cd /etc", idem nouvelle ligne avec 'c')

A noter que j'avais installé plymouth, mais je l'ai enlevé devant les pb de lancement de lightdm

Une idée ?

Re: [DM] Pb suite désinstallation slim

Publié : mar. 03 mars 2015, 21:46
par benjarobin
Peux tu faire ceci, depuis un tty, et en root, et nous donner la sortie :

Code : Tout sélectionner

systemctl disable lightdm.service 
reboot
# Connecte toi à nouveau à un tty
tree /etc/systemd/system
journalctl -u lightdm

Re: [DM] Pb suite désinstallation slim

Publié : mar. 03 mars 2015, 22:03
par eliohann

Code : Tout sélectionner

systemctl disable lightdm.service
Aucune sortie, aucune erreur non plus

Reboot -> OK

Code : Tout sélectionner

# Connecte toi à nouveau à un tty
tree /etc/systemd/system
J'ai dû installer tree, qui n'était pas présent sur mon système.

Code : Tout sélectionner

[root@Arch-NC10 ~]# tree /etc/systemd/system
/etc/systemd/system
├── dbus-org.freedesktop.NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
├── dbus-org.freedesktop.nm-dispatcher.service -> /usr/lib/systemd/system/NetworkManager-dispatcher.service
├── getty.target.wants
│   └── getty@tty1.service -> /usr/lib/systemd/system/getty@.service
├── multi-user.target.wants
│   ├── NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
│   └── remote-fs.target -> ../../../../usr/lib/systemd/system/remote-fs.target
└── sysinit.target.wants

3 directories, 5 files
[root@Arch-NC10 ~]# 

Code : Tout sélectionner

journalctl -u lightdm

Code : Tout sélectionner

[root@Arch-NC10 ~]# journalctl -u lightdm
-- Logs begin at dim. 2015-02-08 11:36:27 CET, end at mar. 2015-03-03 22:01:24 CET. --
mars 03 20:39:14 Arch-NC10 lightdm[235]: ** (lightdm:235): WARNING **: Error getting user lis
mars 03 20:39:19 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:19 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:19 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:20 Arch-NC10 lightdm[332]: ** (lightdm:332): WARNING **: Error getting user lis
mars 03 20:39:22 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:22 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:22 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:22 Arch-NC10 lightdm[375]: ** (lightdm:375): WARNING **: Error getting user lis
mars 03 20:39:25 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:25 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:25 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:25 Arch-NC10 lightdm[382]: ** (lightdm:382): WARNING **: Error getting user lis
mars 03 20:39:27 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:27 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:27 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:27 Arch-NC10 lightdm[389]: ** (lightdm:389): WARNING **: Error getting user lis
mars 03 20:39:30 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:30 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:30 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:30 Arch-NC10 lightdm[397]: ** (lightdm:397): WARNING **: Error getting user lis
mars 03 20:39:32 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:32 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:32 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:33 Arch-NC10 lightdm[404]: ** (lightdm:404): WARNING **: Error getting user lis
mars 03 20:39:35 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:35 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:35 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:35 Arch-NC10 lightdm[411]: ** (lightdm:411): WARNING **: Error getting user lis
mars 03 20:39:38 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:38 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:38 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:38 Arch-NC10 lightdm[418]: ** (lightdm:418): WARNING **: Error getting user lis
mars 03 20:39:40 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:40 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:40 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:41 Arch-NC10 lightdm[425]: ** (lightdm:425): WARNING **: Error getting user lis
mars 03 20:39:43 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:43 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:43 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:43 Arch-NC10 lightdm[432]: ** (lightdm:432): WARNING **: Error getting user lis
mars 03 20:39:46 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:46 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:46 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:46 Arch-NC10 lightdm[439]: ** (lightdm:439): WARNING **: Error getting user lis
mars 03 20:39:48 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:48 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:48 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:48 Arch-NC10 lightdm[446]: ** (lightdm:446): WARNING **: Error getting user lis
mars 03 20:39:51 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:51 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:51 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:51 Arch-NC10 lightdm[453]: ** (lightdm:453): WARNING **: Error getting user lis
mars 03 20:39:53 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:53 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:53 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:54 Arch-NC10 lightdm[460]: ** (lightdm:460): WARNING **: Error getting user lis
mars 03 20:39:56 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:56 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:56 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:56 Arch-NC10 lightdm[467]: ** (lightdm:467): WARNING **: Error getting user lis
mars 03 20:39:59 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:39:59 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:39:59 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:39:59 Arch-NC10 lightdm[474]: ** (lightdm:474): WARNING **: Error getting user lis
mars 03 20:40:01 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:40:01 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:40:01 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:40:02 Arch-NC10 lightdm[481]: ** (lightdm:481): WARNING **: Error getting user lis
mars 03 20:40:04 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:40:04 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:40:04 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:40:04 Arch-NC10 lightdm[488]: ** (lightdm:488): WARNING **: Error getting user lis
mars 03 20:40:06 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:40:06 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:40:06 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:40:07 Arch-NC10 lightdm[495]: ** (lightdm:495): WARNING **: Error getting user lis
mars 03 20:40:09 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:40:09 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:40:09 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:40:09 Arch-NC10 lightdm[502]: ** (lightdm:502): WARNING **: Error getting user lis
mars 03 20:40:11 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:40:11 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:40:11 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:40:12 Arch-NC10 lightdm[509]: ** (lightdm:509): WARNING **: Error getting user lis
mars 03 20:40:13 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:40:13 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:40:13 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:40:13 Arch-NC10 lightdm[509]: Failed to get D-Bus connection
-- Reboot --
mars 03 20:40:48 Arch-NC10 lightdm[238]: ** (lightdm:238): WARNING **: Error getting user lis
mars 03 20:40:53 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:40:53 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:40:53 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:40:53 Arch-NC10 lightdm[334]: ** (lightdm:334): WARNING **: Error getting user lis
mars 03 20:40:55 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:40:55 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:40:55 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:40:55 Arch-NC10 lightdm[378]: ** (lightdm:378): WARNING **: Error getting user lis
mars 03 20:40:58 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:40:58 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:40:58 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:40:58 Arch-NC10 lightdm[385]: ** (lightdm:385): WARNING **: Error getting user lis
mars 03 20:41:00 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:41:00 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:41:00 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:41:00 Arch-NC10 lightdm[392]: ** (lightdm:392): WARNING **: Error getting user lis
mars 03 20:41:03 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:41:03 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:41:03 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:41:03 Arch-NC10 lightdm[399]: ** (lightdm:399): WARNING **: Error getting user lis
mars 03 20:41:05 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:41:05 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:41:05 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:41:06 Arch-NC10 lightdm[407]: ** (lightdm:407): WARNING **: Error getting user lis
mars 03 20:41:08 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:41:08 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:41:08 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:41:08 Arch-NC10 lightdm[414]: ** (lightdm:414): WARNING **: Error getting user lis
mars 03 20:41:10 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:41:10 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:41:10 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:41:11 Arch-NC10 lightdm[421]: ** (lightdm:421): WARNING **: Error getting user lis
mars 03 20:41:13 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:41:13 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:41:13 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:41:13 Arch-NC10 lightdm[429]: ** (lightdm:429): WARNING **: Error getting user lis
mars 03 20:41:16 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:41:16 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:41:16 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:41:16 Arch-NC10 lightdm[437]: ** (lightdm:437): WARNING **: Error getting user lis
mars 03 20:41:18 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:41:18 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:41:18 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:41:18 Arch-NC10 lightdm[444]: ** (lightdm:444): WARNING **: Error getting user lis
mars 03 20:41:19 Arch-NC10 systemd[1]: lightdm.service: main process exited, code=exited, sta
mars 03 20:41:19 Arch-NC10 systemd[1]: Unit lightdm.service entered failed state.
mars 03 20:41:19 Arch-NC10 systemd[1]: lightdm.service failed.
mars 03 20:41:20 Arch-NC10 lightdm[444]: Failed to get D-Bus connection
A noter qu'entre temps j'ai désinstaller lightdm, le temps de corriger le pb sur tty1 ...
via

Code : Tout sélectionner

#pacman -Rsn lightdm.service

Re: [DM] Pb suite désinstallation slim

Publié : mar. 03 mars 2015, 22:10
par benjarobin
Quelle est la sortie (sans tronquer son contenu...) de :

Code : Tout sélectionner

grep -REv "^ *$|^ *#" /etc/lightdm/
pacman -Qs lightdm

Re: [DM] Pb suite désinstallation slim

Publié : mar. 03 mars 2015, 22:12
par eliohann
[root@Arch-NC10 ~]# grep -REv "^ *$|^ *#" /etc/lightdm/
grep: /etc/lightdm/: Aucun fichier ou dossier de ce type
[root@Arch-NC10 ~]# pacman -Qs lightdm
[root@Arch-NC10 ~]#

Re: [DM] Pb suite désinstallation slim

Publié : mar. 03 mars 2015, 22:17
par benjarobin
Comment dire... As tu installé lightdm ?

Sinon j'ai personnellement ceci :

Code : Tout sélectionner

/etc/lightdm/users.conf:[UserList]
/etc/lightdm/users.conf:minimum-uid=1000
/etc/lightdm/users.conf:hidden-users=nobody nobody4 noaccess
/etc/lightdm/users.conf:hidden-shells=/bin/false /usr/bin/nologin
/etc/lightdm/keys.conf:[keyring]
/etc/lightdm/Xsession:echo "Running X session wrapper"
/etc/lightdm/Xsession:for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do
/etc/lightdm/Xsession:    if [ -f "$file" ]; then
/etc/lightdm/Xsession:        echo "Loading profile from $file";
/etc/lightdm/Xsession:        . "$file"
/etc/lightdm/Xsession:    fi
/etc/lightdm/Xsession:done
/etc/lightdm/Xsession:for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do
/etc/lightdm/Xsession:    if [ -f "$file" ]; then
/etc/lightdm/Xsession:        echo "Loading resource: $file"
/etc/lightdm/Xsession:        xrdb -nocpp -merge "$file"
/etc/lightdm/Xsession:    fi
/etc/lightdm/Xsession:done
/etc/lightdm/Xsession:for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do
/etc/lightdm/Xsession:    if [ -f "$file" ]; then
/etc/lightdm/Xsession:        echo "Loading keymap: $file"
/etc/lightdm/Xsession:        setxkbmap `cat "$file"`
/etc/lightdm/Xsession:        XKB_IN_USE=yes
/etc/lightdm/Xsession:    fi
/etc/lightdm/Xsession:done
/etc/lightdm/Xsession:if [ -z "$XKB_IN_USE" ]; then
/etc/lightdm/Xsession:    for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do
/etc/lightdm/Xsession:        if [ -f "$file" ]; then
/etc/lightdm/Xsession:           echo "Loading modmap: $file"
/etc/lightdm/Xsession:           xmodmap "$file"
/etc/lightdm/Xsession:        fi
/etc/lightdm/Xsession:    done
/etc/lightdm/Xsession:fi
/etc/lightdm/Xsession:unset XKB_IN_USE
/etc/lightdm/Xsession:xinitdir="/etc/X11/xinit/xinitrc.d"
/etc/lightdm/Xsession:if [ -d "$xinitdir" ]; then
/etc/lightdm/Xsession:    for script in $xinitdir/*; do
/etc/lightdm/Xsession:        echo "Loading xinit script $script"
/etc/lightdm/Xsession:        if [ -x "$script" -a ! -d "$script" ]; then
/etc/lightdm/Xsession:            . "$script"
/etc/lightdm/Xsession:        fi
/etc/lightdm/Xsession:    done
/etc/lightdm/Xsession:fi
/etc/lightdm/Xsession:echo "X session wrapper complete, running session $@"
/etc/lightdm/Xsession:exec $@
/etc/lightdm/lightdm.conf:[LightDM]
/etc/lightdm/lightdm.conf:minimum-vt=7
/etc/lightdm/lightdm.conf:run-directory=/run/lightdm
/etc/lightdm/lightdm.conf:[SeatDefaults]
/etc/lightdm/lightdm.conf:greeter-session=lightdm-gtk-greeter
/etc/lightdm/lightdm.conf:session-wrapper=/etc/lightdm/Xsession
/etc/lightdm/lightdm-gtk-greeter.conf:[greeter]
/etc/lightdm/lightdm-gtk-greeter.conf:theme-name=BlackMATE
/etc/lightdm/lightdm-gtk-greeter.conf:icon-theme-name=mate

Code : Tout sélectionner

pacman -Q mate-themes lightdm lightdm-gtk2-greeter
mate-themes 1.9.3-1
lightdm 1:1.12.2-2
lightdm-gtk2-greeter 1:1.8.6-1

Re: [DM] Pb suite désinstallation slim

Publié : mar. 03 mars 2015, 22:25
par eliohann
Oui, je l'avais installé puis supprimé car je veux d'abord résoudre le problème sur la tty1

Quand le boot est fini, je saisi mon login, puis ça demande mon pass et là ça part en vrille :
1) Le mot de passe que je tape est affiché!!
2) quand je l'ai tapé et fait entrée, j'ai bien un prompt mais quoique je tape dedans, le seul résultat est d'affiché une nouvelle ligne ayant comme prompt la première lettre de la commande tapé.
exemple de ce que j'ai en tty1 juste après le boot (aucun pb sur tty2 ou tty3) :

Code : Tout sélectionner

Arch Linux 3.18.6-1-ARCH (tty1)

Arch-NC10 login: root
Password: mon_mot_de_passe_root_affiché_en_clair

Last login : Tue Mar  3 21:05:11 on tty1
[root@Arch-NC10 ~]#ls
lcd /etc/systemd
c
D'ailleurs, je viens aussi de remarquer que TAB ne marche pas non plus (alors que sur tty2 ou tty3, oui)

Re: [DM] Pb suite désinstallation slim

Publié : mer. 04 mars 2015, 11:44
par eliohann
Personne n'a d'idée ?

Re: [DM] Pb suite désinstallation slim

Publié : mer. 04 mars 2015, 18:08
par benjarobin
J’avoue n'avoir pas beaucoup d'idée... Des restes de plymouth ? Peux tu donner la sortie de :

Code : Tout sélectionner

grep -REv "^ *#|^ *$" /etc/mkinitcpio.conf
cat /proc/cmdline

Re: [résolu][DM] Pb suite désinstallation slim

Publié : mar. 10 mars 2015, 12:10
par eliohann
Salut,

J'ai résolu le problème à la sauvage ... en réinstallant.
S'agissant d'un machine qui venait d'être installée l'impact étant négligeable.