#!/bin/bash # # UGOStool v. 0.2 # Script Customisasi Ubuntu 7.04 Feisty Fawn # Oleh : Muhammad Rifqi # http://masrifqi.staff.ugm.ac.id # # (C) 2008 GPL # #versi v="0.2" # # Cek versi ubuntu # if grep -q "7.04" /etc/issue.net; then versi="Ubuntu 7.04 (Feisty Fawn)"; 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" \ TRUE "Pidgin" "Mengganti aplikasi Gaim dengan Pidgin " \ 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 "Pidgin"; then pidgin 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/ feisty main multiverse restricted universe deb ftp://repo.ugm.ac.id/ubuntu/ feisty-updates main multiverse restricted universe deb ftp://repo.ugm.ac.id/ubuntu/ feisty-security main multiverse restricted universe deb ftp://repo.ugm.ac.id/ubuntu/ feisty-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.." } # # 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.." } # # Upgrade OpenOffice # function ooo { (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 #download paket 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 $PWD/OOo_2.4.0_LinuxIntel_install_en-US_deb.tar.gz dpkg -i $PWD/OOH680_m12_native_packed-1_en-US.9286/DEBS/*.deb dpkg -i $PWD/OOH680_m12_native_packed-1_en-US.9286/DEBS/desktop-integration/openoffice.org-debian-menus_2.4-9268_all.deb # buang temporary file rm -f $PWD/OOo_2.4.0_LinuxIntel_install_en-US_deb.tar.gz rm -r -f $PWD/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.." } # # Archives # 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.." } # # Multimedia # function multimedia { (sleep 1 apt-get --assume-yes --force-yes install audacious mplayer libxine-extracodecs audacious-crossfade audacious-plugins audacious-plugins-extra # install gstreamer 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 # install ceodec 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.." } # # RealPlayer # function realplayer { (sleep 1 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.." } # # K3b CD Burner # 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).." } # # Plugins for 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/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.." } # # Opera Browser # function opera { (sleep 1 wget ftp://repo.ugm.ac.id/ekstra/other/opera_9.51.2061.gcc4.qt3_i386_feisty.deb 2> /dev/null # install dependensi apt-get install libqt3-mt # install paket dpkg -i opera_9.51.2061.gcc4.qt3_i386_feisty.deb rm opera_9.51.2061.gcc4.qt3_i386_feisty.deb ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang memasang aplikasi Opera Browser.." } # # Pidgin # function pidgin { (sleep 1 apt-get -y remove gaim gaim-data apt-get -y install tk8.4 wget http://repo.ugm.ac.id/ekstra/other/pidgin-plugin-pack_2.1.1-1_i386.deb 2> /dev/null wget http://repo.ugm.ac.id/ekstra/other/pidgin_2.1.1-1_i386.deb 2> /dev/null dpkg -i pidgin-plugin-pack_2.1.1-1_i386.deb dpkg -i pidgin_2.1.1-1_i386.deb rm pidgin-plugin-pack_2.1.1-1_i386.deb pidgin_2.1.1-1_i386.deb 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 ) | zenity --progress --pulsate --auto-close --width=400 --height=100 --title "Silahkan tunggu.." --text "Sedang mengganti aplikasi gaim dengan pidgin.." } # # 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).." } # # 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 -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.." } # # Apliasi Samba # function 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.." } # # Lain-lain # 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 HP-Laserjet 1020 # function printer { (sleep 1 apt-get -y install build-essential wget ftp://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 ftp://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 { # Customisasi wallpaper (sleep 1 rm /usr/share/backgrounds/warty-final-ubuntu.png rm /usr/share/backgrounds/ubuntu-smooth-chocolate.png rm /usr/share/pixmaps/splash/ubuntu-slick.png wget -P /usr/share/pixmaps/splash/ ftp://repo.ugm.ac.id/ekstra/other/ubuntu-slick.png 2> /dev/null 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/ubuntu-smooth-chocolate.png 2> /dev/null # menggati GDM themes 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/ 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 #apply gdm-themes mv /etc/gdm/gdm.conf-custom /etc/gdm/gdm.conf-custom-old wget -P /etc/X11/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 #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 sed -i "s|.*hiddenmenu|#hiddenmenu|" /boot/grub/menu.lst # 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