From 56909c9ef2f5cb6a059834dbb67f66d18441b082 Mon Sep 17 00:00:00 2001 From: gobo72 Date: Tue, 26 Oct 2010 17:53:43 +0000 Subject: [PATCH] =?utf8?q?Mise=20=C3=A0=20jour=20Ubuntu=2010.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ubuntu/ubuntu-cfg.sh | 81 ++++++++++++++++++++++++++++---------------- 1 file changed, 51 insertions(+), 30 deletions(-) diff --git a/ubuntu/ubuntu-cfg.sh b/ubuntu/ubuntu-cfg.sh index 41a0b03..c14dcb9 100755 --- a/ubuntu/ubuntu-cfg.sh +++ b/ubuntu/ubuntu-cfg.sh @@ -18,11 +18,7 @@ fi # 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* + ${APT} purge libmono* cli-common fi if dpkg --list | grep "bluez-gstreamer" 1> /dev/null 2>&1; then @@ -53,6 +49,11 @@ if dpkg --list | grep "gwibber" 1> /dev/null 2>&1; then ${APT} remove --purge gwibber gwibber-service fi +# Remove proprietary code/drivers +if dpkg --list | grep "nvidia" 1> /dev/null 2>&1; then + ${APT} remove --purge nvidia-* +fi + # Configuration SSH if [ ! -f ${HOME}/.ssh/id_dsa.pub ]; then ssh-keygen -t dsa @@ -66,6 +67,9 @@ sudo -u gdm gconftool-2 --set /desktop/gnome/sound/event_sounds --type bool fals # Ramener les boutons à droite dans les fenêtres Gtk+: gconftool-2 --set /apps/metacity/general/button_layout --type string menu:minimize,maximize,close +# Format horloge 24 heures +gconftool-2 --set /apps/panel/applets/clock_screen0/prefs/format --type string 24-hour + # Configuration de Nautilus - pas de preview pour ne pas ralentir gconftool-2 --set /apps/nautilus/preferences/preview_sound --type string never gconftool-2 --set /apps/nautilus/preferences/show_directory_item_counts --type string never @@ -83,7 +87,28 @@ ${APT} autoremove ${APT} clean ${APT} autoclean -# localepurge is a simple script to recover diskspace wasted for unneeded locale files and localized man pages. +# Configuration de GRUB +sudo sed -i -e 's!^\(GRUB_CMDLINE_LINUX_DEFAULT=\)"quiet splash"!\1"ipv6.disable=1"!' /etc/default/grub +sudo sed -i -e 's!^#\(GRUB_DISABLE_LINUX_RECOVERY="true"\)!\1!' /etc/default/grub +if ! grep "GRUB_DISABLE_OS_PROBER=\"true\"" /etc/default/grub 1> /dev/null 2>&1; then + echo 'GRUB_DISABLE_OS_PROBER="true"' | sudo tee --append /etc/default/grub +fi +sudo chmod -x /etc/grub.d/20_memtest86+ +# Change theme for custom theme +if [ -f /etc/grub.d/05_debian_theme ]; then + sudo rm /etc/grub.d/05_debian_theme +fi +cat << EOF | sudo tee /etc/grub.d/05_hugo_theme +#! /bin/sh +set -e + +echo "set menu_color_normal=green/black" +echo "set menu_color_highlight=light-green/black" +EOF +sudo chmod +x /etc/grub.d/05_hugo_theme +sudo update-grub + +# localepurge recovers diskspace wasted for unneeded locale files and localized man pages. # It will automagically be invoked upon completion of any apt installation run. ${AGI} localepurge @@ -95,20 +120,12 @@ if lspci | grep "BCM43" 1> /dev/null 2>&1; then 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} emacs -${AGI} emacs23 -# Correction bug avec emacs: -# murrine_style_draw_box: assertion `height >= -1' failed -for subdir in Radiance Ambiance; do - sudo sed -i -e "s!\(GtkRange::trough-under-steppers =\) 0!\1 1!" /usr/share/themes/${subdir}/gtk-2.0/gtkrc -done +${AGI} reiserfsprogs gparted + +# Connection serveurs NFS +${AGI} nfs-common portmap # Development ${AGI} build-essential texinfo gettext gawk bison flex @@ -122,7 +139,7 @@ ${AGI} libgtk2.0-dev libglib2.0-dev ${AGI} libssl-dev # Debian packaging -${AGI} dh-make +${AGI} dh-make lintian dupload ${AGI} subversion @@ -130,29 +147,30 @@ ${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} jackd patchage +${AGI} pulseaudio-module-jack +sudo adduser $(whoami) audio +# /etc/security/limits.d/audio.conf -> set rtprio from 95 to 99 ??? + ${AGI} libdvdread4 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 - sudo add-apt-repository "deb http://www.getgnash.org/debs/ubuntu lucid main" - wget --directory-prefix=/tmp http://getgnash.org/gnashdev.key - sudo apt-key add /tmp/gnashdev.key - rm /tmp/gnashdev.key -fi ${AGI} mozilla-plugin-gnash # Requires "mysql-common" -${AGI} vlc vlc-plugin-jack mozilla-plugin-vlc -if [ -h /media/cdrom ]; then # Don't install on machines without CD/DVD-ROM +${AGI} vlc mozilla-plugin-vlc +if [ -h /dev/cdrom ]; then # Don't install on machines without CD/DVD-ROM ${AGI} sound-juicer fi # Musique ${AGI} vorbis-tools + ${AGI} timidity fluid-soundfont-gm fluid-soundfont-gs +# Désactivation de Timidity au démarrage (sytem-wide): +sudo sed -i -e 's!^# \(TIM_ALSASEQ=false\)!\1!' /etc/default/timidity +${AGI} easytag ${AGI} vkeybd ${AGI} audacity libmp3lame0 tap-plugins ${AGI} lilypond @@ -160,6 +178,9 @@ ${AGI} rosegarden ${AGI} sylpheed gconftool -s /desktop/gnome/url-handlers/mailto/command -t string "sylpheed --compose %s" +# Change location of default mail account from ~/Mail to ~/.mail +sed -i -e 's!^\(