Muudatused
Allikas: Pingviini viki
Version 0.4.9.3 ja hakkame parandama
# after installing Ubuntu 10.04 Lucid Lynx 32bit and 64bit.
#
# version 0.4.29.23
#
# The script comes with no warranty. The author is not responsible if
##
## Copyright (C) 2010 Alin Andrei, http://www.webupd8.org
##
## This program is free software: you can redistribute it and/or modify
#####################
#Options explainations:
#Move window buttons to the right (Karmic karmic style) - will move the metacity window buttons to the right side, in the following order: Minimize, Maximize, Close
#Change Update Manager behavior to the one in Jaunty - Ubuntu 9.04 (and newer) introduced a change to the handling of package updates, launching update-manager directly instead of displaying a notification icon in the GNOME panel. Users will still be notified of security updates on a daily basis, but for updates that are not security-related, users will only be prompted once a week. This tweak makes the update-manager not pop-up, but always show the updates in the notification area.
#Remove mounted drive icons from desktop - removes ntfs and usb drives from the desktop; usually when mounting a drive it shows up on the desktop
#Enable the icons in menus and buttons - the icons in menus and buttons were removed in Gnome 2.28 (starting with Ubuntu Karmic). However, up until Lucid, users were able to enable these from the Appearence dialog preferences. This is no longer possible so use this tweak instead.
#Disable the GDM login user list - in Lucid, the users are displayed in the GDM login screen (which IMO is a security concern). This fix will make no user show up in this list, and for logging in you must enter your username and password manually.
#Change Gnome Calendar first day of the week from Sunday to Monday tweak - Gnome Calendar comes with Sunday as the first day of the weekif the user has en_US language and there's no GUI way to change this. This tweak fixes this for non-US citizens.using en_US Ubuntu (only use for en_US Ubuntu!)
#Remove the ubuntu-docs package (frees up 252MB): removed the ubuntu-docs package to free up 252 MB of disk space.
#Install and configure sharp fonts: info about this feature, here: http://www.webupd8.org/2009/09/ubuntu-debian-script-to-install-sharp.html
#Fix 'apt-get update' delay for Google Chrome repository - when downloading Google Chrome .deb, it automatically adds the Google Chrome repository. This repository has a known issue which cause "sudo apt-get update" to take a very long time to complete. This tweak fixes this issue.
#Add additional repositories (GetDeb, Medibuntu etc.) - Adds the following repositories: Getdeb, Medibuntu, Ubuntu universe and multiverse and lucid Lucid partner.
########
#The second dialog - install packages.
ROOT_UID=0
#uncomment the following line if the script doesn't run with your language#export LC_CTYPE="en_US.UTF-8" #running gconf-tool2 with "sudo" fails to set the options for the current user so this tweak makes it possible to run sudo for gconf-tool2 and change the setting for the current user, not the root userON_USER=$(echo ~ | awk -F'/' '{ print $1 $2 $3 }' | sed 's/home//g')export $(grep -v "^#" ~/.dbus/session-bus/`cat /var/lib/dbus/machine-id`-0)if sudo -u $ON_USER test -z "$DBUS_SESSION_BUS_ADDRESS" ; then eval `sudo -u $ON_USER dbus-launch --sh-syntax --exit-with-session`fi#turn these on for debugging:#echo $ON_USER#echo $DBUS_SESSION#echo $DBUS_SESSION_BUS_ADDRESS#echo $DBUS_SESSION_BUS_WINDOWID#echo $DBUS_SESSION_BUS_PID ##start language implementationlangselect=`/usr/bin/zenity --title="Please select a language" --width=300 --height=200 \ --text="Select:" \ --list --column="Selected" --column="Language" \ --radiolist TRUE English FALSE Arabic FALSE Asturian FALSE "Bahasa Indonesia" FALSE Catalan FALSE "Simplified Chinese" False "Traditional Chinese" FALSE Czech FALSE Dutch FALSE Estonian FALSE French FALSE Galician FALSE German FALSE Italian FALSE Japanese FALSE Korean FALSE Malaysian FALSE Polish FALSE "Portuguese (BR)" FALSE "Portuguese (PT)" FALSE Romanian FALSE Slovak FALSE Slovenian FALSE Spanish FALSE Swedish FALSE Turkish FALSE Urdu FALSE Vietnamese` if [ $? -eq 0 ];then IFS="|" for langSselect in $langselect do if [ "$langSselect" = "English" ]; then YOURLANG="languages/en.pot" elif [ "$langSselect" = "Arabic" ]; then YOURLANG="languages/ar.pot" elif [ "$langSselect" = "Bahasa Indonesia" ]; then YOURLANG="languages/id.pot" elif [ "$langSselect" = "Asturian" ]; then YOURLANG="languages/ast.pot" elif [ "$langSselect" = "Czech" ]; then YOURLANG="languages/cz.pot" elif [ "$langSselect" = "Catalan" ]; then YOURLANG="languages/cat.pot" elif [ "$langSselect" = "Simplified Chinese" ]; then YOURLANG="languages/zh_CN.pot" elif [ "$langSselect" = "Traditional Chinese" ]; then YOURLANG="languages/zh_TW.pot" elif [ "$langSselect" = "Dutch" ]; then YOURLANG="languages/nl.pot" elif [ "$langSselect" = "Estonian" ]; then YOURLANG="languages/et.pot" elif [ "$langSselect" = "French" ]; then YOURLANG="languages/fr.pot" elif [ "$langSselect" = "Galician" ]; then YOURLANG="languages/ga.pot" elif [ "$langSselect" = "German" ]; then YOURLANG="languages/de.pot" elif [ "$langSselect" = "Italian" ]; then YOURLANG="languages/it.pot" elif [ "$langSselect" = "Japanese" ]; then YOURLANG="languages/jp.pot" elif [ "$langSselect" = "Korean" ]; then YOURLANG="languages/ko.pot" elif [ "$langSselect" = "Malaysian" ]; then YOURLANG="languages/ms.pot" elif [ "$langSselect" = "Polish" ]; then YOURLANG="languages/pl.pot" elif [ "$langSselect" = "Portuguese (BR)" ]; then YOURLANG="languages/pt_BR.pot" elif [ "$langSselect" = "Portuguese (PT)" ]; then YOURLANG="languages/pt_PT.pot" elif [ "$langSselect" = "Slovak" ]; then YOURLANG="languages/sk.pot" elif [ "$langSselect" = "Slovenian" ]; then YOURLANG="languages/sl.pot" elif [ "$langSselect" = "Romanian" ]; then YOURLANG="languages/ro.pot" elif [ "$langSselect" = "Spanish" ]; then YOURLANG="languages/es.pot" elif [ "$langSselect" = "Swedish" ]; then YOURLANG="languages/sv.pot" elif [ "$langSselect" = "Turkish" ]; then YOURLANG="languages/tr.pot" elif [ "$langSselect" = "Urdu" ]; then YOURLANG="languages/ur.pot" elif [ "$langSselect" = "Vietnamese" ]; then YOURLANG="languages/vi.pot" fi done IFS=""else echo cancel selected exitfi LANGFILE=$(cat $YOURLANG) n=1while read curline; doexport WORD$n="$curline" #> /dev/null 2>&1let n=n+1done < $YOURLANG #debugging#echo "$WORD1"#echo "$WORD2"#echo "$WORD3"##end language implementation #check if the user is running lucid Lucid 32 or 64bit
if [ "lucid" = `lsb_release -cs` ]; then
if [ "i686" = `uname -m` ]; then
elif [ "x86_64" = `uname -m` ]; then
else
/usr/bin/zenity --warning --title="Error$WORD1" --text="Error: You are not using Ubuntu 10.04 Lucid Lynx 32bit or 64bit$WORD2"
echo You are not using Ubuntu 10.04 Lucid Lynx 32bit or 64bit, exiting
exit
fi
else
/usr/bin/zenity --warning --title="Error$WORD1" --text="Error: You are not using Ubuntu 10.04 Lucid Lynx$WORD3"
echo You are not using Ubuntu 10.04 Lucid Lynx, exiting
exit
if [ "$UID" -ne "$ROOT_UID" ];
then
/usr/bin/zenity --warning --title="Error$WORD1" --text="You must have sudo privileges to run this script. Try: sudo ./ubuntu-10.04-script$WORD4"
echo "Exiting ... please run the script with sudo (eg: sudo ./ubuntu-10.04-script)"
exit
# check if there are applications running which can interfere with the script
sleep 1
then
echo "Installation won't work. Wait for dpkg to finish running, or exit it, Please close $lock first then try again."; /usr/bin/zenity --warning --title="Error$WORD1" --text="Installation won't work. Wait for dpkg to finish running, or exit it, then try again.$WORD5 $lock $WORD6"
exit
fi
done
#check if the user has an active internet connection
function testConnection()
{
testconnection=`wget --tries=3 --timeout=15 www.google.com -O /tmp/testinternet &>/dev/null 2>&1`
if [ $? != 0 ]; then
echo "You are not connected to the Internet. Please check your Internet connection and try again."
/usr/bin/zenity --info --text="<b>Error:</b> You are not connected to the Internet but selected an option which requires an Internet Connection. Please fix your Internet connection and try again.$WORD7"testConnection
else
echo Internet connection - ok
}
#gui 1
choicess=`/usr/bin/zenity --title="Step 1: Tweaks, fixes and repositories$WORD8" --width=500 --height=400 450 \ --text="Important: \n\nIf you do not select the 'Add additional repositories' option, you will not be able \nto install some packages in Step 2. \n\nAlso, for some settings take place, you'll have to log out and then log back in \n(but only do this after both Step 1 and Step 2 have been completed!).\n\nSelect:$WORD9" \ --list --column="Selected$WORD10" --column="Tweak$WORD11" \ --checklist FALSE "Move window buttons to the right (Karmic style)$WORD12" FALSE "Change Update Manager behavior to the one in Jaunty$WORD13" FALSE "Remove mounted drive icons from desktop$WORD14" FALSE "Disable the GDM login sound$WORD15" FALSE "Enable the icons in menus and buttons$WORD16" FALSE "Disable the GDM login user list$WORD17" TRUE FALSE "Change Gnome Calendar first day of the week from Sunday to Monday$WORD18" FALSE "Remove the ubuntu-docs package (frees up 252MB)$WORD19" FALSE "Install and configure sharp fonts$WORD20" FALSE "Fix 'apt-get update' delay for Google repository$WORD21" FALSE "$WORD22" FALSE "$WORD23" FALSE "$WORD24" FALSE "$WORD25" FALSE "$WORD26" FALSE "$WORD27" FALSE "$WORD28" FALSE "$WORD29" TRUE "$WORD30" FALSE "$WORD31" FALSE "$WORD32" FALSE "Automatically mount NTFS drives on startup$WORD33" TRUE "Add additional repositories (GetDeb, Medibuntu etc.)$WORD34"`
for choicee in $choicess
do
if [ "$choicee" = "Move window buttons to the right (Karmic style)$WORD12" ];
then
sudo -u $ON_USER "DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS gconftool-2 --type string --set /apps/metacity/general/button_layout ":minimize,maximize,close"
elif [ "$choicee" = "Change Update Manager behavior to the one in Jaunty$WORD13" ]; then sudo -u $ON_USER "DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS gconftool-2 --type string --set /apps/metacity/general/button_layout "close,minimize,maximize:" elif [ "$choicee" = "$WORD14" ];
then
sudo -u $ON_USER "DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS gconftool -s --type bool /apps/update-notifier/auto_launch false
elif [ "$choicee" = "$WORD15" ]; then sudo -u $ON_USER "DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS gconftool -s --type bool /apps/update-notifier/auto_launch true elif [ "$choicee" = "Remove mounted drive icons from desktop$WORD16" ];
then
sudo -u $ON_USER "DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS gconftool -s --type bool /apps/nautilus/desktop/volumes_visible false
elif [ "$choicee" = "$WORD17" ]; then sudo -u $ON_USER "DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS gconftool -s --type bool /apps/nautilus/desktop/volumes_visible true elif [ "$choicee" = "Disable the GDM login sound$WORD18" ];
then
sudo -u gdm gconftool-2 --set /desktop/gnome/sound/event_sounds --type bool false
sudo -u $ON_USER "DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS gconftool-2 --set /desktop/gnome/sound/event_sounds --type bool false
elif [ "$choicee" = "$WORD19" ]; then sudo -u gdm gconftool-2 --set /desktop/gnome/sound/event_sounds --type bool true sudo -u $ON_USER "DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS gconftool-2 --set /desktop/gnome/sound/event_sounds --type bool true elif [ "$choicee" = "Enable the icons in menus and buttons$WORD20" ];
then
sudo -u $ON_USER "DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS gconftool-2 --set /desktop/gnome/interface/buttons_have_icons --type bool true
sudo -u $ON_USER "DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS gconftool-2 --set /desktop/gnome/interface/menus_have_icons --type bool true
elif [ "$choicee" = "Disable the GDM login user list$WORD21" ]; then sudo -u $ON_USER "DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS gconftool-2 --set /desktop/gnome/interface/buttons_have_icons --type bool false sudo -u $ON_USER "DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS gconftool-2 --set /desktop/gnome/interface/menus_have_icons --type bool false elif [ "$choicee" = "$WORD22" ];
then
sudo -u gdm gconftool-2 --set --type boolean /apps/gdm/simple-greeter/disable_user_list true
elif [ "$choicee" = "$WORD23" ]; then sudo -u gdm gconftool-2 --set --type boolean /apps/gdm/simple-greeter/disable_user_list false elif [ "$choicee" = "Change Gnome Calendar first day of the week from Sunday to Monday$WORD24" ];
then
timee=$(cat /etc/default/locale | grep "LC_TIME")
if [ ! $timee ]; then
timeee=$(/usr/bin/zenity --entry --title="et_EE.UTF$WORD35" -8-text="$WORD36") if [ $timeee ]; then echo LC_TIME=\"$timeee.UTF-8\" | sudo tee -a /etc/default/locale > /dev/null sed else echo LC_TIME=\"en_GB.UTF-r -i -e 8\"s| sudo tee -a /weekday 1etc/weekday 2default/" locale > /usrdev/share/i18n/locales/et_EEnull locale-gen fi
else
echo "You already have custom values for LC_TIME, skipping this tweak"
fi
elif [ "$choicee" = "Remove the ubuntu$WORD25" ]; then sudo rm /etc/default/locale_back > /dev/null 2>&1; sudo cp /etc/default/locale /etc/default/locale_back; cat /etc/default/locale_back | sudo sed -docs package (frees up 252MB)e '/^LC_TIME.*/d' > /etc/default/locale; sudo rm /etc/default/locale_back > /dev/null 2>&1; elif [ "$choicee" = "$WORD26" ];
then
sudo apt-get remove -y --force-yes ubuntu-docs
then
sudo apt-get -y --force-yes install ubuntu-docs
elif [ "$choicee" = "$WORD28" ];
then
testConnection
/usr/bin/zenity --info --text="You selected to install Sharp Fonts. This may take a few minutes depending on your connection speed. \n\nClick OK to continue!$WORD37"
cd /tmp
echo "Installing Sharpfonts. This may take a few minutes depending on connection speed..."
wget http://sharpfonts.com/fontconfig.tbz
tar xvjpf fontconfig.tbz -C /etc/fonts/
rm -r /tmp/*.exe > /dev/null 2>&1; rm /tmp/fontconfig.tbz> /dev/null 2>&1; # AFirefox sharp fonts touch ~/. Mägi lisndus aadressilt http:fonts.conf echo "<?xml version=\"1.0\"?><!DOCTYPE fontconfig SYSTEM \"fonts.dtd\">" | tee ~/.fonts.conf echo "<fontconfig>" | tee -a ~/ubuntu.pingviinfonts.orgconf echo "<match target=\"font\" >" | tee -a ~/1004kohandamine.htmlfonts.conf sudo apt echo "<edit mode=\"assign\" name=\"rgba\" >" | tee -get install ttfa ~/.fonts.conf echo "<const>rgb</const>" | tee -mscorefontsa ~/.fonts.conf echo "</edit>" | tee -installera ~/.fonts.conf echo "</match>" | tee -a ~/.fonts.conf echo "<match target=\"font\" >" | tee -a ~/.fonts.conf echo "<edit mode=\"assign\" name=\"hinting\" >" | tee -a ~/.fonts.conf echo "<bool>true</bool>" | tee -a ~/.fonts.conf echo "</edit>" | tee -a ~/.fonts.conf echo "</match>" | tee -a ~/.fonts.conf echo "<match target=\"font\" >" | tee -a ~/.fonts.conf echo "<edit mode=\"assign\" name=\"hintstyle\" >" | tee -a ~/.fonts.conf echo "<const>hintfull</const>" | tee -a ~/.fonts.conf echo "</edit>" | tee -a ~/.fonts.conf echo "</match>" | tee -a ~/.fonts.conf echo "<match target=\"font\" >" | tee -a ~/.fonts.conf echo "<edit mode=\"assign\" name=\"antialias\" >" | tee -a ~/.fonts.conf echo "<bool>true</bool>" | tee -a ~/.fonts.conf echo "</edit>" | tee -a ~/.fonts.conf echo "</match>" | tee -a ~/.fonts.conf echo "</fontconfig>" | tee -a ~/.fonts.conf chown $ON_USER ~/.fonts.conf
echo "Sharp fonts installation finished... Please remember to logout and login again"
elif [ "$choicee" = "Fix 'apt-get update' delay for Google repository$WORD29" ];
then
rm /etc/fonts/alias.conf /etc/fonts/local.conf /etc/fonts/misc.conf /etc/fonts/msfonts-rules.conf ~/.fonts.conf > /dev/null 2>&1; elif [ "$choicee" = "$WORD30" ]; then echo "Acquire::http::Pipeline-Depth \"0\";" | sudo tee -a /etc/apt/apt.conf.d/90localsettings > /dev/null elif [ "$choicee" = "Automatically mount NTFS drives on startup$WORD31" ]; then sudo rm /etc/apt/apt.conf.d/90localsettings_back > /dev/null 2>&1; sudo cp /etc/apt/apt.conf.d/90localsettings /etc/apt/apt.conf.d/90localsettings_back; cat /etc/apt/apt.conf.d/90localsettings_back | sudo sed -e '/^Acquire::http::Pipeline-Depth.*/d' > /etc/apt/apt.conf.d/90localsettings; sudo rm /etc/apt/apt.conf.d/90localsettings_back > /dev/null 2>&1; elif [ "$choicee" = "$WORD32" ];
then
sudo apt-get -y --force-yes install ntfs-3g
dirr=$(echo $curline | cut -c 6- | sed -e 's/\///g')
sudo mkdir /media/$dirr
NTFSLABEL=$(sudo blkid -c /dev/null -t TYPE=ntfs | grep $curline | grep LABEL)
if [ $NTFSLABEL ]; then
NTFSUUID=$(sudo blkid -c /dev/null -t TYPE=ntfs | grep $curline | cut -d '"' -f 4)
else
NTFSUUID=$(sudo blkid -c /dev/null -t TYPE=ntfs | grep $curline | cut -d '"' -f 2)
fi
echo $NTFSUUID #debugging
eval "echo UUID=$NTFSUUID /media/$dirr ntfs-3g users 0 0" | sudo tee -a /etc/fstab > /dev/null
done < /tmp/checkntfs.txt
echo Done!
fi
rm /tmp/checkntfs.txt /tmp/checkntfs-3g.txt> /dev/null 2>&1; elif [ "$choicee" = "Add additional repositories (GetDeb, Medibuntu $WORD33" ]; then sudo rm /etc/fstab_back > /dev/null 2>&1; sudo cp /etc/fstab /etc/fstab_back; cat /etc/fstab_back | sudo sed -e '/^UUID.)*ntfs-3g.*/d' > /etc/fstab; sudo rm /etc/fstab_back > /dev/null 2>&1; elif [ "$choicee" = "$WORD34" ];
then
testConnection
sudo rm /etc/apt/sources.list_backup> /dev/null 2>&1;
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
cat /etc/apt/sources.list_backup | sed -e '/.*mainubuntu\.*restrictedcom\/ubuntu.*/d' > /etc/apt/sources.list; sleep 1 ; cp /etc/apt/sources.list /etc/apt/sources.list_backup2 #delete the ubuntu default repositories so we don't get double repos sleep 1 | cp /etc/apt/sources.list /etc/apt/sources.list_medibuntu; cat /etc/apt/sources.list_medibuntu | sed -e '/.*medibuntu.*lucid free non-free/d' -e '/.*getdeb.*lucid-getdeb apps/d' > /etc/apt/sources.list; rm /etc/apt/sources.list_medibuntu > /dev/null 2>&1; sleep 1 #delete medibuntu and getdeb repos to make sure we don't get double repos sleep 1; cp /etc/apt/sources.list /etc/apt/sources.list_empty; cat /etc/apt/sources.list_empty | sed '/^$/d' > /etc/apt/sources.list; sleep 1; rm /etc/apt/sources.list_empty > /dev/null 2>&1; #remove empty lines in sources.list ARRAY=( 'deb http://archive.ubuntu.com/ubuntu lucid main restricted universe multiverse' 'deb-src http://archive.ubuntu.com/ubuntu lucid main restricted universe multiverse' 'deb http://archive.ubuntu.com/ubuntu lucid-updates main restricted universe multiverse' 'deb -src http://archive.canonicalubuntu.com/ubuntu lucid partner-updates main restricted universe multiverse' 'deb http://securityarchive.ubuntu.com/ubuntu lucid-security backports main restricted universe multiverse' $medibuntuserver 'deb -src http://archive.getdebubuntu.netcom/ubuntu lucid-getdeb appsbackports main restricted universe multiverse' 'deb http://ppaarchive.launchpadcanonical.netcom/boamaodubuntu lucid partner' 'deb-src http://archive.canonical.com/ubuntulucid partner' 'deb http://security.ubuntu.com/ubuntu lucid-idkaartsecurity main restricted universe multiverse' 'deb-src http://security.ubuntu.com/ubuntu lucid -security mainrestricted universe multiverse' $medibuntuserver $medibuntuSOURCEserver $getdebserver $getdebSOURCEserver )
ELEMENTS=${#ARRAY[@]}
done
testConnection
rm /etc/apt/sources.list.d/medibuntu.list /etc/apt/sources.list.d/dropbox.list /etc/apt/sources.list.d/getdeb.list > /dev/null 2>&1; # lisa smplayer varamudelete medibuntu, mida varem kindlasti ei olnud dropbox and getdeb repos if they were placed in a different location (sealt SMPplayeri ja MPlayeri uusimad versioonidnot sources.list) # sudo because we'll addthem anyway -apt-repository ppa:nilarimogard/webupd8, ei sisalda enam VLC-pleierit sudo add-apt-repository ppa:rvm/smplayerfix for not getting double repos wget -q -O- $mediserv/medibuntu-key.gpg | sudo apt-key add -
#sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
sudo apt-get update
fi
done
IFS=""
/usr/bin/zenity --info --text="Done! We will now proceed to Step 2.$WORD39"
else
echo cancel selected
#gui 2
choices=`/usr/bin/zenity --title="Step 2: Install packages$WORD40" --width=520 --height=400 \ --text="Choose packages to install:$WORD41" \ --list --column="Selected$WORD10" --column="Package$WORD42" --column="Description$WORD43" \ --checklist FALSE TRUE "GIMP" "Image Editor$WORD44" FALSE TRUE "Pidgin (including original smileys)$WORD45" "Multi-protocol instant messaging client$WORD46" FALSE TRUE "WINE" "Run Windows applications in Linux$WORD47" FALSE TRUE "Dock bar" "$WORD48" TRUE "Chromium-browserBrowser" "Open source browser$WORD49" FALSE TRUE "$WORD50" "$WORD51" TRUE "Gnome-Do" "Quick launcher$WORD52" FALSE TRUE "Guake" "Quake-like terminal emulator$WORD53" FALSE TRUE "VLC" "Media player$WORD54" FALSE TRUE "MPlayer" "$WORD54" TRUE "SMPlayer" "Media player (MPlayer front-end)$WORD55" FALSE TRUE "Thunderbird" "Email client$WORD56" TRUE "Codecs and extras$WORD57" "Codecs (multimedia, java, flash), additional archives support, DVD support and fonts$WORD58" FALSE TRUE "Ubuntu-Tweak" "Tweak Ubuntu and add lots of additional repositories (PPAs)$WORD59" FALSE TRUE "Dropbox" "Cross-platform cloud sync application$WORD60" FALSE TRUE "Deluge" "BitTorrent client$WORD61" FALSE TRUE "CCSM$WORD62" "CompizConfig Settings Manager$WORD63" FALSE TRUE "Skype" "VoIP chat application$WORD64" FALSE TRUE "Google Chrome" "Google's browser" TRUE "Estonian ID-card support" "Identification and signing$WORD65" FALSE "Avant-window-navigatorGoogle Earth" "Dock and Launcher$WORD66" FALSE "gthumb$WORD67" "Photo manager$WORD68"`
if [ $? -eq 0 ]
IFS="|"
testConnection
/usr/bin/zenity --info --text="The package download and installation will begin. Please do not restart your computer until the script is done. \n\nClick OK to start!$WORD69"
for choice in $choices
do
if [ "$choice" = "Codecs and extras$WORD57" ];
then
sudo echo sun-java6-jre shared/accepted-sun-dlj-v1-1 select true | sudo /usr/bin/debconf-set-selections #autoaccept java license
sudo apt-get install --yes sun-java6-plugin
if [ "i686" = `uname -m` ]; then
else
cd /tmp
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
sudo mv libflashplayer.so /usr/lib/flashplugin-nonfree/
sudo ln -s /usr/lib/flashplugin-nonfree/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so
rm libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz> /dev/null 2>&1;
fi
elif [ "$choice" = "Google Chrome" ];
then
cd /tmp
sudo apt-get install -f -y
rm google-chrome-unstable_current_i386beta_current_${arch}.deb> /dev/null 2>&1; elif [ "$choice" = "Chromium Browser" ]; then else wget http:cd //dl.google.com/linux/direct/google-chrome-unstable_current_amd64.debtmp sudo dpkg apt-i get -y --force-all google-chrome-unstable_current_amd64.deb sudo apt-get yes install chromium-f browser chromium-y rm googlebrowser-chrome-unstable_current_amd64.deb fil10n
elif [ "$choice" = "Skype" ];
then
cd /tmp
sudo apt-get install -f -y
rm skype-ubuntu-intrepid_2.1.0.81-1_i3861_${arch}.deb else wget http:> /dev/download.skype.com/linux/skype-ubuntu-intrepid_2.null 2>&1.0.81-1_amd64.deb sudo dpkg -i --force-all skype-ubuntu-intrepid_2.1.0.81-1_amd64.deb sudo apt-get install -f -y rm skype-ubuntu-intrepid_2.1.0.81-1_amd64.deb fi; elif [ "$choice" = "Pidgin (including original smileys)$WORD45" ];
then
sudo apt-get -y --force-yes install pidgin
if [ ! -d ~/.purple ]; then echo Pidgin dir does not exist, create it mkdir ~/.purple mkdir ~/.purple/smileys cd ~/.purple wget http://launchpad.net/ubuntustart/trunk/0.4.2/+download/prefs.xml else echo Pidgin dir exists, return fi rm ~/.purple/prefs_backup.xml > /dev/null 2>&1; #in case the user runs the script twice
cd ~/.purple/smileys/
wget http://fileslaunchpad.andreineculau.comnet/projectsubuntustart/pidgintrunk/0.4.2/original-smileys+download/pidgin-original-1.9.tgz
tar -xvf pidgin-original-1.9.tgz
rm pidgin-original-1.9.tgz> /dev/null 2>&1;
cp ~/.purple/prefs.xml ~/.purple/prefs_backup.xml
cat ~/.purple/prefs_backup.xml | sed -e '/smileys/,/theme/s/Default/Original Smileys 1\.9/g' > ~/.purple/prefs.xml
chown -R $ON_USER ~/.purple/smileys/
chown -R $ON_USER ~/.purple/prefs_backup.xml
then
sudo add-apt-repository ppa:bisigi/ppa
sudo apt-get update
sudo apt-get -y --force-yes install bisigi-themes community-themes
elif [ "$choice" = "Google Earth" ];
then
sudo echo googleearth shared/accepted-googleearth-eula select true | sudo /usr/bin/debconf-set-selections #autoaccept google earth license
if [ "i686" = `uname -m` ]; then
sudo apt-get -y --force-yes install googleearth googleearth-data
else
sudo apt-get -y --force-yes install ia32-libs
sudo apt-get -y --force-yes install googleearth googleearth-data
sudo apt-get install -f -y
fi
then
elif [ "$choice" = "Dropbox" ];
then
rm /etc/apt/sources.list.d/dropbox.list #delete the dropbox repo if it's added to a separate file so we don't get double repositories
reposs=`cat /etc/apt/sources.list | grep "dropbox"`
if [ $? -eq 0 ];
sudo apt-get -y --force-yes install nautilus-dropbox
else
echo "deb http://linux.dropbox.com/ubuntu karmic lucid main" | sudo tee -a /etc/apt/sources.list > /dev/null echo "deb-src http://linux.dropbox.com/ubuntu lucid main" | sudo gpg tee -a /etc/apt/sources.list > /dev/null sudo apt-key adv --recv-keys --keyserver pgp.mit.edu --recv-keys 3565780E#dropbox key
sudo apt-get update
sudo apt-get -y --force-yes install nautilus-dropbox
fi
elif [ "$choice" = "CCSM$WORD62" ];
then
sudo apt-get -y --force-yes install compizconfig-settings-managercompiz-fusion-plugins-extra
else
choiceLOW=`echo $choice | tr '[:upper:]' '[:lower:]'`
sudo apt-get -y --force-yes install $choiceLOW
sudo apt-get install -f -y
fi
done
sudo apt-get clean
sudo apt-get autoclean
#notices
if [[ "$choicee" = "Change Gnome Calendar first day of the week from Sunday to Monday$WORD24" || "$choicee" = "Install and configure sharp fonts$WORD28" || "$choicee" = "$WORD25" || "$choicee" = "$WORD29" ]]; then /usr/bin/zenity --info --text="Done! Please log out and then log back in (this is required for some of the tweaks you've selected). \n\nFor bugs and suggestions, please visit: $WORD75 http://www.webupd8.org"
else
/usr/bin/zenity --info --text="Done! All the selected packages have been installed. \n\nFor bugs and suggestions, please visit: $WORD76 http://www.webupd8.org"
IFS=""
fi
rm /tmp/testinternet> /dev/null 2>&1;
else
rm /tmp/testinternet> /dev/null 2>&1;
echo cancel selected
exit
#changelog
#0.4.9.3#google changed the URL for Chrome so I added the new one#download pidgin smileys from a different location as it seems the server is overloaded #0.4.9.2#fixed some bugs in the English and Traditional Chinese translation#added Urdu language #0.4.9.1#added vietnamese language #0.4.9#bug-fix release #0.4.8.9#fixed double repository issue #0.4.8.8#added traditional chinese language #0.4.8.7#added swedish language #0.4.8.6:#added arabic translation #0.4.8.5:#removed pbuilder from development tools due to postfix package dependency which requires the user to interact with the terminal#added slovenian and romanian translations #0.4.8.4#fixed Asturian language not working #0.4.8.3#fixed pidgin smileys bug #0.4.8.2#added basha indonesia, asturian languages, updated italian, dutch, slovenian, czech #0.4.8.1#added brazilian portuguese and catalan languages#added estonian #0.4.8#added Docky, Cairo Dock and AWN in a separate dialog#made Google Earth installation autoaccept the license so the user doesn't have to interact with the terminal#multiple language support; current languages: Czech, Spanish, French, German, Slovak, Italian, Polish, Japanese, Dutch, Portuguese (PT), Malaysian, Galician, Korean#changed the way the current logged in user is detected; this should hopefully fix multiple accounts issues #0.4.7#extra themes (community themes and bisigi themes)#google earth #0.4.6#bugs bugs bugs fixed#added extra compiz plugins to install#added getdeb mirror#code optimizations #0.4.5#Added reset options for the tweaks#Changed the way day of the week from Sunday to Monday works - it now asks the user to enter his locale. #0.4.4#fixed lots of minor bugs, the script is now more stable #0.4.3#replace karmic dropbox repository with lucid#code cleanup
#0.4.2.2
#added dropbox repository and installation
#added disable GDM login user list
#added build-essential, subversion, git, etc</source>