From: gobo72 Date: Tue, 14 Sep 2010 23:07:02 +0000 (+0000) Subject: -Enlevé packages inutilisés: mysql, samba, gwibber, totem X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=d1010b9f0b0f540315850de51dfe03a065a7514e;p=hvlinux.git -Enlevé packages inutilisés: mysql, samba, gwibber, totem -Réglé probème avec carte WiFi b43 (désactivé mode DMA) --- 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 $?