SLiM: Difference between revisions

From Alpine Linux
No edit summary
(added category.. fixed some wikitags)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Delete|The project hasnt had any commits since 2013 and its likely not working anymore}}
[https://www.berlios.de/software/slim/ SLiM] is a Simple Login Manager (also known as a display manager) which is lightweight and simple to configure.


[http://slim.berlios.de/index.php SLiM] is a Simple Login Manager (also known as a display manager) which is lightweight and simple to configure.
{{Note|The SLiM project appears to have been abandoned since 2013, although the [http://slim.berlios.de/ project homepage] is online. Also: https://github.com/iwamatsu/slim}}


{{Warning|The SLiM project appears to have been abandoned although the [http://slim.berlios.de/ project homepage] is online.}}
== Installation ==


== Install ==
Simply add the {{Pkg|slim}} package with: {{Cmd|apk add slim}}
 
Install any [[Desktop_environments_and_Window_managers|desktop]] of your choice.
Simply add the {{Pkg|slim}} package with:
{{Cmd|apk add slim}}
I should imagine you'd also want some kind of desktop installed too, like [[Gnome Setup|Gnome]] or [[XFCE Setup|XFCE]]


== Configure & Test ==
== Configure & Test ==


The SLiM configuration file is at <code>/etc/slim.conf</code> and it is heavily commented, so I'll not add any info about it here unless asked to (in the discussion function for instance).  Before making any changes it is recommended to backup the default configuration file with:
The SLiM configuration file is at {{Path|/etc/slim.conf}} and it is heavily commented, so I'll not add any info about it here unless asked to (in the discussion function for instance).  Before making any changes it is recommended to backup the default configuration file with:
{{Cmd|cp /etc/slim.conf /etc/slim.conf.original}}
{{Cmd|cp /etc/slim.conf /etc/slim.conf.original}}


Then you can modify <code>/etc/slim.conf</code> and easily copy the default configuration back if you run into trouble:
Then you can modify {{Path|/etc/slim.conf}} and easily copy the default configuration back if you run into trouble:
{{Cmd|cp /etc/slim.conf.original /etc/slim.conf}}
{{Cmd|cp /etc/slim.conf.original /etc/slim.conf}}


Line 26: Line 23:
{{Cmd|rc-update add slim}}
{{Cmd|rc-update add slim}}


<b>Note: You should disable any other display manager you have running</b> to prevent them both launching. For example, to prevent lxdm from starting at boot use:
{{Note| You should disable any other display manager you have running</b> to prevent them both launching. For example, to prevent lxdm from starting at boot use:{{Cmd|rc-update del lxdm}}}}
{{Cmd|rc-update del lxdm}}


== Extra Login Commands ==
== Extra Login Commands ==
When on the SLiM login screen, you can use:
When on the SLiM login screen, you can use:
* <code>exit</code> as a username to return to a shell prompt
* <code>exit</code> as a username to return to a shell prompt
* <code>reboot</code> as a username and the root password to reboot the machine
* <code>reboot</code> as a username and the root password to reboot the machine
* <code>halt</code> as a username and the root password to power down the machine
* <code>halt</code> as a username and the root password to power down the machine
== Troubleshooting ==
If you are using a .xinitrc file (usually located at <code>~/.xinitrc</code>, slim will read from this and you will need to ensure you have a line to execute your desktop environment.  This is usually the last line of the file.  For example:
<pre>....
exec startxfce4
</pre>
if you are using an [[XFCE Setup|XFCE desktop]], or:
<pre>....
exec gnome-session
</pre>
if using [[Gnome Setup|Gnome]].
If you don't do this, or you make a mistake with your typing, you'll probably get an error like <code>failed to execute login command</code>


== Themes ==
== Themes ==
Line 62: Line 45:
Search for <code>current_theme</code> and choose one of the available themes.
Search for <code>current_theme</code> and choose one of the available themes.


== Further Information ==
== Troubleshooting ==
 
If you are using a .xinitrc file (usually located at <code>~/.xinitrc</code>, slim will read from this and you will need to ensure you have a line to execute your desktop environment.  This is usually the last line of the file.  For example:
<pre>....
exec startxfce4
</pre>
if you are using an [[Xfce]], or:
<pre>....
exec gnome-session
</pre>
if using [[GNOME]].
 
If you don't do this, or you make a mistake with your typing, you'll probably get an error like <code>failed to execute login command</code>
 
== See also ==


* [http://slim.berlios.de/index.php SLiM Homepage]
* [https://www.berlios.de/software/slim/ SLiM Homepage]
* [http://slim.berlios.de/manual.php SLiM Manual]
* [https://web.archive.org/web/20140328145512/http://slim.berlios.de/manual.php SLiM Manual]
* [https://wiki.archlinux.org/index.php/SLiM Arch Linux wiki entry]
* [https://wiki.archlinux.org/index.php/SLiM Arch Linux wiki entry]


[[Category:Desktop]]
[[Category:Desktop]]
[[Category:Display Managers]]

Latest revision as of 09:00, 6 February 2025

SLiM is a Simple Login Manager (also known as a display manager) which is lightweight and simple to configure.

Note: The SLiM project appears to have been abandoned since 2013, although the project homepage is online. Also: https://github.com/iwamatsu/slim

Installation

Simply add the slim package with:

apk add slim

Install any desktop of your choice.

Configure & Test

The SLiM configuration file is at /etc/slim.conf and it is heavily commented, so I'll not add any info about it here unless asked to (in the discussion function for instance). Before making any changes it is recommended to backup the default configuration file with:

cp /etc/slim.conf /etc/slim.conf.original

Then you can modify /etc/slim.conf and easily copy the default configuration back if you run into trouble:

cp /etc/slim.conf.original /etc/slim.conf

To immediately test slim, do

rc-service slim start

and you should be presented with a login screen, branded for Alpine linux!

Login with your normal user credentials (avoid using a desktop as root) and you should reach your desktop.

Once you've tested it works, start SLiM at the default runlevel:

rc-update add slim

Note: You should disable any other display manager you have running to prevent them both launching. For example, to prevent lxdm from starting at boot use:

rc-update del lxdm

Extra Login Commands

When on the SLiM login screen, you can use:

  • exit as a username to return to a shell prompt
  • reboot as a username and the root password to reboot the machine
  • halt as a username and the root password to power down the machine

Themes

Simply add the slim-theme package with:

apk add slim-themes

All theme which are available on your system are located at /usr/share/slim/themes

ls /usr/share/slim/themes

You need to modify /etc/slim.conf to change the theme:

sudo vi /etc/slim.conf

Search for current_theme and choose one of the available themes.

Troubleshooting

If you are using a .xinitrc file (usually located at ~/.xinitrc, slim will read from this and you will need to ensure you have a line to execute your desktop environment. This is usually the last line of the file. For example:

....
exec startxfce4

if you are using an Xfce, or:

....
exec gnome-session

if using GNOME.

If you don't do this, or you make a mistake with your typing, you'll probably get an error like failed to execute login command

See also