#!/bin/bash # To install this file: download it by saving it to your desktop, or wherever. # Then, right-click the file, click Properties, and choose the Permissions tab. # Check off "Allow Executing File as Program". # Now, just run the file in terminal. # For example: # cd ~/Desktop # ./perfecthardy # Now for the code. Don't worry about any of this stuff. It's just nonsense. ;) echo echo The Perfect Hardy \(Heron, That is\) - THE SCRIPT echo SCRIPT VERSION 1.2 / Document Version 1.6 with Enhansions echo By Robbie Ferguson \(www.Category5.TV\) echo This script is based on http://www.category5.tv/content/view/77/38/ echo echo This script requires super-user access to continue. echo Checking for super-user access... #sleep 5 sudo echo Access Granted. echo echo I\'ll ask you a bunch of questions, and then get right to work. echo # Ask all the questions... read -p "Install Multimedia Codecs and Restricted Extras? (Y/N) " if [ "$REPLY" = "y" ] ; then MULTIMEDIA="1" fi if [ "$REPLY" = "Y" ] ; then MULTIMEDIA="1" fi echo read -p "Does your computer have a DVD player? (Y/N) " if [ "$REPLY" = "y" ] ; then DVD="1" fi if [ "$REPLY" = "Y" ] ; then DVD="1" fi echo read -p "Do you want spam filters for Evolution? (Y/N) " if [ "$REPLY" = "y" ] ; then SPAM="1" fi if [ "$REPLY" = "Y" ] ; then SPAM="1" fi echo echo I can install a huge number of fonts which you can use in echo your word processor, or even in programs like The GIMP. read -p "Would you like a bunch of new fonts? (Y/N) " if [ "$REPLY" = "y" ] ; then FONTS="1" fi if [ "$REPLY" = "Y" ] ; then FONTS="1" fi echo echo wine is an application that allows you to run some echo Windows programs directly in Linux \(.exe files\). read -p "Should I install this for you? (Y/N) " if [ "$REPLY" = "y" ] ; then WINE="1" fi if [ "$REPLY" = "Y" ] ; then WINE="1" fi echo read -p "Should I install Skype for you? (Y/N) " if [ "$REPLY" = "y" ] ; then SKYPE="1" fi if [ "$REPLY" = "Y" ] ; then SKYPE="1" fi echo echo "I can make it so you can use 7z, ZIP, Zip64, CAB, RAR, ARJ," echo "GZIP, BZIP2, TAR, CPIO, RPM, ISO and DEB archives in file-roller." read -p "Do you want me to do this? (Y/N) " if [ "$REPLY" = "y" ] ; then COMPRESSION="1" fi if [ "$REPLY" = "Y" ] ; then COMPRESSION="1" fi echo echo This script does not come with or even imply any kind of warranty. echo If your system breaks, you take full responsibility. read -p "I am about to modify your system. Are you sure this is okay? (Y/N) " if [ "$REPLY" = "y" ] ; then GO="1" fi if [ "$REPLY" = "Y" ] ; then GO="1" fi if [ "$REPLY" = "N" ] ; then echo Exiting. fi if [ "$REPLY" = "n" ] ; then echo Exiting. fi echo # End of questions # Only proceed if the user accepted the brief "you break it, it's your fault" disclaimer if [ "$GO" = "1" ]; then cd ~ if [ ! -e ".perfecthardy/datafile16" ] # Check if file exists. then echo This is apparently the first time you have run this script. echo echo Backing up your APT sources.list file to /etc/apt/sources.list.backup... sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup echo Done. echo echo Creating your APT entries now. mkdir ~/.perfecthardy echo "Do not delete this file." >> ~/.perfecthardy/datafile16 echo "" >> ~/.perfecthardy/sources16 echo "# Added by The Perfect Hardy script - http://www.category5.tv/content/view/77/38" >> ~/.perfecthardy/sources16 echo "deb http://ca.archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse" >> ~/.perfecthardy/sources16 echo "deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy main restricted" >> ~/.perfecthardy/sources16 echo "deb http://packages.medibuntu.org/ hardy free non-free" >> ~/.perfecthardy/sources16 echo "deb http://ppa.launchpad.net/reacocard-awn/ubuntu hardy main" >> ~/.perfecthardy/sources16 echo "deb-src http://ppa.launchpad.net/reacocard-awn/ubuntu hardy main" >> ~/.perfecthardy/sources16 cat ~/.perfecthardy/sources16 | sudo tee -a /etc/apt/sources.list echo Done. echo fi echo Retrieving GPG Signatures... wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - echo Done. echo echo Cleaning up apt... sudo apt-get clean echo Done. echo echo Updating apt... sudo apt-get -qq update echo Done. echo #Run the installers if [ "$MULTIMEDIA" = "1" ]; then echo Installing multimedia codecs... sudo apt-get -y -qq -f -m install ubuntu-restricted-extras sudo apt-get -y -qq -f -m install gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg libxine1-ffmpeg libdvdread3 echo Done. echo fi if [ "$FONTS" = "1" ]; then echo Installing roughly a billion fonts... sudo apt-get -y -qq -f -m install msttcorefonts echo echo NOTE: That should be the last EULA you\'ll have to deal with. echo You can go get a coffee now while I finish up. echo It\'s going to take a while. echo echo Continuing with font installations... sudo apt-get -y -qq -f -m install ttf-gentium ttf-dustin ttf-georgewilliams ttf-sjfonts sun-java6-fonts ttf-larabie-deco ttf-larabie-straight ttf-larabie-uncommon ttf-linux-libertine ttf-mgopen ttf-sil-charis ttf-sil-doulos ttf-ubuntu-title gsfonts-x11 ttf-fifthhorseman-dkg-handwriting ttf-alee ttf-alee ttf-ancient-fonts ttf-arhangai ttf-arphic-bkai00mp ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp ttf-arphic-gkai00mp ttf-arphic-ukai ttf-atarismall ttf-baekmuk ttf-bengali-fonts ttf-beteckna ttf-bpg-georgian-fonts ttf-breip ttf-devanagari-fonts ttf-dzongkha ttf-ecolier-court ttf-essays1743 ttf-f500 ttf-farsiweb ttf-freefarsi ttf-gfs-artemisia ttf-gfs-bodoni-classic ttf-gfs-complutum ttf-gfs-didot-classic ttf-gfs-gazis ttf-gfs-neohellenic ttf-gfs-solomos ttf-gfs-theokritos ttf-gujarati-fonts ttf-inconsolata ttf-indic-fonts ttf-isabella ttf-junicode ttf-kacst ttf-kannada-fonts ttf-khmeros ttf-kiloji ttf-kochi-gothic-naga10 ttf-kochi-mincho-naga10 ttf-konatu ttf-liberation ttf-manchufont ttf-marvosym ttf-mikachan ttf-mona ttf-mph-2b-damase ttf-nafees ttf-ocr-a ttf-oflb-euterpe ttf-oriya-fonts ttf-paktype ttf-punjabi-fonts ttf-radisnoir ttf-sazanami-gothic ttf-sazanami-mincho ttf-sil-abyssinica ttf-sil-andika ttf-sil-ezra ttf-sil-padauk ttf-sil-scheherazade ttf-sil-yi ttf-staypuft ttf-summersby ttf-tamil-fonts ttf-tmuni ttf-tuffy ttf-unfonts ttf-unfonts-extra ttf-uralic ttf-vlgothic ttf-wqy-zenhei ttf-xfree86-nonfree ttf-xfree86-nonfree-syriac echo Done. echo fi if [ "$DVD" = "1" ]; then echo Installing DVD decoders and support files... sudo apt-get -y -qq -f -m install libdvdcss2 libdvdread3 ffmpeg w32codecs echo Done. echo fi if [ "$COMPRESSION" = "1" ]; then echo Installing support for multiple archive types in file-roller... sudo apt-get -y -qq -f -m install lzma unrar rar p7zip p7zip-full p7zip-rar echo Done. echo fi if [ "$WINE" = "1" ]; then echo Installing wine... sudo apt-get -y -qq -f -m install wine echo Done. echo fi if [ "$SKYPE" = "1" ]; then echo Installing Skype... sudo apt-get -y -qq -f -m install skype echo Done. echo fi if [ "$SPAM" = "1" ]; then echo Installing SPAM filters... sudo apt-get -y -qq -f -m install spamassassin echo Done. echo fi echo Installing support for XDMCP... sudo apt-get -y -qq -f -m install xnest echo Done. echo echo All done. Enjoy The Perfect Hardy! echo Visit www.Category5.TV for free Linux support. fi