Initial commit V0.01-1
This commit is contained in:
commit
7fe6e17db7
61 changed files with 15873 additions and 0 deletions
5
scripts/extended_desktop.sh
Executable file
5
scripts/extended_desktop.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
xrandr -q
|
||||
xrandr --output LVDS --pos 1024x0
|
||||
xrandr --output VGA-0 --mode 1024x768
|
||||
xrandr --output LVDS --mode 1024x768
|
||||
xrandr --output VGA-0 --right-of LVDS
|
28
scripts/install_precise.sh
Normal file
28
scripts/install_precise.sh
Normal file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
##############################################################################
|
||||
# Script de instalación de las dependencias de Libre Media Server
|
||||
# en Ubuntu Precise 12.04.
|
||||
# Necesita root para ejecutar
|
||||
# (c) 2012 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/ precise main" >> /etc/apt/sources.list
|
||||
fi
|
||||
apt-get update
|
||||
apt-get -y install ola puredata tcl tk
|
||||
if [ "$?" -eq "0" ]; then
|
||||
echo "apt-get finish ok"
|
||||
else "apt-get return errors!"
|
||||
fi
|
||||
|
||||
|
||||
|
28
scripts/install_squeeze.sh
Executable file
28
scripts/install_squeeze.sh
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
##############################################################################
|
||||
# Script de instalación de las dependencias de Pure Media Server
|
||||
# en Debian Squeeze.
|
||||
# Necesita root para ejecutar
|
||||
# (c) 2012 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/ squeeze main" >> /etc/apt/sources.list
|
||||
fi
|
||||
apt-get update
|
||||
apt-get -y install ola puredata tcl tk pd-zexy
|
||||
if [ "$?" -eq "0" ]; then
|
||||
echo "apt-get finish ok"
|
||||
else "apt-get return errors!"
|
||||
fi
|
||||
|
||||
|
||||
|
20
scripts/install_wheezy.sh
Executable file
20
scripts/install_wheezy.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
##############################################################################
|
||||
# Script de instalación de las dependencias de Libre Media Server
|
||||
# en Debian Wheezy.
|
||||
# Necesita root para ejecutar
|
||||
# (c) 2012 Santi Noreña
|
||||
# GPL License
|
||||
###############################################################################
|
||||
# Comprobamos root
|
||||
(( EUID )) && echo ‘You need to be root.’ && exit 1
|
||||
#Instalamos el paquete suministrado con el release
|
||||
dpkg -i ola_0.8.26-1_i386.deb
|
||||
# Install Pure Data y OLA
|
||||
# libav para generar thumbs
|
||||
apt-get install puredata gem tcl tk libav-tools pd-pdogg pd-pan
|
||||
if [ "$?" -eq "0" ]; then
|
||||
echo "apt-get finish ok"
|
||||
else "apt-get return errors!"
|
||||
fi
|
||||
apt-get -f install
|
37
scripts/make_thumbs.sh
Executable file
37
scripts/make_thumbs.sh
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
# make_thumbs v0.0.1
|
||||
# Script que genera thumbnails de todas las películas en el directorio Media
|
||||
# Copyright Santi Noreña 2012
|
||||
# puremediaserver at gmail dot com
|
||||
# GPL License
|
||||
|
||||
# Edit next line to path to your media
|
||||
export MEDIA_DIR=/home/santi/PMS/svn/media/video
|
||||
export E_XCD=86
|
||||
|
||||
cd $MEDIA_DIR ||{
|
||||
echo "Can not change to directory." $MEDIA_DIR
|
||||
exit $E_XCD;
|
||||
}
|
||||
|
||||
|
||||
for folder in $(find -maxdepth 1 -type d); do
|
||||
rm $folder/thumbs/*
|
||||
mkdir $folder/thumbs
|
||||
done
|
||||
|
||||
for file in $(find . -maxdepth 2 -mindepth 2 -type f ); do
|
||||
avconv -i $file -f image2 -frames:v 1 -s 64x46 -vcodec mjpeg $file.jpg
|
||||
done
|
||||
|
||||
for folder in $(find -maxdepth 1 -type d); do
|
||||
mv $folder/*.jpg $folder/thumbs
|
||||
done
|
||||
|
||||
# Crear una galería de mini imágenes
|
||||
#for i in `ls *.jpg`;
|
||||
#do
|
||||
# convert -geometry 320x240 $i galleria-$i
|
||||
#done
|
||||
|
||||
exit 0
|
2
scripts/single_desktop.sh
Executable file
2
scripts/single_desktop.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
xrandr --output VGA-0 --off
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue