X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=ubuntu%2Fubuntu-cfg.sh;h=60db91c742698f48a154393013eca258d0f19ba7;hb=5127a0d725b40429f8f7bfe58f877b03906ccb6d;hp=6921d22f1fff406e10848fb086f9bd9a92588edd;hpb=26439ca39713ed3b64ab526f8712a34aac48215b;p=hvlinux.git diff --git a/ubuntu/ubuntu-cfg.sh b/ubuntu/ubuntu-cfg.sh index 6921d22..60db91c 100755 --- a/ubuntu/ubuntu-cfg.sh +++ b/ubuntu/ubuntu-cfg.sh @@ -5,6 +5,7 @@ set -o errexit # 1. Désactiver touch CAPS LOCK #INSTALL_WMAKER=1 +INSTALL_JACKD=1 GST=gstreamer0.10 @@ -63,36 +64,55 @@ if dpkg --list | grep "vinagre" 1> /dev/null 2>&1; then ${APT} remove --purge vinagre fi +# Braille +if dpkg --list | grep "brltty" 1> /dev/null 2>&1; then + ${APT} remove --purge brltty +fi + +# CouchDB and erlang +if dpkg --list | grep "erlang-base" 1> /dev/null 2>&1; then + ${APT} remove --purge erlang* +fi + +# Ubuntu One +if dpkg --list | grep "libubuntuone" 1> /dev/null 2>&1; then + ${APT} remove --purge ubuntuone* +fi + +if dpkg --list | grep "apparmor-utils" 1> /dev/null 2>&1; then + sudo /etc/init.d/apparmor stop + sudo update-rc.d -f apparmor remove + ${APT} remove --purge apparmor apparmor-utils libapparmor1 +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 - # Append the contents of your public key (~/.ssh/id_dsa.pub) to the - # ~/.ssh/authorized_keys file on the remote server -fi - # Désactivation du son à l'écran de login -sudo -u gdm gconftool-2 --set /desktop/gnome/sound/event_sounds --type bool false +sudo -u gdm gconftool --set /desktop/gnome/sound/event_sounds --type bool false + +# Désactive le sound theme +gconftool --set /desktop/gnome/sound/event_sounds --type bool false # Ramener les boutons à droite dans les fenêtres Gtk+: -gconftool-2 --set /apps/metacity/general/button_layout --type string menu:minimize,maximize,close +gconftool --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 +gconftool --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 -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 +gconftool --set /apps/nautilus/preferences/preview_sound --type string never +gconftool --set /apps/nautilus/preferences/show_directory_item_counts --type string never +gconftool --set /apps/nautilus/preferences/show_icon_text --type string never +gconftool --set /apps/nautilus/preferences/show_image_thumbnails --type string never +gconftool --set /apps/nautilus/preferences/media_automount_open --type bool false +# Affiche le path complet +gconftool --set /apps/nautilus/preferences/always_use_location_entry --type bool true # Démarrage de Rhythmbox non minimisé -gconftool-2 --set /apps/rhythmbox/plugins/status-icon/window-visible --type boolean true +gconftool --set /apps/rhythmbox/plugins/status-icon/window-visible --type boolean true # Désactivation demande du mot de passe en mode hibernation gconftool --type Boolean --set /apps/gnome-power-manager/lock/suspend false @@ -104,6 +124,13 @@ for dir in Public Templates ; do fi done +# Configuration SSH +if [ ! -f ${HOME}/.ssh/id_dsa.pub ]; then + ssh-keygen -t dsa + # Append the contents of your public key (~/.ssh/id_dsa.pub) to the + # ~/.ssh/authorized_keys file on the remote server +fi + # 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 @@ -147,6 +174,7 @@ sudo update-grub ${AGI} emacs ${AGI} reiserfsprogs gparted +${AGI} smartmontools gddrescue # Connection serveurs NFS ${AGI} nfs-common portmap @@ -173,12 +201,31 @@ ${AGI} dh-make lintian dupload ${AGI} abiword gnumeric gnumeric-plugins-extra ${AGI} texlive texlive-latex-recommended texlive-latex-extra texlive-humanities -# Multimedia -${AGI} jackd patchage -${AGI} pulseaudio-module-jack -sudo adduser $(whoami) audio -# /etc/security/limits.d/audio.conf -> set rtprio from 95 to 99 ??? +# Jackd +if [ "x${INSTALL_JACKD}" = "x1" ]; then + ${AGI} jackd patchage + ${AGI} pulseaudio-module-jack + + if [ ! -f ${HOME}/.pulse/pulsejack.pa ]; then + cp /etc/pulse/default.pa ${HOME}/.pulse/pulsejack.pa + fi + + sudo sed -i -e 's!.*\(autospawn = \).*!\1no!' /etc/pulse/client.conf + if ! grep "load-module module-jack-source" ${HOME}/.pulse/pulsejack.pa 1> /dev/null 2>&1; then + cat >> ${HOME}/.pulse/pulsejack.pa << "EOF" + +### JACK setup (Hugo Villeneuve) +load-module module-jack-source +load-module module-jack-sink +EOF + fi + + sudo adduser $(whoami) audio + # /etc/security/limits.d/audio.conf -> set rtprio from 95 to 99 ??? +fi + +# Multimedia ${AGI} libdvdread4 if [ ! -h /usr/lib/libdvdcss.so.2 ]; then sudo /usr/share/doc/libdvdread4/install-css.sh @@ -198,10 +245,13 @@ ${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 -${AGI} rosegarden + +if [ "x${INSTALL_JACKD}" = "x1" ]; then + ${AGI} vkeybd + ${AGI} rosegarden +fi ${AGI} sylpheed gconftool -s /desktop/gnome/url-handlers/mailto/command -t string "sylpheed --compose %s" @@ -229,6 +279,7 @@ EOF ${AGI} epdfview ${AGI} psutils +${AGI} imagemagick ${AGI} gimp ubuntu_cleanup