informatica:raspberry:mediacenter
This is an old revision of the document!
Table of Contents
Openelec
Descargar imagen
Crear ISO
Como root:
dd bs=4M if=OpenELEC-RPi2.arm-6.95.3.img of=/dev/mmcblk0
Tarda medio minuto aprox.
Cerramos el disco por si acaso:
sync
Alimentar disco externo USB
En el fichero config.txt de la partición boot añadimos al final:
safe_mode_gpio=4 max_usb_current=1
Primer arranque
Al ponerla en la Raspberry, la primera vez hace:
resize /dev/mmcblk0p2
Y tarda unos minutos. Se reinicia y lista para usar
Cambiar idoma
En System > Appearence > International
NFS
Importante!!!! el nombre del fichero es el mismo que la ruta del directorio pero cambiando / por -
/storage/pelis -> storage-pelis.mount
OpenELEC:~ # mkdir /storage/pelis OpenELEC:~ # vi /storage/.config/system.d/storage-pelis.mount
[Unit] Description=nfs escorxador matarosensefils Requires=network-online.service After=network-online.service Before=kodi.service [Mount] What=10.91.168.250:/export/pelis Where=/storage/pelis Options= Type=nfs [Install] WantedBy=multi-user.target
systemctl enable storage-pelis.mount
Reiniciamos la raspberry para que lo monte
Xbian
# sudo dd bs=4M if=XBian1.0Alpha5.img of=/dev/mmcblk0
Algunos vídeos MKV con el codec V_MPEG4/ISO/AVC no se ven y hay que poner en config.txt:
gpu_mem=256
Arrancar automáticamente y evitar pantalla negra al salir
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=139758&p=927021
/usr/local/bin/startkodi
#!/bin/bash
fbset_bin=`which fbset`
xset_bin=`which xset`
xrefresh_bin=`which xrefresh`
if [ ! -z $fbset_bin ]; then
DEPTH2=`$fbset_bin | head -3 | tail -1 | cut -d " " -f 10`
fi
kodi "$@"
if [ ! -z $fbset_bin ]; then
if [ "$DEPTH2" == "8" ]; then
DEPTH1=16
else
DEPTH1=8
fi
$fbset_bin -depth $DEPTH1 > /dev/null 2>&1
$fbset_bin -depth $DEPTH2 > /dev/null 2>&1
fi
if [ ! -z $xset_bin ] && [ ! -z $xrefresh_bin ]; then
if [ -z $DISPLAY ]; then
DISPLAY=":0"
fi
$xset_bin -display $DISPLAY -q > /dev/null 2>&1
if [ "$?" == "0" ]; then
$xrefresh_bin -display $DISPLAY > /dev/null 2>&1
fi
fi
VT="$(fgconsole)"
if [ "$VT" ]; then
sudo chvt 7
sudo chvt "$VT"
fi
informatica/raspberry/mediacenter.1472594239.txt.gz · Last modified: by jose
