#!/bin/bash # # UGOStool v. 0.1 # Script Customisasi Ubuntu 7.10 Gutsy Gibbon # Oleh : Muhammad Rifqi # # (C) 2008 GPL v="0.1" #cek versi ubuntu if grep -q "7.10" /etc/issue.net; then versi="Ubuntu 7.10 (Gutsy Gibbon)"; else zenity --error --title "ERROR, Script tidak cocok" --text "Script ini tidak cocok dengan versi ubuntu anda \nSilahkan lihat petunjuk penggunaanya di \n\nhttp://repo.ugm.ac.id/~rifqi" exit 1 fi # # Cek proses # if ps ax -u root | grep "synaptic" | grep -v grep > /dev/null; then zenity --error --title "ERROR..!!" --text "ERROR, Proses synaptic sedang berjalan \nsilahkan tutup terlebih dahulu untuk melanjutkan proses"; exit 1; elif ps ax -u root | grep "update-manager" | grep -v grep > /dev/null; then zenity --error --title "ERROR..!!" --text "ERROR, proses update-manager sedang berjalan \nsilahkan tutup terlebih dahulu untuk melanjutkan proses"; exit 1; elif ps ax -u root | grep "apt-get" | grep -v grep > /dev/null; then zenity --error --title "ERROR..!!" --text "ERROR, proses apt-get sedang berjalan \nsilahkan tutup terlebih dahulu untuk melanjutkan proses"; exit 1; elif ps ax -u root u | grep "dpkg" | grep -v grep > /dev/null; then zenity --error --title "ERROR..!!" --text "ERROR, proses dpkg sedang berjalan \nsilahkan tutup terlebih dahulu untuk melanjutkan proses"; exit 1; fi #cek permisi if [ $UID -ne 0 ]; then gksu bash $0 else function choose { RET=`zenity --list --checklist --width=550 --height=390 \ --text "Selamat datang di UGOS tool \nScript Customasi $versi\n\nPilih dan sesuaikan menu kostumasi untuk sistem anda" \ --title="UGOS tool versi "$v"" \ --column="" --column="Paket" --column="Deskripsi" \ TRUE "Source List" "Menggunakan repositori lokal UGM" \ TRUE "Corefont" "Install Core Font" \ TRUE "OpenOffice" "Upgrade OpenOffice versi 2.2 ke 2.4" \ TRUE "Archives" "Install Aplikasi pengarsipan (rar,zip etc )" \ TRUE "Multimedia" "Install Aplikasi pemutar file multimedia" \ TRUE "RealPlayer" "Install Aplikasi RealPlayer" \ FALSE "K3b" "Install Aplikasi K3b (pembakar CD)" \ TRUE "Plugins Firefox" "Install Plugin Firefox Browser (Flash Player)" \ TRUE "Opera" "Install Opera Browser" \ FALSE "Blender" "Install Aplikasi Blender (3D Modeling) "\ FALSE "Inkscape" "Install Aplikasi Inkscape (Vector Ilustrator)" \ FALSE "Scribus" "Install Aplikasi Scribus (Desktop Publishing)" \ FALSE "Wine" "Install Aplikasi emulasi windows (wine) " \ FALSE "Samba" "Install Aplikasi file dan printer sharing (Samba) " \ TRUE "Optimasi" "Optimasi sistem start-up " \ TRUE "Lain-lain" "Install Aplikasi dukungan NTFS file system dan lain-lain " \ FALSE "Driver Printer" "Install Driver printer HP 1020" \ TRUE "Desktop" "Mengganti Desktop wallpaper dan beberapa tampilan lain " ` # if echo "$RET" | grep "Source List"; then sl fi if echo "$RET" | grep "Corefont"; then font fi if echo "$RET" | grep "OpenOffice"; then ooo fi if echo "$RET" | grep "Archives"; then compress fi if echo "$RET" | grep "Multimedia"; then multimedia fi if echo "$RET" | grep "RealPlayer"; then realplayer fi if echo "$RET" | grep "K3b"; then k3b fi if echo "$RET" | grep "Plugins Firefox"; then ffox fi if echo "$RET" | grep "Opera"; then opera fi if echo "$RET" | grep "Wine"; then wine fi if echo "$RET" | grep "Samba"; then samba fi if echo "$RET" | grep "Blender"; then blender fi if echo "$RET" | grep "Inkscape"; then ink fi if echo "$RET" | grep "Scribus"; then scribus fi if echo "$RET" | grep "Optimasi"; then optimasi fi if echo "$RET" | grep "Lain-lain"; then lain fi if echo "$RET" | grep "Driver Printer"; then printer fi if echo "$RET" | grep "Desktop"; then desktop fi } # function sl { # Merubah daftar repositori ( sleep 1 cp /etc/apt/sources.list /etc/apt/sources.list-back-up echo "deb ftp://repo.ugm.ac.id/ubuntu/ gutsy main multiverse restricted universe deb ftp://repo.ugm.ac.id/ubuntu/ gutsy-updates main multiverse restricted universe deb ftp://repo.ugm.ac.id/ubuntu/ gutsy-security main multiverse restricted universe deb ftp://repo.ugm.ac.id/ubuntu/ gutsy-backports main multiverse restricted universe" > /etc/apt/sources.list apt-get update ) | zenity --progress --pulsate --auto-close --width=350 --height=100 --title "Silahkan tunggu.." --text "Sedang mengganti daftar repositori.." sleep 1 apt-get update if [ $? -ne 0 ];then zenity --error --title "ERROR..!!" --text "Error, ada aplikasi installer lain yang sedang berjalan"; exit 0 else ( apt-get update sleep 2 ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang melalakukan update repoitory.." fi } function font { # CoreFont ( sleep 1 wget ftp://repo.ugm.ac.id/ekstra/other/corefonts.tar.gz 2> /dev/null tar xvzf corefonts.tar.gz -C /usr/share/fonts/truetype/ dpkg-reconfigure fontconfig rm corefonts.tar.gz ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang dan menjalankan konfigurasi font.." } function ooo { # Upgrade OpenOffice ( sleep 1 # remove OpenOffice packages apt-get -y remove openoffice.org openoffice.org-base openoffice.org-calc openoffice.org-common openoffice.org-core openoffice.org-draw openoffice.org-evolution openoffice.org-filter-mobiledev openoffice.org-gnome openoffice.org-gtk openoffice.org-help-en-us openoffice.org-impress openoffice.org-java-common openoffice.org-l10n-common openoffice.org-l10n-en-gb openoffice.org-l10n-en-za openoffice.org-math openoffice.org-style-human openoffice.org-writer # remove additional themes apt-get -y remove openoffice.org-style-hicontrast openoffice.org-style-human openoffice.org-style-industrial openoffice.org-style-tango cd ~ wget http://repo.ugm.ac.id/ekstra/office/openoffice/2.4.0/OOo_2.4.0_LinuxIntel_install_en-US_deb.tar.gz 2> /dev/null tar -vxzf ~/OOo_2.4.0_LinuxIntel_install_en-US_deb.tar.gz sudo dpkg -i $PWD/OOH680_m12_native_packed-1_en-US.9286/DEBS/*.deb sudo dpkg -i $PWD/OOH680_m12_native_packed-1_en-US.9286/DEBS/desktop-integration/openoffice.org-debian-menus_2.4-9268_all.deb # remove temporary file rm -f ~/OOo_2.4.0_LinuxIntel_install_en-US_deb.tar.gz rm -r -f ~/OOH680_m12_native_packed-1_en-US.9286 ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang mengupgrade OpenOffice ke versi 2.4.." } function compress { # Archives ( sleep 1 apt-get --assume-yes --force-yes install rar unrar unrar-free ark ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi pengarsipan.." } function multimedia { # Multimedia ( sleep 1 apt-get --assume-yes --force-yes install audacious mplayer libxine1-ffmpeg audacious-crossfade \ audacious-plugins audacious-plugins-extra #testing apt-get -y install gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-ffmpeg totem #codec win32 mkdir -p /usr/lib/win32 wget ftp://repo.ugm.ac.id/ekstra/other/all-20071007.tar.bz2 2> /dev/null wget ftp://repo.ugm.ac.id/ekstra/other/14870-Winamp5-XMMS.tar.bz2 2> /dev/null tar xvjf all-20071007.tar.bz2 cp $PWD/all-20071007/* /usr/lib/win32/ rm all-20071007.tar.bz2 tar xvjf 14870-Winamp5-XMMS.tar.bz2 -C /usr/share/audacious/Skins rm 14870-Winamp5-XMMS.tar.bz2 rm -rf all-20071007/ ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang pemutar dan codec multimedia.." } function realplayer { # RealPlayer ( sleep 1 apt-get -y install libstdc++5 wget ftp://repo.ugm.ac.id/ekstra/other/realplay_10.0.8-0ubuntu3_i386.deb 2> /dev/null dpkg -i realplay_10.0.8-0ubuntu3_i386.deb rm realplay_10.0.8-0ubuntu3_i386.deb ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi RealPLayer.." } function k3b { # K3b CD Burner ( sleep 1 apt-get -y install libdbus-qt-1-1c2 k3b ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi pembakar CD (CD Burning).." } function ffox { # Plugins for Firefox ( sleep 1 wget ftp://repo.ugm.ac.id/ekstra/other/install_flash_player_9_linux.tar.gz 2> /dev/null tar xvzf install_flash_player_9_linux.tar.gz cp $PWD/install_flash_player_9_linux/libflashplayer.so /usr/lib/firefox/plugins/ rm install_flash_player_9_linux.tar.gz rm -rf install_flash_player_9_linux ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang plugin flash player di Firefox.." } function opera { # Opera Browser ( sleep 1 wget ftp://repo.ugm.ac.id/ekstra/other/opera_9.51.2061.gcc4.qt3_i386_gutsy.deb 2> /dev/null apt-get -y install libqt3-mt dpkg -i opera_9.51.2061.gcc4.qt3_i386_gutsy.deb rm opera_9.51.2061.gcc4.qt3_i386_gutsy.deb ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi Opera Browser.." } function blender { # Blender ( sleep 1 apt-get -y install blender ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi Blender (3D Modeling).." } function ink { # Inkscape ( sleep 1 apt-get -y install inkscape ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi Inkscape.." } function scribus { # Install Scribus ( sleep 1 apt-get -y install scribus ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi Scribus.." } function wine { # Apliasi amulasi windows ( sleep 1 apt-get -y install wine ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi emulator Wine.." } function samba { # Apliasi Samba ( sleep 1 apt-get -y install samba ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi Samba (multi platform file dan printer sharing).." } function optimasi { # Optimasi Sistem ( sleep 1 update-rc.d -f atd remove update-rc.d -f anacron remove update-rc.d -f dns-clean remove update-rc.d -f pppd-dns remove update-rc.d -f rsync remove update-rc.d -f usplash remove update-rc.d -f cron remove update-rc.d -f bluetooth remove update-rc.d -f xserver-xorg-input-wacom remove ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang menjalankan optimasi sistem start-up.." } function lain { # Lain-lain ( sleep 1 apt-get -y install ntfs-3g ntfs-config xchm nfs-common ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi pelengkap.." } function printer { # Lain-lain ( sleep 1 apt-get -y install build-essential wget http://repo.ugm.ac.id/ekstra/driver/printer/hp1020/foo2zjs.tar.gz 2> /dev/null tar xvzf foo2zjs.tar.gz cd foo2zjs make > /dev/null 2>&1 wget http://repo.ugm.ac.id/ekstra/driver/printer/hp1020/sihp1020.tar.gz 2> /dev/null tar xvzf sihp1020.tar.gz wget ftp://repo.ugm.ac.id/ekstra/driver/printer/hp1006/sihpP1006.tar.gz 2> /dev/null tar xvzf sihpP1006.tar.gz make install > /dev/null 2>&1 make install-hotplug > /dev/null 2>&1 make cups > /dev/null 2>&1 cd .. rm -rf foo2zjs rm foo2zjs.tar.gz ) | zenity --progress --pulsate --auto-closei --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang driver printer HP 1020.." } function desktop { # Customisasi Desktop ( sleep 1 rm /usr/share/backgrounds/warty-final-ubuntu.png rm /usr/share/backgrounds/ubuntu-smooth-chocolate.png rm /usr/share/backgrounds/elephant-skin.jpg wget -P /usr/share/backgrounds/ ftp://repo.ugm.ac.id/ekstra/other/warty-final-ubuntu.png 2> /dev/null wget -P /usr/share/backgrounds/ ftp://repo.ugm.ac.id/ekstra/other/simple-ubuntu.jpg 2> /dev/null wget -P /usr/share/backgrounds/ ftp://repo.ugm.ac.id/ekstra/other/elephant-skin.jpg 2> /dev/null wget ftp://repo.ugm.ac.id/ekstra/other/oxygdm.tar.gz 2> /dev/null tar xvzf oxygdm.tar.gz -C /usr/share/gdm/themes wget ftp://repo.ugm.ac.id/ekstra/other/aero-clone.tar.gz 2> /dev/null tar xvzf aero-clone.tar.gz -C /usr/share/themes/ wget ftp://repo.ugm.ac.id/ekstra/other/LiNsta-Black-Flat.tar.gz 2> /dev/null tar xvzf LiNsta-Black-Flat.tar.gz -C /usr/share/themes/ wget ftp://repo.ugm.ac.id/ekstra/other/nuoveXT-1.6.tar.gz 2> /dev/null tar xvzf nuoveXT-1.6.tar.gz -C /usr/share/icons/ wget ftp://repo.ugm.ac.id/ekstra/other/48568-Clearlooks-XPSilver.tar.bz2 2> /dev/null tar xvjf 48568-Clearlooks-XPSilver.tar.bz2 -C /usr/share/themes/ wget ftp://repo.ugm.ac.id/ekstra/other/MCity-VistaBasic.tar.gz 2> /dev/null tar xvzf MCity-VistaBasic.tar.gz -C /usr/share/themes/ #smiley pidgin wget ftp://repo.ugm.ac.id/ekstra/other/59794-Original.tar.gz 2> /dev/null tar xvzf 59794-Original.tar.gz -C /usr/share/pixmaps/pidgin/emotes #remove temporary file rm aero-clone.tar.gz oxygdm.tar.gz LiNsta-Black-Flat.tar.gz nuoveXT-1.6.tar.gz 59794-Original.tar.gz MCity-VistaBasic.tar.gz 48568-Clearlooks-XPSilver.tar.bz2 #apply gdm-themes mv /etc/gdm/gdm.conf-custom /etc/gdm/gdm.conf-custom-old wget -P /etc/gdm/ ftp://repo.ugm.ac.id/ekstra/other/gdm.conf-custom 2> /dev/null #grub splash wget -P /boot/grub/ ftp://repo.ugm.ac.id/ekstra/other/splash.xpm.gz 2> /dev/null update-grub sed -i "s|.*hiddenmenu|#hiddenmenu|" /boot/grub/menu.lst #usplash wget ftp://repo.ugm.ac.id/ekstra/other/usplash-theme-ubuntu.so.tar.gz 2> /dev/null tar xvzf usplash-theme-ubuntu.so.tar.gz -C /usr/lib/usplash update-alternatives --install /usr/lib/usplash/usplash-artwork.so usplash-artwork.so /usr/lib/usplash/usplash-theme-ubuntu.so 50 update-alternatives --set usplash-artwork.so /usr/lib/usplash/usplash-theme-ubuntu.so update-initramfs -u rm usplash-theme-ubuntu.so.tar.gz # firefox start-up rm -rf /usr/share/ubuntu-artwork/home/img rm /usr/share/ubuntu-artwork/home/index.html wget ftp://repo.ugm.ac.id/ekstra/other/start_up.tar.gz 2> /dev/null tar xvzf start_up.tar.gz -C /usr/share/ubuntu-artwork/home/ rm start_up.tar.gz ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang menjalankan customisasi desktop.." } choose # zenity --info --title "Script Customisasi Ubuntu Versi "$v"" --text "Untuk informasi lebih lengkap\ tentang script ini silahkan kunjungi http://repo.ugm.ac.id/~rifqi \n\n" fi