[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Ceci est une ancienne révision du document !


SLiM (Simple Login Manager)

SLiM est un acronyme pour Simple Login Manager. Si vous utilisez un des environnements de bureau légers comme Xfce, Fluxbox, Blackbox ou WindowMaker, SLiM peut vous intéresser.

Slackware est livré avec deux gestionnaires de login qui peuvent faire le travail mais qui ont chacun des inconvénients :

  • KDM (lourd)
  • XDM (visuellement disgracieux)

Installation

SLiM ne fait pas partie de l'installation standard de Slackware mais vous pouvez facilement l'installer à partir de SBo.

Configuration de base (au niveau système)

Tous les gestionnaires de login sont supposés démarrer au niveau 4 ; vérifiez que c'est bien le cas en regardant /etc/inittab et en vérifiant que vous avez bien ces lignes

# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:

Vous pouvez aussi vérifier le niveau d’exécution du système en tapant la commande :

# who -r
         run-level 4  2012-07-04 21:44                   last=S

Dans l'exemple ci-dessus, le niveau d'éxécution du système est aussi “4”.

Maintenant éditez le fichier /etc/rc.d/rc.4 et ajoutez y quelques lignes pour démarrer automatiquement SLiM au démarrage. L'ordre est important ici. Insérez ces lignes juste avant celles qui gérent GDM, comme ceci :

# Tell the viewers what's going to happen...
echo "Starting up X11 session manager..."

# Start SLiM...
if [ -x /usr/bin/slim ]; then
  exec /usr/bin/slim
fi

# Try to use GNOME's gdm session manager.  This comes first because if
# gdm is on the machine then the user probably installed it and wants
# to use it by default:
if [ -x /usr/bin/gdm ]; then
  exec /usr/bin/gdm -nodaemon
fi

Configuration de base ( au niveau utilisateur )

Il y a une dernière chose à faire avant de pouvoir utiliser votre nouveau gestionnaire de login. Tapez la commande suivante ( en tant qu'utilisateur ordinaire ) T:

$ xwmconfig

Cela va lancer la boîte de dialogue pour sélectionner votre gestionnaire de fenêtre. Choisissez le (Xfce, Fluxbox, Blackbox, ou autre) et appuyez sur OK. Cela va créer un nouveau fichier ~/.xinitrc dans votre home directory. Nous n'allons pas regarder tous les détails de ce fichier mais ce qui va vous intéresser est que vous pourrez désormais vous logger en utilsant SLiM .

Fine-tuning

SLiM's main configuration file is /etc/slim.conf. It's very clear and well commented and pretty much self-explanatory. For example, you might want to decide that you prefer activating numlock on boot. In that case, just uncomment the relevant line in slim.conf like this:

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

Artwork

SLiM's default theme may or may not appeal to you. If the latter is the case, then you can either install another theme, or create your own theme from scratch.

SBo's slim build comes with an alternate theme called slackware-black, created by Frank Caraballo. You can activate this theme by editing the according line in /etc/slim.conf and replacing default with slackware-black, like this:

# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       slackware-black

An alternative Slackware theme is available on ngc891's blog.

The SLiM website has a page with a collection of themes. Installing one or more of these themes is quite simple. Take a look in /usr/share/slim/themes. You'll see two directories: default and slackware-black. To install a theme, simply download the theme tarball and uncompress it in the /usr/share/slim/themes directory (as root, of course). To activate the theme, edit the current_theme line in /etc/slim.conf accordingly.

The site also sports a nice tutorial about your own theme creation.

Install a collection of ready-made themes, and then take a peek in the respective theme directories to see how it's actually done.

Sources

 fr:howtos:window_managers:slim ()