From d1010b9f0b0f540315850de51dfe03a065a7514e Mon Sep 17 00:00:00 2001 From: gobo72 Date: Tue, 14 Sep 2010 23:07:02 +0000 Subject: [PATCH] =?utf8?q?-Enlev=C3=A9=20packages=20inutilis=C3=A9s:=20mys?= =?utf8?q?ql,=20samba,=20gwibber,=20totem=20-R=C3=A9gl=C3=A9=20prob=C3=A8m?= =?utf8?q?e=20avec=20carte=20WiFi=20b43=20(d=C3=A9sactiv=C3=A9=20mode=20DM?= =?utf8?q?A)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ubuntu/ubuntu-cfg.sh | 52 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 10 deletions(-) diff --git a/ubuntu/ubuntu-cfg.sh b/ubuntu/ubuntu-cfg.sh index 00576ca..35b9f04 100755 --- a/ubuntu/ubuntu-cfg.sh +++ b/ubuntu/ubuntu-cfg.sh @@ -2,8 +2,7 @@ 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 @@ -34,9 +33,29 @@ 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 +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 @@ -73,7 +92,19 @@ ${APT} autoclean ${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 @@ -106,7 +137,9 @@ ${AGI} texlive texlive-latex-recommended texlive-latex-extra texlive-humanities #{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 @@ -150,8 +183,7 @@ ${AGI} epdfview ${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 $? -- 2.20.1