#!/bin/sh # by Chris_(medico_2001) # for Klikit-Linux # GPL - June 2007 xterm -e sudo killall synaptic apt-get dpkg adept export XDIALOG_HIGH_DIALOG_COMPAT=1 DIALOG=Xdialog DIA=Xdialog clear $DIALOG --title "Klikit-Linux Wizard" \ --backtitle " Upgrade Klikit-Linux from the feisty fawn to the gutsy gibbon core " \ --radiolist "This wizard will automatically do all the necesary steps to upgrade your current Klikit-Linux system from the feisty fawn to the gutsy gibbon core. To do this upgrade you have to be connected to the internet. About 700 MB will have to be downloaded.\n\n Whenever the upgrade asks if you want to 'Keep' or 'Replace' a configuration file, please select 'Keep' \n\n Be aware that Gutsy Gibbon is still very new, and there are some programs that haven't been updated to work with it.\n\n IMPORTANT: Once the Upgrade completes, Choose the 'Restart Now' button NOT the 'Close' button. Once the system reboots, and you log in please RE-RUN this same wizard to be able to complete all the needed configurations." 40 75 0 \ "Start" "Upgrade Klikit-Linux" on \ "Info" "read info about Gutsy Gibbon" off \ "Exit" "Close this wizard" off 2> /tmp/checklist.tmp.$$ retval=$? if [ $retval = 1 ]; then exit 0 fi choice=`cat /tmp/checklist.tmp.$$` rm -f /tmp/checklist.tmp.$$ # ----------------------------------- if [ "$choice" = "Start" ]; then xterm -e sudo apt-get update xterm -e sudo apt-get upgrade # Installs a fake (empty) kubuntu-desktop package to be able to use the update-manager xterm -e sudo dpkg -i /opt/Klikit_Extras/sources/kubuntu-desktop-1.59/kubuntu-desktop_1.59-2_i386.deb kdialog --title="klikit info" --msgbox "I Am going to launch the update-manager, \n Once it launches. to continue click on the Upgrade button, at the upper right corner \n Remember Once the Upgrade completes, Choose the 'Restart Now' button NOT the 'Close' button. Once the system reboots and you log in please RE-RUN this same wizard" update-manager -c -d # The next steps are done after the reboot xterm -e sudo dpkg -P kubuntu-desktop # restores the Klikit-Linux Graphics (Launch sidebar and splash screens) xterm -e sudo cp -rf /usr/lib/openoffice/program/openintro_ubuntu.bmp /usr/lib/openoffice/program/openintro_ubuntu.bmp.bak xterm -e sudo rm -rf /usr/lib/openoffice/program/openintro_ubuntu.bmp xterm -e sudo cp -rf /usr/lib/openoffice/program/intro.klikit.bmp /usr/lib/openoffice/program/openintro_ubuntu.bmp xterm -e sudo cp -rf /usr/share/gimp/2.0/images/gimp-splash.png /usr/share/gimp/2.0/images/gimp-splash.png.bak xterm -e sudo rm -rf /usr/share/gimp/2.0/images/gimp-splash.png xterm -e sudo cp -rf /usr/share/gimp/2.0/images/gimp-splash-klikit.png /usr/share/gimp/2.0/images/gimp-splash.png xterm -e sudo cp -rf /usr/share/apps/kicker/pics/kside.png /usr/share/apps/kicker/pics/kside.png.bak xterm -e sudo rm -rf /usr/share/apps/kicker/pics/kside.png xterm -e sudo cp -rf /usr/share/apps/kicker/pics/kside.klikit.png /usr/share/apps/kicker/pics/kside.png xterm -e sudo cp -rf /usr/share/apps/kicker/pics/kside_tile.png /usr/share/apps/kicker/pics/kside_tile.png.bak xterm -e sudo rm -rf /usr/share/apps/kicker/pics/kside_tile.png xterm -e sudo cp -rf /usr/share/apps/kicker/pics/kside_tile.klikit.png /usr/share/apps/kicker/pics/kside_tile.png # Installs a few programs: xterm -e sudo apt-get install dolphin strigi-client strigi-applet strigi-plugins strigi-utils gdebi-kde xterm -e sudo apt-get autoremove # Updates the sources list kdesu cp -rf /etc/apt/sources.list /etc/apt/sources.list.old kdesu cp -rf /etc/apt/gutsy.sources.list /etc/apt/sources.list xterm -e sudo apt-get update # Restores the kbfx buttons kdesu cp -rf /opt/Klikit_Extras/kbfx/K-Buttons/klikit_blue/1.png /usr/share/apps/kbfx/skins/default/normal.png kdesu cp -rf /opt/Klikit_Extras/kbfx/K-Buttons/klikit_blue/2.png /usr/share/apps/kbfx/skins/default/pressed.png kdesu cp -rf /opt/Klikit_Extras/kbfx/K-Buttons/klikit_blue/3.png /usr/share/apps/kbfx/skins/default/hover.png # Extra Cleanup sudo rm -rf /boot/initrd.img-2.6.20-16-generic.bak sudo rm -rf /boot/initrd.img-2.6.22-14-generic.bak sudo rm -rf /boot/grub/menu.lst~ cd / sudo rm -rf initrd.img.old sudo rm -rf vmlinuz.old kdialog --title="klikit info" --msgbox "the Upgrade was successful, please reboot your system..." fi # ----------------------------------- if [ "$choice" = "Info" ]; then firefox http://kubuntu.org/announcements/7.10-release.php fi # ----------------------------------- if [ "$choice" = "Exit" ]; then exit 0 fi exit 0