#!/bin/bash
#
#cheetahballs_installer.sh
#
#Created by A.J. Garber of Clockwork PC, http://www.clockworkpc.com.au
#
#Released under GPLv3 by Clockwork PC
#
#Please use it, modify it, share it, and spread the love.
#How do I check whether xcowsay is already installed?
#Install xcowsay
echo "First we need to install xcowsay"
sudo apt-get install xcowsay &&
#Create a bin directory in Documents
mkdir $HOME/Documents/bin
xcowsay 'Creating $HOME/Documents/bin'
#Create a Cheetah_balls directory in Videos
mkdir $HOME/Videos/Cheetah_balls
xcowsay 'Creating $HOME/Videos/Cheetah_balls'
#Download the uninstaller and put into $HOME/Documents/bin
cd $HOME/Documents/bin && wget http://selftaughtgeek.weebly.com/uploads/4/1/5/9/4159515/cheetahballs_uninstall.sh
chmod +x $HOME/Documents/bin/cheetahballs_uninstall.sh
#Create a folder for Cheetah Balls
mkdir $HOME/Documents/bin/cheetahballs
xcowsay 'Creating $HOME/Documents/bin/cheetahballs'
#Download the Cheetah Balls image into the Cheetah Balls folder
cd $HOME/Documents/bin/cheetahballs && wget
xcowsay 'Downloaded the Cheetah Balls icon'
#Download Sex Panther sound clip
cd $HOME/Documents/bin/cheetahballs/ && wget http://selftaughtgeek.weebly.com/uploads/4/1/5/9/4159515/sex_panther.wav
cd $HOME/Documents/bin/cheetahballs/ && wget http://selftaughtgeek.weebly.com/uploads/4/1/5/9/4159515/twinkles.wav
xcowsay 'Downloaded the Sex Panther and Twinkles sound clip'
#Download this Perl Script to extend the functionality of cp
#Thanks to Gwatt for this Perl script http://www.dreamincode.net/forums/user/7632-gwatt/
cd $HOME/Documents/bin/ && wget http://selftaughtgeek.weebly.com/uploads/4/1/5/9/4159515/cp.pl
xcowsay 'Downloading a Perl script to extend the functionality of the cp command. Thanks to Gwatt for the script'
#Make it executable and add a symbolic link to it in /usr/local/bin
chmod +x $HOME/Documents/bin/cp.pl
xcowsay 'cp.pl is now in /usr/local/bin'
#Download the Cheetah Balls command
cd $HOME/Documents/bin/ && wget http://selftaughtgeek.weebly.com/uploads/4/1/5/9/4159515/cheetahballs.sh
chmod +x $HOME/Documents/bin/cheetahballs.sh
sudo ln -s $HOME/Documents/bin/cheetahballs.sh /usr/local/bin/cheetahballs.sh
xcowsay 'cheetahballs.sh in now in /usr/local/bin'
#Download the Cheetah Balls Desktop File
cd /usr/share/applications && sudo wget http://selftaughtgeek.weebly.com/uploads/4/1/5/9/4159515/cheetahballs.desktop
#Create a desktop icon
cp /usr/share/applications/cheetahballs.desktop $HOME/Desktop/cheetahballs.desktop
xcowsay 'Created the Cheetah Balls menu item and desktop icon'
mplayer $HOME/Documents/bin/cheetahballs/twinkles.wav & xcowsay 'Cheetah Balls is ready to roar!'
No comments:
Post a Comment