SLiM (Italiano)

From ArchWiki

Jump to: navigation, search


i18n
English
简体中文
Italiano

Contents

[edit] Introduzione

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.

[edit] Installazione

SLiM è installabile dai repo /extra:

# pacman -S slim

E c'è anche un pacchetto per i temi

# pacman -S slim-themes

[edit] Configurazione

[edit] Abilitare SLiM

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

[edit] Singolo ambiente desktop

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

#!/bin/sh

#
# ~/.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:

# GNOME
exec gnome-session

Per lanciare KDE:

# KDE
exec startkde

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

[edit] 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

DEFAULT_SESSION=twm

case $1 in
kde)
	exec startkde
	;;
xfce4)
	exec startxfce4
	;;
icewm)
	icewmbg &
	icewmtray &
	exec icewm
	;;
wmaker)
	exec wmaker
	;;
blackbox)
	exec blackbox
	;;
*)
	exec $DEFAULT_SESSION
	;;
esac

Source for sample: http://svn.berlios.de/svnroot/repos/slim/trunk/xinitrc.sample

Slim documentation: http://slim.berlios.de/manual.php

[edit] Themes

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>

[edit] Tips & Tricks

[edit] 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.)

[edit] 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))

[edit] Weblinks

SLiM homepage

Personal tools