-
Senior Member
registered user
[SCRIPT] Install libdvdcss2 from web or local directory
Hi,
another on-the-fly installer. Please note that xine will only use the dvdcss-support, if run from shell/konsole as always.
Also make sure to source the .bashrc.
Enjoy!
cu
Fabian
Code:
#
# Install libdvdcss-1.2.6 - useful in combination with persistant home
#
# GPL
#
# Author: Fabian Franz <knx-dvd@fabian-franz.de>
#
DVDCSS_NAME="libdvdcss2_1.2.6-1_i386.deb"
DVDCSS_DL="http://www.videolan.org/pub/libdvdcss/1.2.6/deb/libdvdcss2_1.2.6-1_i386.deb"
mkdir -p /tmp/dvdcss_inst.$$
[ -f $DVDCSS_NAME ] && cp $DVDCSS_NAME /tmp/dvdcss_inst.$$
cd /tmp/dvdcss_inst.$$
[ -f $DVDCSS_NAME ] || wget $DVDCSS_DL
ar p libdvdcss2_1.2.6-1_i386.deb data.tar.gz | tar xz ./usr/lib/libdvdcss.so.2.0.6 ./usr/lib/libdvdcss.so.2
mkdir -p $HOME/lib
cp usr/lib/libdvdcss.so.2 usr/lib/libdvdcss.so.2.0.6 $HOME/lib/
# setup $HOME/.bashrc
# we only need lib, but we setup the others anyway
mkdir -p $HOME/bin
mkdir -p $HOME/lib
mkdir -p $HOME/man
cp $HOME/.bashrc $HOME/.bashrc.templ.$$
cat $HOME/.bashrc.templ.$$ | grep -v "export MANPATH=\$HOME/man" | grep -v "export PATH=\$HOME/bin/" | grep -v "export LD_LIBRARY_PATH=\$HOME/lib" > $HOME/.bashrc
echo "export MANPATH=\$HOME/man/:\$MANPATH" >> $HOME/.bashrc
echo "export PATH=\$HOME/bin/:\$PATH" >> $HOME/.bashrc
echo "export LD_LIBRARY_PATH=\$HOME/lib:\$LD_LIBRARY_PATH" >> $HOME/.bashrc
rm -f $HOME/.bashrc.templ.$$
#cleanup
cd ~
rm -rf /tmp/dvdcss_inst.$$
Similar Threads
-
By yadwin in forum General Support
Replies: 9
Last Post: 07-20-2004, 04:57 PM
-
By pelican in forum General Support
Replies: 3
Last Post: 02-05-2004, 11:36 PM
-
By Fabianx in forum Ideas
Replies: 10
Last Post: 07-30-2003, 04:41 AM
-
By Fabianx in forum Ideas
Replies: 6
Last Post: 04-19-2003, 04:28 AM
-
By Fabianx in forum Ideas
Replies: 0
Last Post: 03-30-2003, 01:36 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
IBM x3650 M3, 7945-AC1, 40GB, XEON e5507, 2.26ghz x2 with RAID Card, No HDD
$249.00
IBM System x3250 M4 Server Intel Xeon E31220/3.10Ghz RAM 16GB HDD 2TB
$60.00
IBM System x3250 M4 Server Intel Xeon E3-1220 V2/3.10Ghz RAM 16GB HDD 1TB
$60.00
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server
$239.99
ibm server z series
$16000.00
NOS IBM Server Guide Configuration Setup Version 4.0.2 NEW SEALED 0WW2 E8641A
$50.00
IBM System X3650 M4 7915AC1 Server INTEL XEON E5-2609 2.4GHz 8GB SEE NOTES
$72.75
IBM EServer Xseries 220 Desktop
$160.00
IBM x3550 7042-CR4 Server System Intel Xeon 5130 2.00Ghz DVD-Rom Drive 1GB No HD
$99.99
IBM EServer Xseries 220 Desktop Computer Intel Pentium 3 1GHz 512MB Ram No HDD
$224.99