[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

Ово је стара верзија документа!


СЛиМ (Једноставни Логин Mенаџер)

СЛиМ је скраћеница од Једноставни Логин Mенаџер. Ако користите један од лаких десктоп окружења као ИксФЦЕ, Флуксбокс, Блекбокс или ВиндоусМејкер, можда бисте хтели користити и СЛиМ.

Слеквер долази са два логин менаџера који теоретски могу да раде посао али сваки од њих има своје недостатке:

  • КДМ (тежак)
  • ИксДМ (визуелно непривлачан)

Инсталација

СЛиМ не долази уз основну Слеквер инсталацију, али га лако можете инсталирати са СБо.

Основна конфигурација (системски покретачки ниво)

Сви логин менаџери (СЛиМ, ГДМ, КДМ, ИксДМ) би требало да се покрећу у покретачком нивоу 4, уверите са да Вам је ово подразумевани покретачки ниво. Завирите у /etc/inittab и погледајте да ли имате следеће:

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

Покретањем следеће команде такође можете видети Ваш тренутни покретачки ниво:

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

На горњем примеру, тренутни покретачки ниво на вашој машини је такође „4“.

Сада измените /etc/rc.d/rc.4 и додајте неколико нових линија да би се СЛиМ покренуо аутоматски при подизању система. Овде је важан редослед. Унесите нове редове одмах пре оних који управљају ГДМ-ом, овако:

# 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

Основна конфигурација (кориснички ниво)

Остаје још једна ствар да се уради пре него што почнемо користити наш нови сјајни логим менаџер. Покрените следећу команду као обичан корисник:

$ xwmconfig

Ово ће покренути Слекверов . Choose your window manager (Xfce, Fluxbox, Blackbox, whatever) and hit OK. This spews out a new ~/.xinitrc file in your home directory. We won't go into the gory details of this file, since the one interesting thing about it is that it enables you to log in using 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

 sr:howtos:window_managers:slim ()