set -o errexit
# Liste des items:
-# 1. Installer "Broadcom STA wireless driver" (HP Mini 1115)
-# 2. Désactiver touch CAPS LOCK
+# 1. Désactiver touch CAPS LOCK
GST=gstreamer0.10
${APT} remove --purge openoffice*
fi
-#if dpkg --list | grep "evolution-exchange" 1> /dev/null 2>&1; then
-# ${APT} remove --purge evolution
-#fi
+if dpkg --list | grep "samba-common" 1> /dev/null 2>&1; then
+ ${APT} remove --purge samba-common
+fi
+
+if dpkg --list | grep "evolution-exchange" 1> /dev/null 2>&1; then
+ ${APT} remove --purge evolution
+fi
+
+if dpkg --list | grep "mysql-common" 1> /dev/null 2>&1; then
+ ${APT} remove --purge mysql-common
+fi
+
+if dpkg --list | grep "pppconfig" 1> /dev/null 2>&1; then
+ ${APT} remove --purge pppconfig pppoeconf
+fi
+
+if dpkg --list | grep "totem-common" 1> /dev/null 2>&1; then
+ ${APT} remove --purge totem totem-common
+fi
+
+if dpkg --list | grep "gwibber" 1> /dev/null 2>&1; then
+ ${APT} remove --purge gwibber
+fi
# Configuration SSH
if [ ! -f ${HOME}/.ssh/id_dsa.pub ]; then
${AGI} localepurge
if lspci | grep "BCM43" 1> /dev/null 2>&1; then
- ${AGI} b43-fwcutter
+ if [ ! -f /etc/modprobe.d/b43.conf ]; then
+ sudo touch /etc/modprobe.d/b43.conf
+ echo "options b43 pio=1 qos=0" | sudo tee -a /etc/modprobe.d/b43.conf
+ ${AGI} b43-fwcutter
+ fi
+fi
+
+if lspci | grep "nVidia" 1> /dev/null 2>&1; then
+ ${AGI} nvidia-settings nvidia-current
+else
+ if dpkg --list | grep "nvidia" 1> /dev/null 2>&1; then
+ ${APT} remove --purge nvidia-*
+ fi
fi
${AGI} emacs23
#{AGI} linux-rt linux-headers-rt
${AGI} jackd
${AGI} libdvdread4
-sudo /usr/share/doc/libdvdread4/install-css.sh
+if [ ! -h /usr/lib/libdvdcss.so.2 ]; then
+ sudo /usr/share/doc/libdvdread4/install-css.sh
+fi
${AGI} ffmpeg
${AGI} ${GST}-ffmpeg ${GST}-plugins-bad ${GST}-plugins-ugly ${GST}-fluendo-mp3
if ! sudo apt-key list | grep "rob@welcomehome.org" 1> /dev/null 2>&1; then
${AGI} psutils
${AGI} gimp
-if lspci | grep "nVidia" 1> /dev/null 2>&1; then
- ${AGI} nvidia-settings nvidia-current
-fi
+${AGI} deborphan
+sudo deborphan | xargs sudo apt-get -y remove --purge
exit $?