#!/bin/sh
#
# Install a series of packages in Ubuntu 9.10 for 32 bit only
# You will need to run this script as root with 755 permission
# This script has been tested with Karmic Koala ONLY, I cannot guarantee it will work with other distros
#
# Authored by Bob Nelson  admin@stchman.com
#
# All of the apt-get installs will use the -y switch to assume yes to all prompts.
# All dependencies will be installed as well

script_name="karmic_script.sh"

# Script must run as root 
if [ $USER != "root" ]; then
	echo "You need to run this script as root."
	echo "Use 'sudo ./$script_name' then enter your password when prompted."
	exit 1
fi

# Update the package manager
sudo apt-get update

# Install nautilus-open-terminal - open a  terminal in a specific folder in nautilus 
sudo apt-get -y install nautilus-open-terminal

# Install build-essential - C/C++ headers
sudo apt-get -y install build-essential

# Install alien - convert packages to another package, i.e. .rpm to .deb
sudo apt-get -y install alien 

# Install gtkorphan - clean up unused orphaned packages
sudo apt-get -y install gtkorphan

# Install hex editor
sudo apt-get -y install ghex

# Install Gnome hearts
sudo apt-get -y install gnome-hearts

# Install gstreamer plugins for audio/video playback, mp3, mpeg2, mpeg4, etc.
sudo apt-get -y install gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse

# Install VLC media player and the mozilla plugin
sudo apt-get -y install vlc mozilla-plugin-vlc

# Install WINE, WINE is now in the hardy repositories
# install wine and cabextract packages
sudo apt-get -y install wine cabextract

# Add Medibuntu to your software sources
sudo wget http://www.medibuntu.org/sources.list.d/karmic.list -O /etc/apt/sources.list.d/medibuntu.list

# Add the Medibuntu gpg key
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update

# Update the software list
sudo apt-get update

# install the CSS decryption key from Medibuntu
sudo apt-get -y install libdvdcss2

# Install Google Earth
sudo apt-get -y install googleearth

# Install K3B CD/DVD burning program and the extracodecs plugin
sudo apt-get -y install k3b libk3b6-extracodecs

# Install K9Copy for ripping encrypted DVDs
sudo apt-get -y install k9copy

# Install ntfs-config and ntfs-3g, this allows reading and writing to NTFS partitions
# ntfs-3g is installed by default in Hardy
sudo apt-get -y install ntfs-config

# Install Gnome Partition Manager
sudo apt-get -y install gparted

# Install Graphical FTP program gFTP
sudo apt-get -y install gftp

# Install the Microsoft core fonts (i.e. Arial, Times New Roman, etc.)
sudo apt-get -y install msttcorefonts

# Install SUN Java 6, JRE, JDK, fonts, and browser plugin
sudo apt-get -y install sun-java6-bin sun-java6-fonts sun-java6-jdk sun-java6-jre sun-java6-plugin

# Install the rar and unrar plugin to allow Archive Manager handle .rar files
sudo apt-get -y install rar unrar

# Install 7zip plugin to allow Archive Manager to handle .7z compression
sudo apt-get -y install p7zip p7zip-full

# Install MP3 and OGG ID3 tag editor
sudo apt-get -y install tagtool

# Install Gwenview Image viewer
sudo apt-get -y install gwenview

# Install glipper clipboard manager
sudo apt-get -y install glipper

# Install Bluefish Programmers/HTML editor
sudo apt-get -y install bluefish

# Install Kompozer WYSIWYG HTML editor
sudo apt-get -y install kompozer

# Install Sysinfo system notification
sudo apt-get -y install sysinfo

# Install mail notification
sudo apt-get -y install mail-notification

# Install gDesklets to customize your desktop
sudo apt-get -y install gdesklets

# Install Thunderbird 2 Email client as this is new for Karmic
sudo apt-get -y install thunderbird

# Install Splash Screen editor
sudo apt-get -y install gnome-splashscreen-manager

# Install StartUpManager GUI package
sudo apt-get -y install startupmanager

# Install Audacious media player
sudo apt-get -y install audacious

# Install KDE tools kcontrol and khelpcenter for KDE 3.5
sudo apt-get -y install kcontrol khelpcenter

# Since Compiz is installed by default install a settings manager
sudo apt-get -y install compizconfig-settings-manager

# Install Geany
sudo apt-get -y install geany

# Install Admin Network Manager
sudo apt-get -y install gnome-network-admin

# Install Spamassasin
sudo apt-get -y install spamassassin

# Install Pan Newsreader
sudo apt-get -y install pan

# Install Pidgin IM Client
sudo apt-get -y install pidgin

# Install gThumb Image Viewer
sudo apt-get -y install gthumb

# Install Cheese Webcam Software
sudo apt-get -y install cheese

# Install hplip GUI for HP printers
sudo apt-get -y install hplip-gui

# Install Sound Juicer for ripping CDs
sudo apt-get -y install sound-juicer

###################################################
# Install the Tahoma fonts to the msttcorefonts folder
# Since Tahoma does not come with msttcorefont, we will install them manually
# Change to the users home folder
cd ~

# get the tahoma.zip file from www.stchman.com
wget http://www.stchman.com/tools/MS_fonts/tahoma.zip

# extract the .zip achive to the msttcorefonts folder
sudo unzip -d /usr/share/fonts/truetype/msttcorefonts ~/tahoma.zip

# update the font cache
sudo fc-cache -f -v

# remove the .zip file as it is no longer needed
rm -r -f ~/tahoma.zip
###################################################


