#!/bin/bash # MPinstaller VERSION=0.02 PACKMAN=http://ftp.uni-erlangen.de/pub/mirrors/packman/suse/10.1/ # http://packman.mirrors.skynet.be/pub/packman/suse/10.0/ LIBDVDCSS=http://download.videolan.org/pub/libdvdcss/1.2.9/rpm/libdvdcss2-1.2.9-1.i386.rpm # Start off it all off=`tput sgr0` bold=`tput bold` # Some information clear echo "${bold}Installation of MPlayer to watch movies${off}" echo "" echo "You need to have root access to be able to install programs" echo "This is for versions of SUSE 10.1" # Check if rootpassword is known sudo echo "You seem to know the root password. Going on with it now" || exit echo "" # Check installation source if there is a Packman and add if needed echo "Rug will initialize. This can take aLONG time. Go do something else" echo "After this, you might be asked the root password again." sudo rug ping AVAILABLE=`rug ca|grep -i packman` if [ "$AVAILABLE" = "" ] then echo "Installing Packman as installation source" echo "Please be patient" echo "" sudo rpm --import http://packman.iu-bremen.de/public-keys.asc sudo rug set-prefs security-level checksum sudo rug sa --type=zypp $PACKMAN packman sudo rug sub packman sudo rug refresh else echo "Packman seems to be added as an istallation source." echo "If this is incorrect, though luck for now. Parameters will follow" fi # Comment next line after testing # echo "Comment this line after testing" ; exit 0 # Install mplayer echo "" echo "${bold}Please be patient${off}" echo " This can take a while. Your screen will show a blue screen." echo " ... this is normal." echo "" sudo /sbin/yast -i MPlayer mplayerplug-in echo "MPlayer and mplayerlug-in have been installed. Additional" echo "codecs have also been installed" echo "" # Install libdvdcss2 sudo rpm -Uvh $LIBDVDCSS #Delete things clear echo "You can delete this with \`rm $basename\`" echo " ____ " echo " | _ \\ ___ _ __ ___ " echo " | | | |/ _ \\| '_ \\ / _ \\" echo " | |_| | (_) | | | | __/" echo " |____/ \\___/|_| |_|\___|" echo ""