SLiM (Italiano)

From ArchWiki
Revision as of 07:46, 15 June 2009 by Rikey93 (Talk | contribs)

Jump to: navigation, search

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n links end

Tango-preferences-desktop-locale.pngThis article or section needs to be translated.Tango-preferences-desktop-locale.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:SLiM (Italiano)#)


SLiM è l'acronimo di Simple Login Manager (semplice gestore di login). SLiM è un login manager semplice, leggero e facilmente configurabile, adatto per essere usato su piattaforme con poche risorse. SLiM è molto utile anche a chi vuole un login manager che non dipenda da gnome o kde, ed è perfetto per chi usa xfce, openbox fluxboc ecc.


SLiM è installabile dai repo /extra:

# pacman -S slim

E c'è anche un pacchetto per i temi

# pacman -S slim-themes


Abilitare SLiM

Vedi Adding a login manager (KDM, GDM, or XDM) to automatically boot on startup.

Singolo ambiente desktop

Per configurare SLiM per caricare un particolare ambiente, basta semplicemente editare il file ~/.xinitrc, in modo che sia simile al seguente:


# ~/.xinitrc
# Executed by startx (run your window manager from here)

exec [session-command]
  • Nota: se non hai un file ~./xinitrc, ne puoi creare uno (per esempio con nano)

Sostituisci [session-command] con il comando appropriato. Per esempio:

Per lanciare Openbox:

# Openbox
exec openbox-session

Per lanciare Fluxbox:

# Fluxbox
exec fluxbox
# Either fluxbox or startfluxbox is acceptable

Per lanciare Xfce:

# Xfce
exec startxfce4

Per lanciare GNOME:

exec gnome-session

Per lanciare KDE:

exec startkde

Se l'ambiente utilizzato non è elencato qui, fare riferimento alla documentazione del software.

Ambienti multipli

Se si ha il bisogno di caricare più ambienti desktop, SLiM può essere configurato in modo da poter scegliere quale.

Put a case statement similar to this one in your /etc/X11/xinit/xinitrc file and edit the sessions variable in /etc/slim.conf. You can choose the session at login time by pressing F1. Note that this feature is experimental

# The following variable defines the session which is started if the user doesn't explicitly select a session


case $1 in
	exec startkde
	exec startxfce4
	icewmbg &
	icewmtray &
	exec icewm
	exec wmaker
	exec blackbox

Source for sample:

Slim documentation:


Install the slim-themes package:

pacman -S slim-themes archlinux-themes-slim

Edit the current_theme line in /etc/slim.conf from "default" to one of your choice:

nano /etc/slim.conf
#current_theme       default
current_theme       archlinux

(Slim-themes located in /usr/share/slim/themes)

To preview a theme, run:

slim -p /usr/share/slim/themes/<theme name>

Tips & Tricks

Slim and Desktop share a theme

A simple way of sharing wallpaper between Slim and your desktop is to create a symbolic link from your desktop wallpaper file to the default Slim theme:

mv /usr/share/slim/themes/default/background.jpg /usr/share/slim/themes/default/background.old.jpg
ln -s /path/to/mywallpaper.jpg /usr/share/slim/themes/default/background.jpg

Now your Slim theme and desktop wallpaper will be the same, smoothing the transition while loading the desktop. (Obviously you must keep the default theme setting in /etc/slim.conf for the above trick to work.)

Shutdown, Reboot, Suspend, Exit, Launch Terminal from SLiM

You may shutdown, reboot, suspend, exit or even launch a terminal from the SLiM login screen. To do so, enter the appropriate value in the username field, and the root password in the password field:

  • To launch a terminal, enter console as the username (defaults to xterm which must be installed separately... edit /etc/slim.conf to change terminal preference)
  • For shutdown, enter halt as the username
  • For reboot, enter reboot as the username
  • To exit to bash, enter exit as the username
  • For suspend, enter suspend as the username (Suspend is disabled by default, edit /etc/slim.conf as root to uncomment the suspend_cmd line and, if necessary modify the suspend command itself (e.g. change /usr/sbin/suspend to sudo /usr/sbin/pm-suspend))


SLiM homepage