Difference between revisions of "Slim Display Manager"

From LFScript
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:Scripts]]
+
[[Category:Deleted Scripts]]
 +
'''This software is no longer maintained.'''
 +
 
 
<scriptname>slim</scriptname>
 
<scriptname>slim</scriptname>
  
Line 14: 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:

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