From: gobo72 Date: Thu, 11 Nov 2010 20:45:41 +0000 (+0000) Subject: Ajout variable pour activer/désactiver installation de jackd X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=5127a0d725b40429f8f7bfe58f877b03906ccb6d;p=hvlinux.git Ajout variable pour activer/désactiver installation de jackd --- diff --git a/ubuntu/ubuntu-cfg.sh b/ubuntu/ubuntu-cfg.sh index 5cfa4a0..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 @@ -173,6 +174,7 @@ sudo update-grub ${AGI} emacs ${AGI} reiserfsprogs gparted +${AGI} smartmontools gddrescue # Connection serveurs NFS ${AGI} nfs-common portmap @@ -199,28 +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 +# 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 + 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 + 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" + 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 + fi -sudo adduser $(whoami) audio -# /etc/security/limits.d/audio.conf -> set rtprio from 95 to 99 ??? + 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 @@ -240,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"