X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=ubuntu%2Fubuntu-cfg.sh;h=c3a3fe9274f6efdc873500676dd9f26874d392d2;hb=b7d1d99f41dcf50a8635f608679947f4455a0c7c;hp=50326ef9c5a2335652f4d4d2d0329acc2ecc10f2;hpb=6c51f5601d5d79720265f48b81e5d5187879417f;p=hvlinux.git diff --git a/ubuntu/ubuntu-cfg.sh b/ubuntu/ubuntu-cfg.sh index 50326ef..c3a3fe9 100755 --- a/ubuntu/ubuntu-cfg.sh +++ b/ubuntu/ubuntu-cfg.sh @@ -10,6 +10,7 @@ GST=gstreamer0.10 APT="sudo apt-get --yes --force-yes" AGI="${APT} install" +AGINR="${AGI} --no-install-recommends" ubuntu_cleanup() { @@ -19,6 +20,12 @@ ubuntu_cleanup() ${APT} autoclean } +hv_add_repo() +{ + sudo add-apt-repository ${1} + ${APT} update +} + if [ "`id -u`" -eq 0 ]; then echo "You must NOT be the super-user to execute this script" exit 1 @@ -46,7 +53,11 @@ if dpkg --list | grep "samba-common" 1> /dev/null 2>&1; then fi if dpkg --list | grep "evolution-exchange" 1> /dev/null 2>&1; then - ${APT} remove --purge evolution + ${APT} remove --purge evolution evolution-plugins evolution-webcal evolution-data-server evolution-indicator evolution-common +fi + +if dpkg --list | grep "empathy-common" 1> /dev/null 2>&1; then + ${APT} remove --purge empathy* fi if dpkg --list | grep "pppconfig" 1> /dev/null 2>&1; then @@ -65,6 +76,10 @@ if dpkg --list | grep "vinagre" 1> /dev/null 2>&1; then ${APT} remove --purge vinagre fi +if dpkg --list | grep "modemmanager" 1> /dev/null 2>&1; then + ${APT} remove --purge modemmanager +fi + # Braille if dpkg --list | grep "brltty" 1> /dev/null 2>&1; then ${APT} remove --purge brltty @@ -176,7 +191,7 @@ ${AGI} emacs ${AGI} reiserfsprogs gparted ${AGI} gddrescue -${AGI} smartmontools --no-install-recommends +${AGINR} smartmontools # Connection serveurs NFS ${AGI} nfs-common portmap @@ -186,6 +201,9 @@ ${AGI} subversion # Development if [ "x${INSTALL_DEV_TOOLS}" = "x1" ]; then ${AGI} git + # Set global configuration options to ~/.gitconfig + git config --global core.editor emacs + git config --global color.ui true ${AGI} build-essential texinfo gettext gawk bison flex ${AGI} autoconf autoconf-doc autotools-dev libtool ${AGI} manpages manpages-dev manpages-posix manpages-posix-dev @@ -202,12 +220,16 @@ if [ "x${INSTALL_DEV_TOOLS}" = "x1" ]; then ${AGI} dh-make lintian dupload fi +if [ "x${INSTALL_WEB_SERVER}" = "x1" ]; then + ${AGI} libapache2-mod-php5 +fi + ${AGI} abiword gnumeric gnumeric-plugins-extra ${AGI} texlive texlive-latex-recommended texlive-latex-extra texlive-humanities # Jackd if [ "x${INSTALL_MUSIC_STUDIO}" = "x1" ]; then - ${AGI} jackd patchage + ${AGINR} jackd patchage sudo sed -i -e 's!^\(@audio\s*-\s*rtprio\s*\).*!\199!' \ /etc/security/limits.d/audio.conf ${AGI} pulseaudio-module-jack @@ -238,7 +260,14 @@ if [ ! -h /usr/lib/libdvdcss.so.2 ]; then fi ${AGI} ffmpeg ${AGI} ${GST}-ffmpeg ${GST}-plugins-bad ${GST}-plugins-ugly ${GST}-fluendo-mp3 -${AGI} mozilla-plugin-gnash # Requires "mysql-common" +${AGI} libavcodec-extra-52 +if [ "x${INSTALL_GNASH}" = "x1" ]; then + ${AGI} mozilla-plugin-gnash # Requires "mysql-common" +else + if dpkg --list | grep "gnash" 1> /dev/null 2>&1; then + ${APT} remove --purge gnash* + fi +fi if [ -h /dev/cdrom ]; then # Don't install on machines without CD/DVD-ROM ${AGI} vlc mozilla-plugin-vlc ${AGI} sound-juicer @@ -257,6 +286,7 @@ if [ "x${INSTALL_MUSIC_STUDIO}" = "x1" ]; then ${AGI} lilypond ${AGI} vkeybd ${AGI} rosegarden + ${AGI} ardour fi ${AGI} sylpheed @@ -267,7 +297,15 @@ if [ -f ${HOME}/.sylpheed-2.0/folderlist.xml ]; then ${HOME}/.sylpheed-2.0/folderlist.xml fi -if [ "x${INSTALL_WMAKER}" = "x1" ]; then +# Chromium +hv_add_repo "ppa:chromium-daily/ppa" +${AGI} chromium-browser + +if [ "x${INSTALL_NETBOOK}" = "x1" ]; then + ${AGI} battery-status + ${AGI} maximus + ${AGI} window-picker-applet +else ${AGI} wmaker if [ -d ${HOME}/GNUstep/Library/WindowMaker ]; then cat > ${HOME}/GNUstep/Library/WindowMaker/autostart << "EOF" @@ -290,6 +328,9 @@ ${AGI} psutils ${AGI} imagemagick ${AGI} gimp +# Pour changer la couleur des scrollbars (gris sur gris par défaut) +${AGI} gnome-color-chooser + ubuntu_cleanup exit $?