Difference between revisions of "Restricted installer"

From FreekiWiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
==unified restricted installer script==
+
==What is it==
  if zenity --title "Restricted software installation" --text "The software you are about to install might or might not be restricted by the ridiculous  
+
A script that automates as much as possible the installation of vlc, restricted extras, and libdvdcss.
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
+
==debug==
    gksu "xterm -e cp /etc/apt/sources.list /etc/apt/sources.list.backup"
+
 
    gksu "xterm -e sed -i -e "s/# deb/deb/g" /etc/apt/sources.list"
+
Script works in hardy, but we are still having issues with lucid. Specifically enabling multiverse gives an error sometimes and sometimes it just fails to find the packages.
    gksu "xterm -e apt-get update"
+
 
CN=`lsb_release -cs`
+
==Usage==
if [[ "${CN}" == "hardy" || "${CN}" == "intrepid" ]]
+
 
then
+
wget http://freegeek.errtech.com/ri.sh
gksu "xterm -e apt-get -y install vlc ubuntu-restricted-extras libdvdread3"
+
chmod +x ri.sh
gksu "xterm -e /usr/share/doc/libdvdread3/install-css.sh"
+
sudo ./ri.sh
else
+
 
            gksu "xterm -e apt-get -y install vlc ubuntu-restricted-extras libdvdread4"
+
==The Script==
        gksu "xterm -e /usr/share/doc/libdvdread4/install-css.sh"
+
 
fi
+
 
 +
  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 apt:vlc?section=multiverse,ubuntu-restricted-extras,libdvdread4
 +
              xterm -e /usr/share/doc/libdvdread4/install-css.sh
 +
        fi
 
  fi
 
  fi
 +
 +
==To Do==
 +
Debian Package
 +
Less clicking

Latest revision as of 18:32, 5 June 2010

What is it

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

debug

Script works in hardy, but we are still having issues with lucid. Specifically enabling multiverse gives an error sometimes and sometimes it just fails to find the packages.

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 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