Difference between revisions of "Slim Display Manager"

From LFScript
(Created page with "<scriptname>slim</scriptname> == Sources == * <sourcecode>http://download.berlios.de/slim/slim-1.3.2.tar.gz</sourcecode> == Dependencies == * <dependency>libjpeg</dependency...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[Category:Deleted Scripts]]
 +
'''This software is no longer maintained.'''
 +
 
<scriptname>slim</scriptname>
 
<scriptname>slim</scriptname>
  
 
== Sources ==
 
== Sources ==
* <sourcecode>http://download.berlios.de/slim/slim-1.3.2.tar.gz</sourcecode>
+
* <sourcecode>https://github.com/iwamatsu/slim/archive/v1.3.6.tar.gz</sourcecode>
 +
 
 +
<md5>d40d256394f9ef34cef34d2aa9cb52e6  v1.3.6.tar.gz</md5>
  
 
== Dependencies ==
 
== Dependencies ==
Line 11: Line 16:
  
 
Allow slim to compile against libpng 1.5:
 
Allow slim to compile against libpng 1.5:
<build>sed 's@png_ptr->jmpbuf@png_jmpbuf(png_ptr)@g' -i png.c
+
<build>#sed 's@png_ptr->jmpbuf@png_jmpbuf(png_ptr)@g' -i png.c
sed 's@-lpng12@-lpng15@g' -i Makefile</build>
+
#sed 's@-lpng12@-lpng15@g' -i Makefile</build>
  
 
By default, Slim uses the <code>.xinitrc</code> file in a users home directory to set up an X session. Change this to use the system-wide <code>xinitrc</code> in stead:
 
By default, Slim uses the <code>.xinitrc</code> file in a users home directory to set up an X session. Change this to use the system-wide <code>xinitrc</code> in stead:
Line 35: Line 40:
  
 
         # Update sessions list
 
         # Update sessions list
         if [ -r /etc/X11/app-defaults/xinitrc.d/functions ]; then
+
         if [ -r /etc/alternatives/xinitrc/functions ]; then
             . /etc/X11/app-defaults/xinitrc.d/functions
+
             . /etc/alternatives/xinitrc/functions
 
             SESSIONS="$(listSessions)"
 
             SESSIONS="$(listSessions)"
 
             sed "s@^sessions.*\$@sessions ${SESSIONS}@g" -i /etc/slim.conf
 
             sed "s@^sessions.*\$@sessions ${SESSIONS}@g" -i /etc/slim.conf
Line 47: Line 52:
 
     stop)
 
     stop)
 
         log_info_msg "Stopping the Slim Display Manager..."
 
         log_info_msg "Stopping the Slim Display Manager..."
         killall X    # Killing 'slim' would leave a dead X session
+
         killall slim || failed=1
 +
        killall X || failed=1
 +
 
 +
        (exit ${failed})
 
         evaluate_retval
 
         evaluate_retval
  
         rm -rf /var/run/slim.lock
+
         rm&nbsp;-rf /var/run/slim.lock
 
         ;;
 
         ;;
  
Line 65: Line 73:
 
esac
 
esac
 
EOF
 
EOF
chmod 755 /etc/rc.d/init.d/slim</build>
+
chmod&nbsp;755 /etc/rc.d/init.d/slim</build>
  
 
<build user="root">for n in 0 1 2 3 4 6; do
 
<build user="root">for n in 0 1 2 3 4 6; do

Latest revision as of 15:07, 18 March 2017

This software is no longer maintained.

LFScript can find this software under the name slim.

Sources


MD5 Checksums:

d40d256394f9ef34cef34d2aa9cb52e6  v1.3.6.tar.gz

Dependencies

  • libjpeg
  • x-window-system

Installation

Allow slim to compile against libpng 1.5:

#sed 's@png_ptr->jmpbuf@png_jmpbuf(png_ptr)@g' -i png.c
#sed 's@-lpng12@-lpng15@g' -i Makefile

By default, Slim uses the .xinitrc file in a users home directory to set up an X session. Change this to use the system-wide xinitrc in stead:

sed 's@~/.@/etc/X11/app-defaults/@g' -i slim.conf

Compile the package:

sed 's@/bin/slim@/sbin/slim@g' -i Makefile
make

As the root user:

make install

The next two code blocks will install a custom boot script, which will launch the Slim Display Manager on boot.

As the root user:

cat > /etc/rc.d/init.d/slim << "EOF"
#!/bin/sh
# Written by Marcel van den Boer

. /lib/lsb/init-functions

case "$1" in
    start)
        log_info_msg "Starting the Slim Display Manager..."

        # Update sessions list
        if [ -r /etc/alternatives/xinitrc/functions ]; then
            . /etc/alternatives/xinitrc/functions
            SESSIONS="$(listSessions)"
            sed "s@^sessions.*\$@sessions ${SESSIONS}@g" -i /etc/slim.conf
        fi

        /usr/sbin/slim -d
        evaluate_retval
        ;;

    stop)
        log_info_msg "Stopping the Slim Display Manager..."
        killall slim || failed=1
        killall X || failed=1

        (exit ${failed})
        evaluate_retval

        rm -rf /var/run/slim.lock
        ;;

    restart)
        ${0} stop
        sleep 1
        ${0} start
        ;;

    *)
        echo "Usage: ${0} {start|stop|restart}"
        exit 1
        ;;
esac
EOF
chmod 755 /etc/rc.d/init.d/slim

As the root user:

for n in 0 1 2 3 4 6; do
    ln -svf ../init.d/slim /etc/rc.d/rc${n}.d/K05slim
done
ln -svf ../init.d/slim /etc/rc.d/rc5.d/S95slim