#!/bin/bash # # UGOStool v. 0.2 # Script Customisasi Ubuntu 8.04 Hardy Heron # Oleh : Muhammad Rifqi # http://masrifqi.staff.ugm.ac.id # # (C) 2008 GPL # v="0.2" # cek versi ubuntu if grep -q "8.04" /etc/issue; then versi="Ubuntu 8.04 (Hardy Heron)"; 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 "$v"" \ --column="" --column="Paket" --column="Deskripsi" \ TRUE "Source List" "Menggunakan repositori lokal UGM" \ TRUE "Corefont" "Install Core Font" \ 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 "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 } # # Merubah daftar repositori # function sl { (sleep 1 cp /etc/apt/sources.list /etc/apt/sources.list-back-up echo "deb ftp://repo.ugm.ac.id/ubuntu/ hardy main multiverse restricted universe deb ftp://repo.ugm.ac.id/ubuntu/ hardy-updates main multiverse restricted universe deb ftp://repo.ugm.ac.id/ubuntu/ hardy-security main multiverse restricted universe deb ftp://repo.ugm.ac.id/ubuntu/ hardy-backports main multiverse restricted universe" > /etc/apt/sources.list apt-get update ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang mengganti daftar repositori.."; } # # install corefont # function font { (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.." } # # Install paket pengarsipan # function compress { (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.." } # # Install paket multimedia # function multimedia { (sleep 1 apt-get --assume-yes --force-yes install audacious mplayer libxine1-ffmpeg audacious-crossfade audacious-plugins audacious-plugins-extra # 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 mkdir -p /usr/lib/win32 wget ftp://repo.ugm.ac.id/ekstra/other/all-20071007.tar.bz2 2> /dev/null tar xvjf all-20071007.tar.bz2 cp $PWD/all-20071007/* /usr/lib/win32/ rm all-20071007.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.." } # # Install paket realplayer # function 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.." } # # Install k3b cd+dvd burning # function k3b { (sleep 1 apt-get --assume-yes --force-yes install k3b ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi pembakar CD (CD Burning).." } # # Install flash plugin firefox # function ffox { (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-addons/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.." } # # Install opera browser # function opera { (sleep 1 apt-get -y install libaudio2 libqt3-mt wget ftp://repo.ugm.ac.id/ekstra/other/opera_9.51.2061.gcc4.qt3_i386_hardy.deb 2> /dev/null dpkg -i opera_9.51.2061.gcc4.qt3_i386_hardy.deb rm opera_9.51.2061.gcc4.qt3_i386_hardy.deb ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi Opera Browser.." } # # Install blender # function 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).." } # # Install inkscape # function ink { (sleep 1 apt-get -y install inkscape ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi Inkscape.." } # # Install scribus # function scribus { (sleep 1 apt-get install -y python-tk apt-get -y install scribus ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi Scribus.." } # # Install wine # function wine { (sleep 1 apt-get -y install wine ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi Wine.." } # # Install samba # 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).." } # # optimasi sistem # function optimasi { (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.." } # # install aplikasi pelengkap # function 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.." } # # Install driver printer # function printer { (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-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang driver printer HP 1020.." } # # customisasi desktop # function desktop { ( sleep 1 rm /usr/share/backgrounds/warty-final-ubuntu.png rm /usr/share/backgrounds/heron-simple.png rm /usr/share/backgrounds/simple-ubuntu.png 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.png 2> /dev/null wget -P /usr/share/backgrounds/ ftp://repo.ugm.ac.id/ekstra/other/ubuntu-smooth-chocolate.png 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/ # 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 #pidgin emoticon 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 rm 59794-Original.tar.gz rm aero-clone.tar.gz oxygdm.tar.gz LiNsta-Black-Flat.tar.gz nuoveXT-1.6.tar.gz MCity-VistaBasic.tar.gz 48568-Clearlooks-XPSilver.tar.bz2 #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.." } # jalankan opsi yang dipilih choose # selesai 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