#!/bin/bash ############################################################################## # Script de instalación de las dependencias de Libre Media Server # en Debian Wheezy. # Necesita root para ejecutar # (c) 2012-2013 Santi Noreña # GPL License ############################################################################### # Comprobamos root (( EUID )) && echo ‘You need to be root.’ && exit 1 # Instalamos OLA desde el repositorio del proyecto # copia de seguridad de sources.list cp /etc/apt/sources.list /etc/apt/sources.list.old # Comprobamos que el repositorio no está en soucers.list output=`grep apt.openlighting.org /etc/apt/sources.list | wc -l` if [ "$output" -eq "0" ]; then #Añadimos el repositorio ola a sources.list echo "deb http://apt.openlighting.org/debian/ wheezy main" >> /etc/apt/sources.list fi apt-get update apt-get -y --force-yes install ola libav-tools libqtcore4 libqtgui4 libqt4-script libqtwebkit4 libftgl2 libmagick++5 tcl tk if [ "$?" -eq "0" ]; then echo "apt-get finish ok" else echo "apt-get return errors!" fi