Difference between revisions of "Restricted installer"

From FreekiWiki
Jump to navigation Jump to search
Line 1: Line 1:
==unified restricted installer script==
+
Script must be run as root.
  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  
+
==unified restricted installer script [not working]==
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
     gksu "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
     gksu "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
     gksu "xterm -e apt-get update"
+
     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`
 
  CN=`lsb_release -cs`
 
  if [[ "${CN}" == "hardy" || "${CN}" == "intrepid" ]]
 
  if [[ "${CN}" == "hardy" || "${CN}" == "intrepid" ]]
 
  then
 
  then
gksu "xterm -e apt-get -y install vlc ubuntu-restricted-extras libdvdread3"
+
                apturl apt:vlc,ubuntu-restricted-extras,libdvdread3
  gksu "xterm -e /usr/share/doc/libdvdread3/install-css.sh"
+
  xterm -e /usr/share/doc/libdvdread3/install-css.sh
 
  else
 
  else
            gksu "xterm -e apt-get -y install vlc ubuntu-restricted-extras libdvdread4"
+
                apturl-gtk apt:vlc,ubuntu-restricted-extras,libdvdread4
          gksu "xterm -e /usr/share/doc/libdvdread4/install-css.sh"
+
          xterm -e /usr/share/doc/libdvdread4/install-css.sh
 
  fi
 
  fi
 +
fi
 +
 +
==Hardy/Interpid Install==
 +
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 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==
 +
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 mv sources.list.new /etc/apt/sources.list
 +
  xterm -e apt-get update
 +
  apturl-gtk apt:vlc,ubuntu-restricted-extras,libdvdread4
 +
  xterm -e /usr/share/doc/libdvdread4/install-css.sh
 
  fi
 
  fi

Revision as of 17:03, 4 June 2010

Script must be run as root.

unified restricted installer script [not working]

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

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

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 mv sources.list.new /etc/apt/sources.list
  xterm -e apt-get update
  apturl-gtk apt:vlc,ubuntu-restricted-extras,libdvdread4
  xterm -e /usr/share/doc/libdvdread4/install-css.sh
fi