From 4f185d73aefd6f09c3264a95fc5a2df4737d1eab Mon Sep 17 00:00:00 2001 From: gobo72 Date: Fri, 12 Nov 2010 17:00:27 +0000 Subject: [PATCH] =?utf8?q?Mise=20=C3=A0=20jour=20pour=20ordinateur=20de=20?= =?utf8?q?Karine,=20ajout=20d'optins=20pour=20installer=20s=C3=A9lectiveme?= =?utf8?q?nt=20certains=20packages?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ubuntu/ubuntu-cfg.sh | 76 +++++++++++++++++++++++++------------------- 1 file changed, 43 insertions(+), 33 deletions(-) diff --git a/ubuntu/ubuntu-cfg.sh b/ubuntu/ubuntu-cfg.sh index eb1bb0c..29be224 100755 --- a/ubuntu/ubuntu-cfg.sh +++ b/ubuntu/ubuntu-cfg.sh @@ -4,8 +4,10 @@ set -o errexit # Liste des items: # 1. Désactiver touch CAPS LOCK +USE_OPENOFFICE=1 #INSTALL_WMAKER=1 -INSTALL_JACKD=1 +#INSTALL_MUSIC_STUDIO=1 +#INSTALL_DEV_TOOLS=1 GST=gstreamer0.10 @@ -36,8 +38,10 @@ if dpkg --list | grep "bluez-gstreamer" 1> /dev/null 2>&1; then ${APT} remove --purge bluetooth bluez bluez-gstreamer bluez-alsa bluez-cups fi -if dpkg --list | grep "openoffice" 1> /dev/null 2>&1; then - ${APT} remove --purge openoffice* +if [ "x${USE_OPENOFFICE}" != "x1" ]; then + if dpkg --list | grep "openoffice" 1> /dev/null 2>&1; then + ${APT} remove --purge openoffice* + fi fi if dpkg --list | grep "samba-common" 1> /dev/null 2>&1; then @@ -179,30 +183,34 @@ ${AGI} smartmontools gddrescue # Connection serveurs NFS ${AGI} nfs-common portmap -# Development ${AGI} subversion -${AGI} git - -${AGI} build-essential texinfo gettext gawk bison flex -${AGI} autoconf autoconf-doc autotools-dev libtool -${AGI} manpages manpages-dev manpages-posix manpages-posix-dev - -# dockapp development -${AGI} libx11-dev libxpm-dev libxext-dev -${AGI} libgtk2.0-dev libglib2.0-dev -# wmnotify uses SSL -${AGI} libssl-dev -# hvlinux -${AGI} libncurses-dev -# Debian packaging -${AGI} dh-make lintian dupload +# Development +if [ "x${INSTALL_DEV_TOOLS}" = "x1" ]; then + ${AGI} git + ${AGI} build-essential texinfo gettext gawk bison flex + ${AGI} autoconf autoconf-doc autotools-dev libtool + ${AGI} manpages manpages-dev manpages-posix manpages-posix-dev + + # dockapp development + ${AGI} libx11-dev libxpm-dev libxext-dev + ${AGI} libgtk2.0-dev libglib2.0-dev + # wmnotify uses SSL + ${AGI} libssl-dev + # hvlinux + ${AGI} libncurses-dev + + # Debian packaging + ${AGI} dh-make lintian dupload +fi -${AGI} abiword gnumeric gnumeric-plugins-extra +if [ "x${USE_OPENOFFICE}" = "x1" ]; then + ${AGI} abiword gnumeric gnumeric-plugins-extra +fi ${AGI} texlive texlive-latex-recommended texlive-latex-extra texlive-humanities # Jackd -if [ "x${INSTALL_JACKD}" = "x1" ]; then +if [ "x${INSTALL_MUSIC_STUDIO}" = "x1" ]; then ${AGI} jackd patchage sudo sed -i -e 's!^\(@audio\s*-\s*rtprio\s*\).*!\199!' \ /etc/security/limits.d/audio.conf @@ -235,31 +243,33 @@ fi ${AGI} ffmpeg ${AGI} ${GST}-ffmpeg ${GST}-plugins-bad ${GST}-plugins-ugly ${GST}-fluendo-mp3 ${AGI} mozilla-plugin-gnash # Requires "mysql-common" -${AGI} vlc mozilla-plugin-vlc if [ -h /dev/cdrom ]; then # Don't install on machines without CD/DVD-ROM +${AGI} vlc mozilla-plugin-vlc ${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} audacity libmp3lame0 tap-plugins -${AGI} lilypond -if [ "x${INSTALL_JACKD}" = "x1" ]; then +if [ "x${INSTALL_MUSIC_STUDIO}" = "x1" ]; then + # Désactivation de Timidity au démarrage (sytem-wide): + sudo sed -i -e 's!^# \(TIM_ALSASEQ=false\)!\1!' /etc/default/timidity + + ${AGI} lilypond ${AGI} vkeybd ${AGI} rosegarden fi ${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!^\( ${HOME}/.gtkrc-2.0 << "EOF" + ${AGI} pcmanfm + cat > ${HOME}/.gtkrc-2.0 << "EOF" gtk-icon-theme-name="Tango" gtk-enable-event-sounds=0 gtk-enable-input-feedback-sounds=0 EOF +fi ${AGI} epdfview ${AGI} psutils -- 2.20.1