Llink:Linux installation: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
Install any necessary dependencies, such as g++. e.g. For Debian: | Install any necessary dependencies, such as g++. e.g. For Debian: | ||
<pre> | <pre> | ||
apt-get install gcc g++ libc6-dev openssl libssl-dev | apt-get install gcc g++ libc6-dev openssl libssl-dev libdvdnav-dev | ||
</pre> | </pre> | ||
Line 10: | Line 10: | ||
Download the source code: | Download the source code: | ||
<pre> | <pre> | ||
wget http://www.lundman.net/ftp/llink/llink-2.0.tar.gz | cd /usr/local/src | ||
wget http://www.lundman.net/ftp/llink/llink-2.2.0.tar.gz | |||
</pre> | </pre> | ||
Line 17: | Line 18: | ||
Extract the source code: | Extract the source code: | ||
<pre> | <pre> | ||
tar | tar xvfz llink-2.2.0.tar.gz | ||
</pre> | </pre> | ||
Line 24: | Line 25: | ||
Configure and build the source code: | Configure and build the source code: | ||
<pre> | <pre> | ||
cd llink-2.0 | cd llink-2.2.0 | ||
./configure --without-openssl | ./configure --without-openssl | ||
make all | make all |
Revision as of 17:35, 21 December 2008
Step 1:
Install any necessary dependencies, such as g++. e.g. For Debian:
apt-get install gcc g++ libc6-dev openssl libssl-dev libdvdnav-dev
Step 2:
Download the source code:
cd /usr/local/src wget http://www.lundman.net/ftp/llink/llink-2.2.0.tar.gz
Step 3:
Extract the source code:
tar xvfz llink-2.2.0.tar.gz
Step 4:
Configure and build the source code:
cd llink-2.2.0 ./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
#!/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 . /lib/lsb/init-functions case "$1" in start) log_daemon_msg "Starting llink daemons" "llink" if ! start-stop-daemon --start --quiet --exec $LLINK -- $LLINKOPTS ; then log_end_msg 1 exit 1 fi log_end_msg 0 ;; stop) log_daemon_msg "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
Step 8:
Edit the configuration file:
vi /usr/local/etc/llink/llink.conf
step 9: Make a symbolic link to unrar and dvdnav-config
cd /usr/local/etc/llink ln -s ../../bin/unrar ./unrar 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:
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