#!/bin/sh # by Chris_(medico_2001) # for Klikit-Linux # GPL - June 2007 xterm -e sudo killall synaptic apt-get dpkg adept firefox-bin export XDIALOG_HIGH_DIALOG_COMPAT=1 DIALOG=Xdialog DIA=Xdialog clear $DIALOG --title "Klikit-Linux Wizard" \ --backtitle " Install Quicktime player and web plugins" \ --radiolist "Due to patent restrictions by Apple, the QuickTime installer and plugins can not be included for distribution in Klikit-Linux, but it can be installed free and without any problem if you accept their License and complete this wizard.\n This wizard will download and install the MS Windows QuickTime player and web plugins directly from Apple. The MS Windows Quicktime installer will be launched using wine (wine is a Microsoft Windows compatibility layer for Linux), which will install the QuickTime player and the web plugins, that way you can use them legally in your Klikit-System.\n When the Quicktime installation starts just hit on next and Install without adding any selection.\n If wine is not installed this wizard will do it \n If you installed the w32codecs package you don't need to install this software\n NOTE: Installing this program implies that you have accepted the terms of the Apple QuickTime License.\n" 50 70 0 \ "Install" "Install Quicktime" on \ "License" "Download Apple's Quicktime License (pdf)" off \ "Remove" "Remove Quicktime installation" 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" = "Install" ]; then xterm -e sudo apt-get update xterm -e sudo apt-get install wine cd ~/Downloads mv QuickTimeInstaller.exe QuickTimeInstaller.exe.old # xterm -e sudo wget -c http://ftp.urc.ac.ru/pub/OS/Windows/netstream/Apple/QuickTimeInstaller716.exe xterm -e wget -c http://appldnld.apple.com.edgesuite.net/content.info.apple.com/QuickTime/061-3155.20070501.qbBt4/QuickTimeInstaller.exe wine QuickTimeInstaller.exe sudo mkdir /usr/lib/codecs/ cd ~/.wine/drive_c/'Program Files'/QuickTime/QTSystem/ xterm -e sudo cp QTMLClient.dll /usr/lib/codecs/ xterm -e sudo cp QuickTimeEssentials.qtx /usr/lib/codecs/ xterm -e sudo cp QuickTimeInternetExtras.qtx /usr/lib/codecs/ xterm -e sudo cp QuickTime.qts /usr/lib/codecs/ # xterm -e sudo cp QuickTimeVR.qtx /usr/lib/codecs/ mplayer ~/.wine/drive_c/'Program Files'/QuickTime/Sample.mov #sudo rm -rf ~/.wine/drive_c/'Program Files'/QuickTime/ xterm -e sudo rm -rf ~/Desktop/'QuickTime Player.lnk' kdialog --title="klikit info" --msgbox "DONE \n If you want to register your copy of the Apple Quicktime player go to www.apple.com (optional)" fi # ----------------------------------- if [ "$choice" = "Remove" ]; then sudo rm -rf /usr/lib/codecs/QTMLClient.dll sudo rm -rf /usr/lib/codecs/QuickTimeEssentials.qtx sudo rm -rf /usr/lib/codecs/QuickTimeInternetExtras.qt sudo rm -rf /usr/lib/codecs/QuickTime.qts sudo rm -rf /usr/lib/codecs/QuickTimeVR.qtx kdialog --title="klikit info" --msgbox "Quicktime plugins were succesfully removed" fi # ----------------------------------- if [ "$choice" = "License" ]; then firefox http://images.apple.com/legal/sla/docs/quicktime7.pdf fi # ----------------------------------- if [ "$choice" = "Exit" ]; then exit 0 fi exit 0