----- Original Message -----
From: "Adam Vazquez Kb2jpd Internet Mobile w/ Treo"
-----Original Message-----
From: Steve Graegert
Subj: Re: [SLE] Watching DVD on SuSE 10 On 10/16/05, Basil Chupin
wrote: How is it possible in this year 2005 for an installed piece of software in SuSE to be crippleware so that it is not able to play DVDs?
When the economic climate is such that you can't post open source software without the fear of retribution even though the user of the DVD is entitled to use of same disc.
I use mplayer along with the existing code to view my DVDs and don't bother with the rest.
It is my hope that someone does write a script so you can do your library download with a mininium of fuss. It just won't happen.
#!/bin/sh # # # This script will: # 1) download the sources needed to build libdvdcss2 RPM # 2) Ask the root password # 3) Build the binary RPM packages and install it. # NOTE: To build is needed to install before the following packages: # gcc (the C GNU compiler) # make (the make build GNU utility) # wget (the tool to download the source code) # To use it, you will need an internet conection up to download the sources # a) Download the script # b) move it to a temp directory # c) cd to that temp directory # d) execute the script (you will need to know the root password and the # internet conection up) # ./install_libdvdcss2 # # (c) Guillermo Ballester Valor, 2004 # # v 0.1.1 (15-feb-2004) # V_DVDCSS2=1.2.9 V_PACKMAN=0.pm.0 SITE_PACKMAN=mirrors.mathematik.uni-bielefeld.de/pub/linux/misc/packman TEMP_FILE=./tmpfile # First check about gcc and make packages echo "Checking if you have basic compiler and utils installed ..." ! ( rpm -q gcc ) && echo "You have to install 'gcc' RPM package before" && exit ! ( rpm -q make ) && echo "You have to install 'make' RPM package before" && exit ! ( rpm -q wget ) && echo "You have to install 'wget' RPM package before" && exit echo "Ok, continue downloading needed packages and sources ..." echo " " # A small clean before download fresh files rm -f libdvdcss2-${V_DVDCSS2}-${V_PACKMAN}.nosrc.rpm* rm -f libdvdcss-${V_DVDCSS2}.tar.bz2* # download the packman nosrc.rpm package wget ftp://${SITE_PACKMAN}/suse/9.3/SRPMS/libdvdcss2-${V_DVDCSS2}-${V_PACKMAN}.nosrc.rpm # download the libdvdcss2 source wget ftp://download.videolan.org/pub/libdvdcss/${V_DVDCSS2}/libdvdcss-${V_DVDCSS2}.tar.bz2 echo "download completed" echo " " # A legal warning and ask the root password echo "WARNING: THE USE OF LIBDVDCSS LIBRARY COULD BE ILLEGAL IN YOUR COUNTRY" echo "Enter the root password if you want to continue and install it." echo "Enter any other key otherwise." echo "The compiling process will generate a lot of output on the screen" echo "Don't worry about it" # build the rpms and install as root su --command="mv libdvdcss-${V_DVDCSS2}.tar.bz2 /usr/src/packages/SOURCES && \ rpmbuild --rebuild --target=i586 libdvdcss2-${V_DVDCSS2}-${V_PACKMAN}.nosrc.rpm &&\ rpm -Uvh /usr/src/packages/RPMS/i586/libdvdcss2*-${V_DVDCSS2}-${V_PACKMAN}.i586.rpm " # check the installation INSTALLED=`rpm -qi libdvdcss2 | grep libdvdcss2-${V_DVDCSS2}-${V_PACKMAN}.src.rpm` FILE0=./libdvdcss2-${V_DVDCSS2}-${V_PACKMAN}.nosrc.rpm FILE1=/usr/src/packages/SRPMS/libdvdcss2-${V_DVDCSS2}-${V_PACKMAN}.src.rpm FILE2=/usr/src/packages/RPMS/i586/libdvdcss2-${V_DVDCSS2}-${V_PACKMAN}.i586.rpm FILE3=/usr/src/packages/RPMS/i586/libdvdcss2-devel-${V_DVDCSS2}-${V_PACKMAN}.i586.rpm # last step if test -n "${INSTALLED}" -a ${FILE1} -nt ${FILE0} -a ${FILE2} -nt ${FILE0} -a ${FILE3} -nt ${FILE0}; then echo "libdvdcss2 rpm packages installed successfully. You have the rpm" echo "packages in the directory '/usr/src/packages/RPMS/i586' " else echo "libdvdcss2 have not been installed" if test -n "${INSTALLED}"; then echo "The same version was already installed" fi fi -- David C. Rankin, J.D., P.E. --