From e81cb6a8162ff46e4653cbc74084f4f217a160d1 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Tue, 12 Sep 2023 08:04:48 +0200 Subject: [PATCH] Renombrado eom.sh a auto_raspi.sh --- auto_raspi.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 auto_raspi.sh diff --git a/auto_raspi.sh b/auto_raspi.sh new file mode 100755 index 0000000..c9677f4 --- /dev/null +++ b/auto_raspi.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Script para ejecutar un slideshow con eom +# de una carpeta al azar dentro de un directorio + +if [[ $1 == 1 ]] +then + FOLDER=/home/sergio/zx/scr_packs + SUBFOLDERS=("${FOLDER}"/*/) + NUM=$(( RANDOM % ${#SUBFOLDERS[@]})) + #eom -f -s "${SUBFOLDERS[$NUM]}" + feh "${SUBFOLDERS[$NUM]}" -z -D 60 -F -Y +fi + +# Script para montar un tunel ssh hasta una camara +# y mostrar el stream de video con el vlc + +if [[ $1 == 2 ]] +then + sleep 20 + ssh -f -o ExitOnForwardFailure=yes cam sleep 30 + vlc -f rtsp://admin:ImouCr1st1n4@127.0.0.1:3501 +fi