N'installe le fichier autostart de Window Maker que si le répertoire existe
[hvlinux.git] / ubuntu / ubuntu-cfg.sh
index bd1c9d3..c191305 100755 (executable)
@@ -15,7 +15,28 @@ if [ "`id -u`" -eq 0 ]; then
     exit 1
 fi
 
-${APT} update
+# On enlève les packages superflus
+
+# Purge Mono from my system!
+if dpkg --list | grep "libmono" 1> /dev/null 2>&1; then
+    ${APT} purge libmono* libgdiplus cli-common libglitz-glx1 libglitz1
+fi
+
+if dpkg --list | grep pulseaudio 1> /dev/null 2>&1; then
+    ${APT} remove --purge pulseaudio*
+fi
+
+if dpkg --list | grep bluez-gstreamer 1> /dev/null 2>&1; then
+    ${APT} remove --purge bluetooth bluez bluez-gstreamer bluez-alsa bluez-cups
+fi
+
+if dpkg --list | grep openoffice 1> /dev/null 2>&1; then
+    ${APT} remove --purge openoffice*
+fi
+
+#if dpkg --list | grep evolution-exchange 1> /dev/null 2>&1; then
+#    ${APT} remove --purge evolution
+#fi
 
 # Configuration SSH
 if [ ! -f ${HOME}/.ssh/id_dsa.pub ]; then
@@ -35,33 +56,26 @@ gconftool-2 --set /apps/nautilus/preferences/preview_sound --type string never
 gconftool-2 --set /apps/nautilus/preferences/show_directory_item_counts --type string never
 gconftool-2 --set /apps/nautilus/preferences/show_icon_text --type string never
 gconftool-2 --set /apps/nautilus/preferences/show_image_thumbnails --type string never
+gconftool-2 --set /apps/nautilus/preferences/media_automount_open --type bool false
 
 # Démarrage de Rhythmbox non minimisé
 gconftool-2 --set /apps/rhythmbox/plugins/status-icon/window-visible --type boolean true
 
-# On enlève les packages superflus
-
-# Purge Mono from my system!
-if dpkg --list | grep "libmono" 1> /dev/null 2>&1; then
-    ${APT} purge libmono* libgdiplus cli-common libglitz-glx1 libglitz1
-fi
-
-if dpkg --list | grep pulseaudio 1> /dev/null 2>&1; then
-    ${APT} remove --purge pulseaudio*
-fi
-
-if dpkg --list | grep bluez-gstreamer 1> /dev/null 2>&1; then
-    ${APT} remove --purge bluetooth bluez bluez-gstreamer bluez-alsa bluez-cups
-fi
-
+${APT} update
 ${APT} upgrade
 ${APT} dist-upgrade
 ${APT} autoremove
+${APT} clean
+${APT} autoclean
 
 # localepurge is a simple script to recover diskspace wasted for unneeded locale files and localized man pages.
 # It will automagically be invoked upon completion of any apt installation run.
 ${AGI} localepurge
 
+if lspci | grep "BCM43" 1> /dev/null 2>&1; then
+    ${AGI} b43-fwcutter
+fi
+
 ${AGI} emacs23
 # Correction bug avec emacs:
 #   murrine_style_draw_box: assertion `height >= -1' failed
@@ -75,26 +89,22 @@ ${AGI} autoconf autoconf-doc autotools-dev libtool
 ${AGI} manpages manpages-dev manpages-posix manpages-posix-dev
 
 # dockapp development
-${AGI} libX11-dev libxpm-dev libxext-dev 
+${AGI} libx11-dev libxpm-dev libxext-dev
 ${AGI} libgtk2.0-dev libglib2.0-dev
+# wmnotify uses SSL
+${AGI} libssl-dev
 
-# Vibro-Meter development
-#${AGI} libncurses5-dev zlib1g-dev
-# Pour opkg
-#${AGI} libcurl4-gnutls-dev libgpgme11-dev
-#${AGI} uncrustify
-#sudo cpan XML::Parser
+# Debian packaging
+${AGI} dh-make
 
 ${AGI} subversion
 
-# Servers
-${AGI} nfs-common
-#${AGI} ssh
-
 ${AGI} abiword gnumeric gnumeric-plugins-extra
 ${AGI} texlive texlive-latex-recommended texlive-latex-extra texlive-humanities
 
 # Multimedia
+${AGI} linux-rt linux-headers-rt
+${AGI} jackd
 ${AGI} libdvdread4
 sudo /usr/share/doc/libdvdread4/install-css.sh
 ${AGI} ${GST}-ffmpeg ${GST}-plugins-bad ${GST}-plugins-ugly
@@ -114,15 +124,27 @@ ${AGI} rosegarden
 ${AGI} sylpheed
 gconftool -s /desktop/gnome/url-handlers/mailto/command -t string "sylpheed --compose %s"
 
-# Desktop only
-#${AGI} wmaker
-#${AGI} pcmanfm
+${AGI} wmaker
+if [ -d ${HOME}/GNUstep/Library/WindowMaker ]; then
+    cat > ${HOME}/GNUstep/Library/WindowMaker/autostart << "EOF"
+#!/bin/sh
+gnome-settings-daemon
+EOF
+    chmod 755 ${HOME}/GNUstep/Library/WindowMaker/autostart
+fi
+
+${AGI} pcmanfm
+cat > ${HOME}/.gtkrc-2.0 << "EOF"
+gtk-icon-theme-name="Tango"
+gtk-enable-event-sounds=0
+gtk-enable-input-feedback-sounds=0
+EOF
 
 ${AGI} epdfview
 ${AGI} psutils
 ${AGI} gimp
 
-if lspci  | grep "nVidia" 1> /dev/null 2>&1; then
+if lspci | grep "nVidia" 1> /dev/null 2>&1; then
     ${AGI} nvidia-settings nvidia-current
 fi