Difference between revisions of "Llink:Linux installation"

From Lundman Wiki
Jump to: navigation, search
(Install from source: minor updates)
m (Install from source)
Line 51: Line 51:
Step 2:
Step 2:
Download the source code. Check link first, below is an example:
Download the llink [[Llink:sources|source code]]. Check link, below is an example:
cd /usr/local/src
cd /usr/local/src
Line 66: Line 66:
Step 4:
Step 4:
Configure and build the source code:
Configure and build the source code. Note there are more compiling instructions here: [[Llink:Compiling]]
cd llink-2.2.2
cd llink-2.2.2

Latest revision as of 16:35, 18 October 2009

Install with pre-compiled binary

Download binary from http://www.lundman.net/wiki/index.php/Llink#Binaries

cd /usr/local/src
wget <url> (ex: #wget http://www.lundman.net/ftp/llink/llink-2.2.0-linux_x86.tar.gz

Unpack binary:

tar xvfz <filename> (ex: #tar xvfz llink-2.2.0-linux_x86.tar.gz)
cp -apr llink /usr/local/

Unrar from llink source is required since it is patched with custom functions. Download, compile and copy:

cd /usr/local/src
wget http://www.lundman.net/ftp/llink/llink-2.2.0.tar.gz
tar xvfz llink-2.2.0.tar.gz
cd llink-2.2.0/unrar-3.7.8-seek
cp unrar /usr/local/llink

Make a symbolic link to dvdnav-config:

cd /usr/local/llink
ln -s ../../bin/dvdnav-config ./dvdnav-config

Change ROOT in llink.conf (required), change skin if you feel like it

vi /usr/local/llink/llink.conf

Copy startupscript and enable it as shown in chapter about installing from source. Start with:

/etc/init.d/llink start

Install from source

Step 1:

Install necessary dependencies, such as g++. e.g. For Debian/Ubuntu:

aptitude install gcc g++ libc6-dev openssl libssl-dev libdvdnav-dev   

Step 2:

Download the llink source code. Check link, below is an example:

cd /usr/local/src
wget http://www.lundman.net/ftp/llink/llink-2.2.2.tar.gz

Step 3:

Extract the source code:

tar xvfz llink-2.2.2.tar.gz

Step 4:

Configure and build the source code. Note there are more compiling instructions here: Llink:Compiling

cd llink-2.2.2
./configure --without-openssl
make all

Step 5:

Install the executable and resource files:

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


# 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

# Defaults

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

. /lib/lsb/init-functions

case "$1" in
                log_daemon_msg "Starting llink daemons" "llink"

                if ! start-stop-daemon --start --quiet --exec $LLINK -- $LLINKOPTS ; then
                        log_end_msg 1
                        exit 1

                log_end_msg 0
                log_daemon_msg "Stopping llink daemons" "llink"

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

exit 0

Step 8:

Edit the configuration file:

vi /usr/local/etc/llink/llink.conf

Step 9:

Make a symbolic link to dvdnav-config (patched unrar is included in source:

cd /usr/local/etc/llink
ln -s ../../bin/dvdnav-config ./dvdnav-config

Step 10:

Start and test llink:

/etc/init.d/llink start

Step 11:

If you are satisfied, configure llink to start automatically with rcconf: