lms-video/scripts/install_precise.sh
2023-09-05 17:21:57 +02:00

28 lines
1.3 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
##############################################################################
# Script de instalación de las dependencias de Libre Media Server
# en Ubuntu Precise 12.04.
# 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/ubuntu precise main" >> /etc/apt/sources.list
fi
apt-get update
apt-get -y --force-yes install ola libqtcore4 libqtgui4 libqtwebkit4 libmagick++4 libav-tools libftgl2 libavifile-0.7c2 libgmerlin-avdec1 libmpeg3-1 tcl tk
if [ "$?" -eq "0" ]; then
echo "apt-get finish ok"
else echo "apt-get return errors!"
fi
ln -s /usr/lib/libMagick++.so.4 /usr/lib/libMagick++.so.5
ln -s /usr/lib/libMagickCore.so.4 /usr/lib/libMagickCore.so.5
ln -s /usr/lib/libMagickWand.so.4 /usr/lib/libMagickWand.so.5