#!/bin/bash
pog=`zenity --title="P.A.U" --text="Seleccione los programas que desee instalar" --width="1000" --height="900" \
--list --column="Select" --column="Opciones" \
--checklist TRUE "Wine" TRUE "Gimp" \
TRUE "Pidgin" TRUE "Chromium" TRUE "Compizfusion" TRUE "AWN" TRUE "Docky" TRUE "GnomeDo" TRUE "Inkscape" \
TRUE "Eclipse" TRUE "Netbeans" TRUE "Vim" TRUE "Skype" TRUE "K3B" TRUE "Mozilla Thunderbird" TRUE "Amule" \
TRUE "Tucan Manager" TRUE "Vlc" TRUE "Comix" FALSE "K3b.Con las librerias de KDE" TRUE "JDownloader" \
TRUE "Amarok" TRUE "Atool" TRUE "Guake" TRUE "Emesene" TRUE "Gparted" TRUE "Google Chrome" TRUE "Virtualbox" \
TRUE "Hoz" TRUE "Dvd::rip" TRUE "Avidemux" FALSE "Yakuake.Para KDE" TRUE "Alltray"`
if [ $? -eq 0 ]
then
for i in $pog ; do
echo ""
echo "Has elegido la opcion $i"
if [ "$i" = "Wine" ]
then
echo "chekpoint"
sudo apt-get -y install wine
clear
fi
if [ "$i" = "Gimp" ]
then
echo "checkpoint"
sudo sh -c “echo "deb http://ppa.launchpad.net/matthaeus123/mrw-gimp-svn/ubuntu lucid main" >> /etc/apt/sources.list” && sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 405A15CB && sudo apt-get update && sudo apt-get -y install gimp
clear
fi
if [ $i = "Pidgin" ]
then
sudo add-apt-repository ppa:pidgin-developers && sudo apt-get update && sudo aptitude -y install pidgin
clear
fi
if [ $i = "Chromium" ]
then
sudo add-apt-repository ppa:chromium-daily/ppa && sudo apt-get update && sudo apt-get -y install chromium-browser chromium-browser-l10n
clear
fi
if [ $i = "Compizfusion" ]
then
sudo add-apt-repository ppa:compiz && sudo apt-get update && sudo aptitude -y install simple-ccsm compizconfig-settings-manager emerald && install fusion-icon
clear
fi
if [ $i = "AWN" ]
then
sudo apt-get update && sudo apt-get -y install avant-window-navigator awn-extras-applets
clear
fi
if [ $i = "Docky" ]
then
sudo add-apt-repository ppa:ricotz/testing && sudo apt-get update && sudo apt-get -y install docky
clear
fi
if [ $i = "GnomeDo" ]
then
sudo add-apt-repository ppa:do-core && sudo apt-get update && sudo apt-get -y install gnome-do gnome-do-docklets gnome-do-plugins
clear
fi
if [ $i = "Inkscape" ]
then
sudo aptitude -y install inkscape
clear
fi
if [ $i = "Eclipse" ]
then
sudo aptitude -y install eclipse
clear
fi
if [ $i = "Netbeans" ]
then
sudo aptitude -y install netbeans
clear
fi
if [ $i = "Vim" ]
then
sudo aptitude -y install vim
clear
fi
if [ $i = "Skype" ]
then
cd /tmp
wget http://download.skype.com/linux/skype-ubuntu-intrepid_2.1.0.81-1_${arch}.deb
sudo dpkg -i --force-all skype-ubuntu-intrepid_2.1.0.81-1_${arch}.deb
sudo apt-get -y --force-yes install -f -y
rm skype-ubuntu-intrepid_2.1.0.81-1_${arch}.deb
clear
fi
if [ $i = "K3B" ]
then
sudo aptitude -y install k3b
clear
fi
if [ $i = "Mozilla Thunderbird" ]
then
sudo aptitude -y install mozilla-thunderbird thunderbird-locale-es-es
clear
fi
if [ $i = "Amule" ]
then
sudo aptitude -y install amule
clear
fi
if [ $i = "Tucan Manager" ]
then
sudo aptitude -y install tucan
clear
fi
if [ $i = "Vlc" ]
then
sudo add-apt-repository ppa:c-korn && sudo apt-get update && sudo apt-get -y install vlc
clear
fi
if [ $i = "Comix" ]
then
sudo aptitude -y install comix
clear
fi
if [ $i = "K3b.Con las librerias de KDE" ]
then
sudo aptitude install k3b && sudo aptitude -y install kde-i18n-es k3b-i18n
clear
elif [ $i = "JDownloader" ]
then
wget http://212.117.163.148/jd.sh
chmod +x jd.sh
sh jd.sh
java -jar ~/.jd/JDownloader.jar
clear
fi
if [ $i = "Amarok" ]
then
sudo add-apt-repository ppa:kubuntu-ppa/backports && sudo apt-get update && sudo apt-get -y install amarok
clear
fi
if [ $i = "Atool" ]
then
sudo aptitude -y install atool
clear
fi
if [ $i = "Guake" ]
then
sudo apt-get -y install guake
clear
fi
if [ $i = "Emesene" ]
then
sudo apt-get -y install emesene
clear
fi
if [ $i = "Gparted" ]
then
sudo aptitude -y install gparted
clear
fi
if [ $i = "Google Chrome" ]
then
sudo add-apt-key ppa:chromium-daily/ppa && sudo apt-get update && sudo apt-get -y install chromium-browser
clear
fi
if [ $i = "Virtualbox" ]
then
cd /etc/apt/
echo "deb http://download.virtualbox.org/virtualbox/debian karmic non-free" >> sources.list
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
if [ "i686" = `uname -m` ]
then
cd /home/$USER/
wget http://download.virtualbox.org/virtualbox/3.1.6/virtualbox-3.1_3.1.6-59338_Ubuntu_karmic_${arch}.deb
dpkg -i --force-all virtualbox-3.1_3.1.6-59338_Ubuntu_karmic_${arch}.deb
sudo apt-get install -f -y
rm virtualbox-3.1_3.1.6-59338_Ubuntu_karmic_${arch}.deb
else
cd /home/$USER/
wget http://download.virtualbox.org/virtualbox/3.1.6/virtualbox-3.1_3.1.6-59338_Ubuntu_karmic_${arch}.deb
dpkg -i --force-all virtualbox-3.1_3.1.6-59338_Ubuntu_karmic_${arch}.deb
sudo apt-get install -f -y
rm virtualbox-3.1_3.1.6-59338_Ubuntu_karmic_${arch}.deb
fi
fi
if [ $i = "Hoz" ]
then
sudo apt-get -y install hoz-gui
fi
if [ $i = "Dvd::rip" ]
then
sudo aptitude -y install transcode && sudo aptitude -y install dvdrip
fi
if [ $i = "Avidemux" ]
then
sudo aptitude -y install avidemux
fi
if [ $i = "Yakuake.Para KDE" ]
then
sudo aptitude -y install yakuake
fi
if [ $i = "Alltray" ]
then
sudo aptitude -y install alltray
fi
done
fi