From dfdccbde357130301f49d4eb5f24a2d60b96b792 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Fri, 12 Jan 2024 13:48:08 +0100 Subject: [PATCH] =?UTF-8?q?Modificado=20auto=5Fraspi.sh=20y=20a=C3=B1adido?= =?UTF-8?q?=20auto=5Fraspi.desktop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash/auto_raspi.desktop | 28 ++++++++++++++++++++++++++++ bash/auto_raspi.sh | 6 ++++++ 2 files changed, 34 insertions(+) create mode 100644 bash/auto_raspi.desktop diff --git a/bash/auto_raspi.desktop b/bash/auto_raspi.desktop new file mode 100644 index 0000000..4747d6e --- /dev/null +++ b/bash/auto_raspi.desktop @@ -0,0 +1,28 @@ +[Desktop Entry] + +# The type as listed above +Type=Application + +# The version of the desktop entry specification to which this file complies +Version=1.0 + +# The name of the application +Name=eom + +# A comment which can/will be used as a tooltip +Comment=Spectrum Screens SlideShow + +# The path to the folder in which the executable is run +#Path=/opt/jmemorise + +# The executable of the application, possibly with arguments. +Exec=/home/sergio/gitea/scripts/bash/auto_raspi.sh 1 + +# The name of the icon that will be used to display this entry +#Icon=jmemorize + +# Describes whether this application needs to be run in a terminal or not +#Terminal=false + +# Describes the categories in which this entry should be shown +#Categories=Education;Languages;Java; diff --git a/bash/auto_raspi.sh b/bash/auto_raspi.sh index bd6f46c..f2a0061 100755 --- a/bash/auto_raspi.sh +++ b/bash/auto_raspi.sh @@ -14,6 +14,12 @@ fi # Script para montar un tunel ssh hasta una camara # y mostrar el stream de video con el vlc +# Añadir al fichero ~/.ssh/config la siguiente información +# Host cam +# HostName sustancia.synology.me +# User sergio +# Port 4545 +# LocalForward 127.0.0.1:3501 192.168.1.150:554 if [[ $1 == 2 ]] then sleep 20