SLiM (Magyar)

From ArchWiki
Revision as of 09:05, 11 March 2010 by Soma-sk8 (Talk | contribs) (Fejezet fordítások)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary end SLiM is an acronym for Simple Login Manager. SLiM is simple, lightweight and easily configurable. SLiM is used by some because it does not require the dependencies of GNOME or KDE and can help make a lighter system for users that like to use lightweight desktops like Xfce, Openbox, and Fluxbox.

Telepítés

Install SLiM from the extra repository:

# pacman -S slim

Beállítás

SLiM engedélyezése

SLiM can be loaded on startup by entering it in your daemons array in Template:Filename or by modifying Template:Filename. See Display Manager for detailed instructions.

Egyszerű környezetek

To configure SLiM to load a particular environment, edit your Template:Filename to load your desktop environment:

#!/bin/sh

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

exec [session-command]

SLiM reads the local Template:Filename configuration and then launches the desktop according to what is in that file. If you do not have have a Template:Filename file, you can use the skeleton file by:

$ cp /etc/skel/.xinitrc $HOME

Replace Template:Codeline with the appropriate session command. Some examples of different desktop start commands:

exec openbox-session
exec fluxbox (or exec startfluxbox)
exec startxfce4
exec gnome-session
exec startkde
exec fvwm2
exec awesome

If your environment is not listed here, refer to the appropriate wiki page.

PolicyKit

If you have problems with the PolicyKit, use ConsoleKit's Template:Codeline:

#!/bin/sh

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

exec ck-launch-session [session-command]

Többszörös környezetek

To be able to choose from multiple desktop environments, SLiM can be setup to log you into whichever you choose.

Put a case statement similar to this one in your Template:Filename file and edit the sessions variable in Template:Filename to match the names that trigger the case statement. 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
# Source: http://svn.berlios.de/svnroot/repos/slim/trunk/xinitrc.sample

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

Témák

Install the Template:Package Official package:

# pacman -S slim-themes archlinux-themes-slim

The Template:Package Official packages contains several different themes. Look in the directory of Template:Filename to see the themes available. Enter the theme name on the 'current_theme' line in Template:Filename:

#current_theme       default
current_theme       archlinux-simplyblack

To preview a theme run if no instance of the Xorg server is running by:

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

To close, type "exit" in the Login line and press Enter.

Additional theme packages can be found in the AUR.

Kettős képernyő beállítás

You can customize the slim theme in /usr/share/slim/themes/<your-theme>/slim.theme to turn these percents values:

input_panel_x           50%
input_panel_y           50%

into pixels values:

# These settings set the "archlinux-simplyblack" panel in the center of my 1440x900 left screen
input_panel_x           495
input_panel_y           325

If your theme has a background picture you should use the background_style setting ('stretch', 'tile', 'center' or 'color') to get it correctly displayed. Have a look at the very simple and clear official documentation about slim themes for further details.

Egyéb opciók

A few things you might like to try.

Kurzor változtatása

If you want to change the default X cursor to a newer design, the Template:Package AUR package is available.

After installing, edit Template:Filename and uncomment the line:

cursor   left_ptr

This will give you a normal arrow instead. This setting is forwarded to Template:Codeline. You can look up the possible cursor names here or in Template:Filename.

To change the cursor theme being used at the login screen, make a file named Template:Filename with this content:

[Icon Theme]
Inherits=<your-cursor-theme>

Replace <your-cursor-theme> with the name of the cursor theme you want to use (e.g. whiteglass).

SLiM és az asztal hátterének illesztése

To share a wallpaper between SLiM and your desktop, rename the used theme background, then create a link from your desktop wallpaper file to the default SLiM theme:

# mv /usr/share/slim/themes/default/background.jpg{,.bck}
# ln -s /path/to/mywallpaper.jpg /usr/share/slim/themes/default/background.jpg

Leállítás, újraindítás, felfüggesztés, kilépés, terminál indítása SLiM-ből

You may shutdown, reboot, suspend, exit or even launch a terminal from the SLiM login screen. To do so, use the values 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 Template:Filename 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 Template:Filename as root to uncomment the Template:Filename line and, if necessary modify the suspend command itself (e.g. change Template:Codeline to Template:Codeline))

Power-off hiba Splashy-val

If you use Splashy and SLiM, sometimes you can't power-off or reboot from menu in GNOME, Xfce, LXDE or others. Check your Template:Filename and Template:Filename; set the DEFAULT_TTY=7 same as xserver_arguments vt07.

Login információk SLiM-mel

By default, SLiM fails to log logins to utmp and wtmp which causes who, last, etc. to misreport login information. To fix this edit your Template:Filename as follows:

 sessionstart_cmd    /usr/bin/sessreg -a -l $DISPLAY %user
 sessionstop_cmd     /usr/bin/sessreg -d -l $DISPLAY %user

DPI beállítása SLiM-mel

The Xorg server generally picks up the DPI but if it doesn't you can specify it to SLiM. If you set the DPI with the argument -dpi 96 in Template:Filename it will not work with SLiM. To fix this change your Template:Filename from:

 xserver_arguments   -nolisten tcp vt07 

to

 xserver_arguments   -nolisten tcp vt07 -dpi 96

Véletlen téma használata

Use the current_theme variable as a comma separated list to specify a set to randomly choose from.

Források

Segítség