#!/bin/bash
# Supersize Fedora for Fedora 11 (please adjust for other versions of Fedora)
# this scripts needs root rights, because it installs programs
# made by suvi.org for the Linux Community
echo "Please run this skript as root user!"
echo "Please answer popup question!"
zenity --question --title "Supersize Fedora11! by suvi.org" --text "Do you want to install a lot of cool programs?"
if [ $? = 1 ];then
	zenity --info --title "goodby" --text "Well then far well"
	exit 1
fi
echo "Installing programs"

#////////////////////////////////
#adding livna repository to yum FEDORA
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

#////////////////
#NVIDIA,ATI DRIVER - please answer correctly
echo "Please answer popup for display drivers!"
SELECTION=`zenity --list --title "Proprietary Graphiccard Driver?" --column "vendor" NONE ATI NVIDIA`
if [ -z "$SELECTION" ];then
	echo no graphiccard driver will be installed
elif [ "$SELECTION" = ATI ];then
	yum -y install kmod-fglrx
elif [ "$SELECTION" = NVIDIA ];then
	yum -y install kmod-nvidia
fi

# use this command to turn off nvidia driver later
#  /usr/sbin/nvidia-config-display disable

#//Compiz the 3D Windows Manager
#//Compiz fusion ! might need uncomment of gnome-fusion
yum -y install gnome-compiz-manager
#yum install compiz-fusion compiz-fusion-gnome

#//MAC OS-X dock like bar, to show lamer friends, who don't use bash
#yum -y install avant-window-navigator

#///////////////
#//APPLICATIONS

#I use rsyncd for sync/backup to a usb drive, unison would be for more detailed file comparisment
#yum install unison

#//Enhancements for Nautlius File Manager
yum -y install nautilus-actions nautilus-image-converter


#//Mozilla Thunderbird Email, Sunbird Calendar or Thunderbird-Lightning
yum -y install thunderbird
yum -y install thunderbird-lightning
#yum -y install sunbird

#//Adobe Flash Plugin, needs a firefox restart under Fedora
rpm -Uvh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
yum -y install flash-plugin alsa-plugins-pulseaudio libcurl
#//Adobe PDF Reader
# download from http://www.adobe.com/products/acrobat/readstep2.html

#//installing movie players
yum -y install mplayer gnome-mplayer
yum -y install vlc
#//mplayerplug-in should work on trailers.apple.com
yum -y install gecko-mediaplayer

#//Installing soundplayer audacious , sound editor audacity
yum -y install audacious audacious-plugins-nonfree-mp3
#yum -y install audacious-plugins-nonfree-wma.i386 
yum -y install audacity-nonfree

#//Text Editor bluefish
yum -y install bluefish

#//Skype online chat (first dependencies) (-fc7 is correct for fedora 10 as well)
yum -y install nas qt4 qt4-x11 redhat-rpm-config
rpm -Uvh http://www.skype.com/go/getskype-linux-fc7


#Seconds way: skype.repo 
#//[skype]
#// name=Skype Repository
#// baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
#// gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc
#// gpgcheck=0
#// enabled=1
#//yum -c install skype

#//Arial, Times New, Veranda Fonts
#wget http://www.mjmwired.net/resources/files/msttcorefonts-2.0-1.noarch.rpm
#rpm -ivh msttcorefonts-2.0-1.noarch.rpm

#//FTP Client filezilla
yum -y install filezilla

#//FOR LAPTOP USERS
#yum -y install powertop

#//Graphic Tools
yum -y install inkscape


#//Azureus - nice bittorrent app with great movie preview
yum -y install azureus

#//Elisa Media Center
yum -y install elisa

#//////////////////
#//DEVELOPMENT LAMP

#//MySQL and PHP
yum -y install mysql-server mysql-gui-tools
yum -y install php php-mysql php-gd
yum -y install phpMyAdmin
#// start or restart apache after this
/etc/init.d/httpd restart
#// for zendframework please go to http://framework.zend.com/download (no official yum repo yet)

#wine emulates windows win32 library
yum -y install wine cabextract

#//CD burning, burn it baby, included in Fedora 11
# yum -y install brasero

#///////////////
#//Games
#yum -y install xrick maniadrive supertux supertuxkart

#/////////////
#//COMMAND LINE TOOLS and other TOOLS
yum -y install unrar
yum -y install htop

#//For formating and partionating disks, better use mkfs.ext3 or parted !
#yum -y install gparted

#//////////////
#//Printer  HP, HP printers should work with fedora 11
#yum -y install foo2hp

#////////////////
#GNOME settings

#//change Panels to light blue colors and use transparence
#//someone know how to script this?

#////////////
#Writing comments for user
echo All programms installed.
echo Thank you for using suvi.org Fedora Supersize skript!

