Difference between revisions of "Restricted installer"

From FreekiWiki
Jump to navigation Jump to search
Line 1: Line 1:
Script must be run as root.
+
==What is it==
 +
A script that automates as much as possible the installation of vlc, restricted extras, and libdvdcss.  
  
==unified restricted installer script [not working]==
+
==Usage==
if zenity --title "Restricted software installation" --text "The software you are about to install might or might not be
 
restricted by the ridiculous copyright laws of the United States. By clicking yes, you may be violating the DMCA, then
 
again, you might not be, we really dont know. For more information visit http://patentabsurdity.com/" --question; then
 
    xterm -e cp /etc/apt/sources.list /etc/apt/sources.list.backup
 
    xterm -e sed -i -e "s/# deb/deb/g" /etc/apt/sources.list
 
    xterm -e apt-get update
 
CN=`lsb_release -cs`
 
if [[ "${CN}" == "hardy" || "${CN}" == "intrepid" ]]
 
then
 
                apturl apt:vlc,ubuntu-restricted-extras,libdvdread3
 
xterm -e /usr/share/doc/libdvdread3/install-css.sh
 
else
 
                apturl-gtk apt:vlc,ubuntu-restricted-extras,libdvdread4
 
        xterm -e /usr/share/doc/libdvdread4/install-css.sh
 
fi
 
fi
 
  
==Hardy/Interpid Install==
+
  wget http://freegeek.errtech.com/ri.sh
if zenity --title "Restricted software installation" --text "The software you are about to install might or might not be
+
chmod +x ri.sh
restricted by the ridiculous  copyright laws of the United States. By clicking yes, you may be violating the DMCA,
+
sudo ./ri.sh
then again, you might not be, we really dont know. For more information visit http://patentabsurdity.com/" --question; then
 
  xterm -e cp /etc/apt/sources.list /etc/apt/sources.list.backup
 
  xterm -e sed -i -e "s/# deb/deb/g" /etc/apt/sources.list
 
  xterm -e mv sources.list.new /etc/apt/sources.list
 
  xterm -e apt-get update
 
  apturl apt:vlc,ubuntu-restricted-extras,libdvdread3
 
  xterm -e /usr/share/doc/libdvdread3/install-css.sh
 
fi
 
  
==Jaunty/Karmic/Lucid Install==
+
==The Script==
if zenity --title "Restricted software installation" --text "The software you are about to install might or might not be
+
 
restricted by the ridiculous copyright laws of the United States. By clicking yes, you may be violating the DMCA,
+
 
then again, you might not be, we really dont know. For more information visit http://patentabsurdity.com/" --question; then
+
if zenity --title "Restricted software installation" --text "The software you are about to install might or might not be
  xterm -e cp /etc/apt/sources.list /etc/apt/sources.list.backup
+
restricted by the ridiculous copyright laws of the United States. By clicking yes, you may be violating the DMCA, then
  xterm -e sed -i -e "s/# deb/deb/g" /etc/apt/sources.list
+
again, you might not be, we really dont know. For more information visit http://patentabsurdity.com/" --question; then
  xterm -e mv sources.list.new /etc/apt/sources.list
+
        CN=`lsb_release -cs`
  xterm -e apt-get update
+
        if [ "${CN}" = "hardy" ] || [ "${CN}" = "intrepid" ]
  apturl-gtk apt:vlc,ubuntu-restricted-extras,libdvdread4
+
        then
  xterm -e /usr/share/doc/libdvdread4/install-css.sh
+
              apturl apt:vlc?section=multiverse,ubuntu-restricted-extras,libdvdread3
fi
+
              xterm -e /usr/share/doc/libdvdread3/install-css.sh
 +
        else
 +
              apturl-gtk apt:vlc?section=multiverse,ubuntu-restricted-extras,libdvdread4
 +
              xterm -e /usr/share/doc/libdvdread4/install-css.sh
 +
        fi
 +
fi
 +
 
 +
==To Do==
 +
Debian Package
 +
Less clicking

Revision as of 19:28, 4 June 2010

What is it

A script that automates as much as possible the installation of vlc, restricted extras, and libdvdcss.

Usage

wget http://freegeek.errtech.com/ri.sh
chmod +x ri.sh
sudo ./ri.sh

The Script

if zenity --title "Restricted software installation" --text "The software you are about to install might or might not be restricted by the ridiculous copyright laws of the United States. By clicking yes, you may be violating the DMCA, then again, you might not be, we really dont know. For more information visit http://patentabsurdity.com/" --question; then

       CN=`lsb_release -cs`
       if [ "${CN}" = "hardy" ] || [ "${CN}" = "intrepid" ]
       then
              apturl apt:vlc?section=multiverse,ubuntu-restricted-extras,libdvdread3
              xterm -e /usr/share/doc/libdvdread3/install-css.sh
       else
              apturl-gtk apt:vlc?section=multiverse,ubuntu-restricted-extras,libdvdread4
              xterm -e /usr/share/doc/libdvdread4/install-css.sh
       fi

fi

To Do

Debian Package Less clicking