Sunday, March 13, 2011

Installation file for CB

#!/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'

#Download the uninstaller and put into $HOME/Documents/bin
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
Media_httpselftaughtg_ebygo
mv $HOME/Documents/bin/cheetahballs/9741050.png $HOME/Documents/bin/cheetahballs/balls_transparent.png
xcowsay 'Downloaded the Cheetah Balls icon'

#Download Sex Panther sound clip
mv $HOME/Documents/bin/cheetahballs/sex_panther.wav $HOME/Documents/bin/cheetahballs/sex_panther.wav 
xcowsay 'Downloaded the Sex Panther 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/
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
sudo ln -s $HOME/Documents/bin/cp.pl /usr/local/bin/cp.pl
xcowsay 'cp.pl is now in /usr/local/bin'

#Download the Cheetah Balls command
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
sudo mv $HOME/Documents/bin/cheetahballs/cheetahballs.desktop /usr/share/applications/cheetahballs.desktop

#Create a desktop icon
cp $HOME/Documents/bin/cheetahballs/cheetahballs.desktop $HOME/Desktop/cheetahballs.desktop

xcowsay 'Created the Cheetah Balls menu item and desktop icon'

xcowsay 'Cheetah Balls is ready to roar!'

No comments:

Post a Comment