Page 1 of 1

How to install llink

Posted: 26 Nov 2008, 16:47
by newt
This is a "how to" to install llink on Bubba Server

I have used the instalation guid from http://www.lundman.net/wiki/index.php/L ... stallation. And I will change according to what 6feet5 helped me with on this post http://forum.excito.net/viewtopic.php?t=950.

I recomend using nano instead of vi so I have change that from the orginal guid.

Before you start make sure you have root privilage.

Code: Select all

su
and you have to change in the source.list.

Code: Select all

nano ect/apt/source.list
change to

Code: Select all

deb http://archive.debian.org/debian/ sarge main
deb http://security.debian.org/ sarge/updates main
deb http://archive.debian.org/debian/ sarge non-free

#deb http://update.excito.net/ bubba main
dont forget to coment back the debian packages after the installation otherwhise the bubba update will not work.


So lets start.

Step 1: Install any necessary dependencies, such as g++. e.g. For Debian:

Code: Select all

apt-get install gcc g++ libc6-dev openssl libssl-dev
change back the source.list

Step 2: Download the source code:

Code: Select all

wget http://www.lundman.net/ftp/llink/llink-2.0.tar.gz
Step 3: Extract the source code:

Code: Select all

tar xvvfz llink-2.0.tar.gz
Step 4: Configure and build the source code:

Code: Select all

cd llink-2.0
./configure --without-openssl
make all
Step 5: Install the executable and resource files:

Code: Select all

make install
mkdir -p /usr/local/etc/llink
cp -a src/skin /usr/local/etc/llink/.
cp src/*.conf /usr/local/etc/llink/.
Step 6: Create the following script as /etc/init.d/llink

Code: Select all

nano /etc/init.d/llink 
The script

Code: Select all

#!/bin/sh

### BEGIN INIT INFO
# Provides:          llink
# Required-Start:    $network $local_fs $remote_fs
# Required-Stop:     $network $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: start llink daemon
### END INIT INFO


# Defaults
RUN_MODE="daemons"

LLINKPID=/var/run/llink.pid
LLINK=/usr/local/bin/llink
LLINKOPTS="-f /usr/local/etc/llink/llink.conf -w /usr/local/etc/llink"

# clear conflicting settings from the environment
unset TMPDIR

# See if the daemons are there
test -x /usr/local/bin/llink || exit 0

case "$1" in
        start)
                echo "Starting llink daemons" "llink"

                if ! start-stop-daemon --start --quiet --exec $LLINK -- $LLINKOPTS ; then
                        exit 1
                fi
                ;;
        stop)
                echo "Stopping llink daemons" "llink"

                start-stop-daemon --stop --quiet --oknodo --exec $LLINK -- $LLINKOPTS
                ;;
        reload|restart|force-reload)
                $0 stop
                sleep 1
                $0 start
                ;;
        *)
                echo "Usage: /etc/init.d/llink {start|stop|reload|restart|force-reload}"
                exit 1
                ;;
esac

exit 0
After createing the file set the file with execution rights

Code: Select all

chmod a+x /etc/init.d/llink 
Step 7: Edit the configuration file:

Code: Select all

nano /usr/local/etc/llink/llink.conf
step 8: Make a symbolic link to unrar and dvdnav-config

Code: Select all

cd /usr/local/etc/llink
ln -s ../../bin/unrar ./unrar
ln -s ../../bin/dvdnav-config ./dvdnav-config
Step 9: Start and test llink:

Code: Select all

/etc/init.d/llink start
Step 10: If you are satisfied, configure llink to start automatically:

Code: Select all

cd /etc
ln -sf ../init.d/llink rc0.d/K92llink
ln -sf ../init.d/llink rc1.d/K92llink
ln -sf ../init.d/llink rc2.d/S92llink
ln -sf ../init.d/llink rc3.d/S92llink
ln -sf ../init.d/llink rc4.d/S92llink
ln -sf ../init.d/llink rc5.d/S92llink
ln -sf ../init.d/llink rc6.d/K92llink