Install and configure themes for SLiM

Following the request of our favorite Troll: Courage, I write this article to show you how to install and configure themes in SLiM. Something really easy.

Installing themes.

In Archlinux:

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

On Debian:

It already brings some by default, although we can find others here and I even made a couple of them myself a long time ago: Topic 1 y Topic 2. These themes are downloaded, unzipped and put into / usr / share / slim / themes.

To test the themes without having to close the session, we open a terminal and write:

slim -p /usr/share/slim/themes/<nombre de la carpeta del tema>

Ok I already downloaded it and tried it. How do I put it in SLiM?

It is very simple, to do that we open a terminal and using our favorite editor, we edit the file /etc/slim.conf:

$ sudo nano /etc/slim.conf

Inside this file we look for the line:

# current theme, use comma separated list to specify a set to

randomly choose from

current_theme                                                  default

And we replace default o the name that is, with the name of the folder that contains the theme we want to use.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Courage said

    Perfect, because I only have to do the one with Kuchiki Rukia and put it

  2.   Courage said

    I have already installed it but I do not get any menu

    Is the file pass for both of you or just for Debian?

    1.    elav <° Linux said

      It's for both of us .. What menu are you talking about?

      1.    Courage said

        Nothing anymore, being for both of us is all text mode

  3.   Holmes said

    the theme is very nice and I would like to know how to install it in opensuse
    greeting
    vlwfwi, Holmes

    1.    elav <° Linux said

      I don't know how to install SLiM on openSUSE, although I guess a:

      rpm -i slim

      It should work. The configuration should be the same.

  4.   Nonamed said

    forgive my ignorance, but what is slim?

    something like gdm, kdm ...?

    1.    KZKG ^ Gaara <"Linux said

      Yup 🙂
      But much lighter 😀

  5.   Courage said

    Bah the damn SLiM does not work for me, it gives me an error and does not let me log in, I had to enter text mode to put GDM again, I will try with another manager to see

    1.    elav <° Linux said

      It's not SLiM's fault .. I'm sure .. Maybe it's something in your .xinitrc or .xsession

      1.    Courage said

        It may be but in the end I have put LXDM

  6.   Claudio said

    Hello, good tuto! I hope you answer me sometime! Step by step everything perfect, except in the end: sometimes I load /etc/slim.conf empty and other times with the options you mention. Do you know what to do in that case? I have the default Debian login and it doesn't catch my attention (bah, it chose by default the worst one it could, all pink heh!)

    I clarify that after slim -p / usr / share / slim / themes / it is seen that the theme is installed but when I restart the one I choose does not appear (when it loads the /etc/slim.conf) but the one that Debian wants

    I hope you can answer me!

    1.    elav <° Linux said

      Greetings Claudio:
      It is that I do not understand what happens. When you put in console:

      $ sudo nano /etc/slim.conf

      Doesn't the SLiM configuration come out?

      1.    Claudio said

        A window opens but is blank. The strangest thing is that once text did appear and when I changed the name of the folder «fingerprint» it only configured a default login which is fierce

        1.    elav <° Linux said

          Well, that happens when you open a file that usually doesn't exist. At this point I assume you have Slim installed. Open a terminal and put:

          $ ls -l /etc/slim.conf

          and tell me what gives you back. By the way, I suggest that if the problem persists, open a thread in our forum where you will receive more help. 😉

          1.    Claudio said

            There I hit what he put me.

            root @ debian: / home / claudio # ls -l /etc/slim.conf
            -rw-r – r– 1 root root 3015 Mar 23 17:26 /etc/slim.conf

            And I clarify that with slim -p / usr / share / slim / themes / I can see how the new login would look

            1.    elav <° Linux said

              So the file exists. Try opening it with a text editor ...


  7.   Claudio said

    Thanks for the answers, I'm entering the novice stage with little knowledge and well I have to bother a little bit. From the gedit editor I opened it and there is text. Here I paste how it appears and I think that it should load the one I want in the login.

    On the other hand, another file appears slim.conf: but with the: stuck.

    1.    Claudio said

      I did not get the quote

      # Path, X server and arguments (if needed)
      # Note: -xauth $ authfile is automatically appended
      default_path / usr / local / bin: / usr / bin: / bin: / usr / local / games: / usr / games
      default_xserver / usr / bin / X11 / X
      xserver_arguments -nolisten tcp

      # Commands for halt, login, etc.
      halt_cmd / sbin / shutdown -h now
      reboot_cmd / sbin / shutdown -r now
      console_cmd / usr / bin / xterm -C -fg white -bg black + sb -T "Console login" -e / bin / sh -c "/ bin / cat /etc/issue.net; exec / bin / login »
      #suspend_cmd / usr / sbin / suspend

      # Full path to the xauth binary
      xauth_path / usr / bin / X11 / xauth

      # Xauth file for server
      authfile /var/run/slim.auth

      # Activate numlock when slim starts. Valid values: on | off
      # numlock on

      # Hide the mouse cursor (note: does not work with some WMs).
      # Valid values: true | false
      #hidecursor false

      # This command is executed after a successful login.
      # you can place the% session and% theme variables
      # to handle launching of specific commands in .xinitrc
      # depending on chosen session and slim theme
      #
      # NOTE: if your system does not have bash you need
      # to adjust the command according to your preferred shell,
      # ie for freebsd use:
      # login_cmd exec / bin / sh - ~ / .xinitrc% session
      login_cmd exec / bin / bash -login / etc / X11 / Xsession% session

      # Commands executed when starting and exiting a session.
      # They can be used for registering an X11 session with
      # sessreg. You can use the% user variable
      #
      # sessionstart_cmd some command
      # sessionstop_cmd some command

      # Start in daemon mode. Valid values: yes | do not
      # Note that this can be overridden by the command line
      # options "-d" and "-nodaemon"
      #daemon yes

      # Available sessions (first one is the default).
      # The current chosen session name is replaced in the login_cmd
      # above, so your login command can handle different sessions.
      # see the xinitrc.sample file shipped with slim sources
      sessions default, startxfce4, openbox, ion3, icewm, wmaker, blackbox, awesome

      # Executed when pressing F11 (requires imagemagick)
      screenshot_cmd scrot /root/slim.png

      # welcome message. Available variables:% host,% domain
      welcome_msg Welcome to% host

      #Sessionmessage. Prepended to the session name when pressing F1
      # session_msg Session:

      # shutdown/reboot messages
      shutdown_msg The system is halting…
      reboot_msg The system is rebooting…

      # default user, leave blank or remove this line
      # to avoid pre-loading the username.
      #default_user simone

      # Focus the password field on start when default_user is set
      # Set to "yes" to enable this feature
      #focus_password no

      # Automatically login the default user (without entering
      # the password. Set to “yes” to enable this feature
      #auto_login no

      # current theme, use comma separated list to specify a set to
      # randomly choose from
      current_theme firgerprint

      #Lock file
      lockfile /var/run/slim.lock

      # log file
      logfile /var/log/slim.log

      1.    KZKG ^ Gaara said

        For future configuration files or those containing extensive code, it would be great if you use the paste our, thus we avoid that the comments are so extensive with code 😉

    2.    elav <° Linux said

      I get it. Maybe that's the problem. Make sure that the one you opened is saved as slim.conf and delete later slim.conf:

      1.    Claudio said

        Ok, and what would the command look like? rm /etc/slim.conf :?

        I appreciate the help!

        1.    elav <° Linux said

          Yup, or if you use sudo:

          $ sudo rm /etc/slim.conf:

          And you're welcome, that's what we're here for, to help us.

          1.    Claudio said

            I managed to eliminate it but when I restart to test, it keeps loading the same login and not the one I want.

            I realized that as a fool I was not doing nano / etc ... but nano etc / ... that's why the file appeared empty. In short, it remains unsolved. If an answer occurs to you, fine. If not, I will register it in the forum. And in that case, in which sector?

            1.    elav <° Linux said

              Well, I can't really think of anything. I that you review all this again. Open a terminal and put this:

              $ sudo gedit /etc/slim.conf

              If everything comes out as it should be, you modify it as you want and then save. Also make sure that the folder where the new theme is has the permissions of the rest of the themes.


  8.   Claudio said

    I use "su" to be root, I don't know why but with "sudo" it won't let me log in. I can already access slim.conf perfectly and I changed the name of the folder to the theme I want.

    I don't know how to do that "folder where the new theme is has the permissions of the rest of the themes." Maybe that's the question!

    1.    elav <° Linux said

      What distribution do you use? The problem with sudo is that you don't have it configured, but hey, that's another issue. So you already made the change in slim.conf, ok. Check that there is no other slim.conf file and restart the session .. Or did you already?

      1.    Claudio said

        Debian 6.0 with GNOME. Right now I can't reboot because I started working but I doubt the change was applied.

        1.    elav <° Linux said

          Ha! I was referring to Logout, but ok. Then you tell me.

          1.    Claudio said

            Still the same! The same pinky Debian default login! Ahhhh heh!

  9.   Claudio said

    I was able to do it, thank you very much for the time and help! I downloaded another package and it goes from ten!