Last active
August 19, 2020 03:55
Revisions
-
tommeier revised this gist
May 18, 2014 . 1 changed file with 13 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,6 +26,14 @@ create_symlink() { ln -f -s $symlink_source $symlink } SERVIIO_QPKG_PATH="/share/MD0_DATA/.qpkg/Serviio" SERVIIO_SCRIPT_PATH="${SERVIIO_QPKG_PATH}/serviio.sh" if [ -d $SERVIIO_QPKG_PATH ]; then write_to_log "--> Stopping Serviio." sh $SERVIIO_SCRIPT_PATH stop fi; create_symlink '/bin/bash' '/opt/bin/bash' if [[ $(grep -q "/opt/lib" "/etc/ld.so.conf" && echo $?) = 0 ]]; then @@ -55,4 +63,9 @@ if [[ "$PKG_CONFIG_PATH" != *"$CODEC_DIRECTORY/rtmpdump/librtmp"* ]]; then export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$CODEC_DIRECTORY/openssl-1.0.1e:$CODEC_DIRECTORY/rtmpdump/librtmp fi; if [ -d $SERVIIO_QPKG_PATH ]; then write_to_log "--> Starting Serviio." sh $SERVIIO_SCRIPT_PATH start fi; write_to_log ">> Completed autorun-serviio.sh script <<" -
tommeier revised this gist
Dec 23, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -320,7 +320,6 @@ else echo "--- Skipping fribidi" fi; if [ ! -d "enca" ]; then echo ">>> Installing enca" rm -f /opt/bin/enconv @@ -334,6 +333,7 @@ if [ ! -d "enca" ]; then make make check make install cd $CODEC_DIRECTORY else echo "--- Skipping enca" fi; -
tommeier revised this gist
Nov 9, 2013 . 1 changed file with 1 addition and 16 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,23 +2,8 @@ set -e #How to add to Qnap TS-439: # http://wiki.qnap.com/wiki/Running_Your_Own_Application_at_Startup write_to_log() { local message="$1" -
tommeier revised this gist
Nov 9, 2013 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -187,6 +187,8 @@ if [ ! -d "x264" ]; then echo ">>> Installing x264" git clone $EDGE_X264 x264 cd x264 make distclean make clean ./configure --prefix=$PREFIX --enable-shared make make install @@ -326,6 +328,8 @@ if [ ! -d "enca" ]; then git clone $EDGE_ENCA cd enca make distclean make clean ./configure --prefix=$PREFIX --enable-shared make make check @@ -405,6 +409,8 @@ if [ ! -d "rtmpdump" ]; then git clone $EDGE_RTMPDUMP cd rtmpdump make distclean make clean make SYS=posix prefix=$PREFIX make SYS=posix prefix=$PREFIX install -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,6 +16,7 @@ set -e # TODO : Make this script optionally update all git repos and rerun if any updates exist # TODO : Determine which codecs are installed on system + version, only install if > current # TODO : Make script handle errors when running repeatedly # [code]curl -L https://gist.github.com/tommeier/5324815/raw/install_codecs.sh | CLEAN=true bash[/code] ## Codec compile support URL_AUTOMAKE="http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz" -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -66,7 +66,6 @@ cp -fR $WEB_UI_DIR $SERVIIO_PATH cd $SERVIIO_WEBUI_PATH rm -rf .htacess echo "${LOG_PREFIX} [Download] Updating .htaccess file" curl -L -O https://gist.github.com/tommeier/5324815/raw/.htaccess echo "${LOG_PREFIX} Applying -x read permission to .htaccess file" chmod 755 .htaccess -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -58,7 +58,7 @@ fi; echo "${LOG_PREFIX}Clearing existing web_ui (${SERVIIO_WEBUI_PATH})" rm -rf $SERVIIO_WEBUI_PATH mv -f "Web-UI-for-Serviio-${SERVIIO_UI_BRANCH}" $WEB_UI_DIR echo "${LOG_PREFIX}Sending new web_ui" cp -fR $WEB_UI_DIR $SERVIIO_PATH -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -58,7 +58,7 @@ fi; echo "${LOG_PREFIX}Clearing existing web_ui (${SERVIIO_WEBUI_PATH})" rm -rf $SERVIIO_WEBUI_PATH mv -f "Web-UI-for-Serviio-${SERVIIO_UI_BRANCH}" $SERVIIO_WEBUI_PATH echo "${LOG_PREFIX}Sending new web_ui" cp -fR $WEB_UI_DIR $SERVIIO_PATH -
tommeier revised this gist
Sep 14, 2013 . 2 changed files with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,6 +15,7 @@ set -e # TODO : Make this script optionally update all git repos and rerun if any updates exist # TODO : Determine which codecs are installed on system + version, only install if > current # TODO : Make script handle errors when running repeatedly ## Codec compile support URL_AUTOMAKE="http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz" This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -67,7 +67,7 @@ cd $SERVIIO_WEBUI_PATH rm -rf .htacess echo "${LOG_PREFIX} [Download] Updating .htaccess file" # Perms should be -rwxr--r-- curl -L -O https://gist.github.com/tommeier/5324815/raw/.htaccess echo "${LOG_PREFIX} Applying -x read permission to .htaccess file" chmod 755 .htaccess -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -67,7 +67,9 @@ cd $SERVIIO_WEBUI_PATH rm -rf .htacess echo "${LOG_PREFIX} [Download] Updating .htaccess file" # Perms should be -rwxr--r-- curl -C - -L -O https://gist.github.com/tommeier/5324815/raw/.htaccess echo "${LOG_PREFIX} Applying -x read permission to .htaccess file" chmod 755 .htaccess echo "${LOG_PREFIX} Reinitialising Qthttpd with updated .htaccess (now admin authenticated)" /etc/init.d/Qthttpd.sh restart -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 20 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,14 @@ set -e # Options: # curl -L https://gist.github.com/tommeier/5324815/raw/update_webui.sh | CLEAN=true bash # TODO : Pass in serviio web ui branch/git ref for install, or key in as input SERVIIO_QPKG_PATH="/share/MD0_DATA/.qpkg/Serviio" SERVIIO_SCRIPT_PATH="${SERVIIO_QPKG_PATH}/serviio.sh" # Github page: https://github.com/SwoopX/Web-UI-for-Serviio SERVIIO_UI_BRANCH="Serviio-1.3" #or master (depending on swoopx fork of ui) LOG_PREFIX=" >> " UPDATE_SERVIIO_DIR="/share/MD0_DATA/.update_serviio_webui" SERVIIO_PATH="/share/MD0_DATA/.qpkg/Serviio" @@ -23,6 +31,15 @@ echo '--> Installing dependencies with Optware IPKG' ipkg update ipkg install unzip echo '--> Checking prerequisites' if [ ! -d $SERVIIO_QPKG_PATH ]; then echo "!!! Error: Please ensure Serviio qpkg is installed first." exit 1 else echo "--> Stopping Serviio." sh $SERVIIO_SCRIPT_PATH stop fi; if [[ $CLEAN = 'true' ]]; then echo '--> Cleaning existing directory' rm -rf $UPDATE_SERVIIO_DIR @@ -31,7 +48,6 @@ fi; mkdir -p $UPDATE_SERVIIO_DIR cd $UPDATE_SERVIIO_DIR if [[ ! -f 'webui.zip' ]]; then echo "${LOG_PREFIX} [Download] Downloading Serviio web files (branch: '${SERVIIO_UI_BRANCH}' from github)" curl -C - --insecure -L -o 'webui.zip' "https://github.com/SwoopX/Web-UI-for-Serviio/archive/${SERVIIO_UI_BRANCH}.zip" @@ -56,7 +72,9 @@ curl -L https://gist.github.com/tommeier/5324815/raw/.htaccess echo "${LOG_PREFIX} Reinitialising Qthttpd with updated .htaccess (now admin authenticated)" /etc/init.d/Qthttpd.sh restart echo "${LOG_PREFIX}Done!" echo "--> Starting Serviio." sh $SERVIIO_SCRIPT_PATH start -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,6 +13,9 @@ set -e # > git clone https://gist.github.com/5324815.git updating_codecs # > sh /share/MD0_DATA/Public/updating_codecs/install_codecs.sh # TODO : Make this script optionally update all git repos and rerun if any updates exist # TODO : Determine which codecs are installed on system + version, only install if > current ## Codec compile support URL_AUTOMAKE="http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz" URL_WHICH='http://www.xs4all.nl/~carlo17/which/which-2.20.tar.gz' -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -47,8 +47,6 @@ fi; mkdir -p $UPDATE_SERVIIO_DIR cd $UPDATE_SERVIIO_DIR if [[ $RUN_BACKUP = 'true' ]]; then echo "${LOG_PREFIX}Backing up current Serviio" mkdir -p '/share/MD0_DATA/.qpkg_backup' -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 16 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,8 @@ set -e # Context: # To get qnap package updated from base qpkg to serviio 1.3.1. # This is an update script new serviio versions on a Qnap TS-439 pro. I run this # script from my QNAP while SSHed in from a Mac. # You can fork this code here: https://gist.github.com/tommeier/5324815 # ! Turn off the Serviio app in interface before beginning ! @@ -21,6 +22,8 @@ set -e # RUN_BACKUP=true sh update_serviio.sh # run (in case of errors) : # sh update_serviio.sh SERVIIO_QPKG_PATH="/share/MD0_DATA/.qpkg/Serviio" SERVIIO_SCRIPT_PATH="${SERVIIO_QPKG_PATH}/serviio.sh" LOG_PREFIX=" >> " UPDATE_SERVIIO_DIR="/share/MD0_DATA/.update_serviio" if [[ $CLEAN = 'true' ]]; then @@ -32,6 +35,15 @@ echo '--> Installing dependencies with Optware IPKG' ipkg update ipkg install unzip echo '--> Checking prerequisites' if [ ! -d $SERVIIO_QPKG_PATH ]; then echo "!!! Error: Please ensure Serviio qpkg is installed first." exit 1 else echo "--> Stopping Serviio." sh $SERVIIO_SCRIPT_PATH stop fi; mkdir -p $UPDATE_SERVIIO_DIR cd $UPDATE_SERVIIO_DIR @@ -85,6 +97,9 @@ cp -fR plugins /share/MD0_DATA/.qpkg/Serviio echo "${LOG_PREFIX}Done!" echo "--> Starting Serviio." sh $SERVIIO_SCRIPT_PATH start echo "${LOG_PREFIX}Next steps :" echo "${LOG_PREFIX} : -> Update web_ui (see update_webui.sh)" echo "${LOG_PREFIX} : -> Update codecs from source (see install_codecs.sh)" -
tommeier revised this gist
Sep 14, 2013 . 2 changed files with 26 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set -e # Context: # This is update script new serviio versions on a Qnap TS-439 pro. I run this # script from my QNAP while SSHed in from a Mac. # You can fork this code here: https://gist.github.com/tommeier/5324815 # ! Turn off the Serviio app in interface before beginning ! # Running this raw script is as easy as running this one line on the QNAP: # curl -L https://gist.github.com/tommeier/5324815/raw/update_serviio.sh | bash @@ -28,6 +28,10 @@ if [[ $CLEAN = 'true' ]]; then rm -rf $UPDATE_SERVIIO_DIR fi; echo '--> Installing dependencies with Optware IPKG' ipkg update ipkg install unzip mkdir -p $UPDATE_SERVIIO_DIR cd $UPDATE_SERVIIO_DIR This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set -e # Context: # This is update script for the web-ui (used actively on a Qnap TS-439 pro). I run this # script from my QNAP while SSHed in from a Mac. # You can fork this code here: https://gist.github.com/tommeier/5324815 # ! Turn off the Serviio app in interface before beginning ! # Running this raw script is as easy as running this one line on the QNAP: # curl -L https://gist.github.com/tommeier/5324815/raw/update_webui.sh | bash @@ -13,9 +13,16 @@ set -e LOG_PREFIX=" >> " UPDATE_SERVIIO_DIR="/share/MD0_DATA/.update_serviio_webui" SERVIIO_PATH="/share/MD0_DATA/.qpkg/Serviio" WEB_UI_DIR="web_ui" SERVIIO_WEBUI_PATH="${SERVIIO_PATH}/${WEB_UI_DIR}" echo "${LOG_PREFIX}Updating web-ui from github" echo '--> Installing dependencies with Optware IPKG' ipkg update ipkg install unzip if [[ $CLEAN = 'true' ]]; then echo '--> Cleaning existing directory' rm -rf $UPDATE_SERVIIO_DIR @@ -32,16 +39,23 @@ fi; /opt/bin/unzip -o webui.zip echo "${LOG_PREFIX}Clearing existing web_ui (${SERVIIO_WEBUI_PATH})" rm -rf $SERVIIO_WEBUI_PATH mv -f "Web-UI-for-Serviio-${SERVIIO_UI_BRANCH}" $WEB_UI_DIR echo "${LOG_PREFIX}Sending new web_ui" cp -fR $WEB_UI_DIR $SERVIIO_PATH cd $SERVIIO_WEBUI_PATH rm -rf .htacess echo "${LOG_PREFIX} [Download] Updating .htaccess file" # Perms should be -rwxr--r-- curl -L https://gist.github.com/tommeier/5324815/raw/.htaccess echo "${LOG_PREFIX} Reinitialising Qthttpd with updated .htaccess (now admin authenticated)" /etc/init.d/Qthttpd.sh restart echo "${LOG_PREFIX}Done! Go and restart the service!" -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 10 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,28 +9,33 @@ set -e # Running this raw script is as easy as running this one line on the QNAP: # curl -L https://gist.github.com/tommeier/5324815/raw/update_webui.sh | bash # Options: # curl -L https://gist.github.com/tommeier/5324815/raw/update_webui.sh | CLEAN=true bash LOG_PREFIX=" >> " UPDATE_SERVIIO_DIR="/share/MD0_DATA/.update_serviio_webui" echo "${LOG_PREFIX}Updating web-ui from github" if [[ $CLEAN = 'true' ]]; then echo '--> Cleaning existing directory' rm -rf $UPDATE_SERVIIO_DIR fi; mkdir -p $UPDATE_SERVIIO_DIR cd $UPDATE_SERVIIO_DIR SERVIIO_UI_BRANCH="Serviio-1.3" #or master if [[ ! -f 'webui.zip' ]]; then echo "${LOG_PREFIX} [Download] Downloading Serviio web files (branch: '${SERVIIO_UI_BRANCH}' from github)" curl -C - --insecure -L -o 'webui.zip' "https://github.com/SwoopX/Web-UI-for-Serviio/archive/${SERVIIO_UI_BRANCH}.zip" fi; /opt/bin/unzip -o webui.zip echo "${LOG_PREFIX}Clearing existing web_ui" rm -rf /share/MD0_DATA/.qpkg/Serviio/web_ui mv -f "Web-UI-for-Serviio-${SERVIIO_UI_BRANCH}" 'web_ui' echo "${LOG_PREFIX}Sending new web_ui" cp -fR 'web_ui' '/share/MD0_DATA/.qpkg/Serviio' -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,6 +28,7 @@ if [[ $CLEAN = 'true' ]]; then rm -rf $UPDATE_SERVIIO_DIR fi; mkdir -p $UPDATE_SERVIIO_DIR cd $UPDATE_SERVIIO_DIR echo "${LOG_PREFIX}Hope you've turned off Serviio!" -
tommeier revised this gist
Sep 14, 2013 . 3 changed files with 21 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # reload after change "/etc/init.d/Qthttpd.sh restart" php_value magic_quotes_gpc off AuthName "Serviio - Admin Restricted Access (Use NAS admin credentials)" This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,6 +28,8 @@ if [[ $CLEAN = 'true' ]]; then rm -rf $UPDATE_SERVIIO_DIR fi; cd $UPDATE_SERVIIO_DIR echo "${LOG_PREFIX}Hope you've turned off Serviio!" if [[ $RUN_BACKUP = 'true' ]]; then @@ -46,18 +48,21 @@ else fi; echo "${LOG_PREFIX}Updating core Serviio files" #Download latest version SERVIIO_VERSION="serviio-1.3.1" if ! [ -f 'serviio-latest.tar.gz' ]; then echo "${LOG_PREFIX} [Download] Downloading Serviio install files" curl -C - -L -o 'serviio-latest.tar.gz' "http://download.serviio.org/releases/${SERVIIO_VERSION}-linux.tar.gz" fi; tar -zxvf serviio-latest.tar.gz #cp -fR /source/files /dest cp -fR "${SERVIIO_VERSION}/bin" /share/MD0_DATA/.qpkg/Serviio cp -fR "${SERVIIO_VERSION}/config" /share/MD0_DATA/.qpkg/Serviio cp -fR "${SERVIIO_VERSION}/lib" /share/MD0_DATA/.qpkg/Serviio echo "${LOG_PREFIX}Removing existing plugins" rm -rf /share/MD0_DATA/.qpkg/Serviio/plugins/*.groovy This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,15 @@ #!bin/sh -e set -e # Context: # This is update script for the web-ui (used actively on a Qnap TS-439 pro). I run this # script from my QNAP while SSHed in from a Mac. # You can fork this code here: https://gist.github.com/tommeier/6255771 # ! Turn off the Serviio app in interface before beginning ! # Running this raw script is as easy as running this one line on the QNAP: # curl -L https://gist.github.com/tommeier/5324815/raw/update_webui.sh | bash # Options: # curl -L https://gist.github.com/tommeier/5324815/raw/update_webui.sh | CLEAN=true RUN_BACKUP=true bash LOG_PREFIX=" >> " UPDATE_SERVIIO_DIR="/share/MD0_DATA/.update_serviio_webui" @@ -13,7 +21,8 @@ mkdir -p $UPDATE_SERVIIO_DIR cd $UPDATE_SERVIIO_DIR if [[ ! -f 'webui.zip' ]]; then echo "${LOG_PREFIX} [Download] Downloading Serviio web files (1.3 branch from github)" curl -C - --insecure -L -o 'webui.zip' 'https://github.com/SwoopX/Web-UI-for-Serviio/archive/Serviio-1.3.zip' fi; /opt/bin/unzip -o webui.zip -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -48,6 +48,7 @@ fi; echo "${LOG_PREFIX}Updating core Serviio files" #Download latest version if ! [ -f 'serviio-latest.tar.gz' ]; then echo "${LOG_PREFIX} [Download] Downloading Serviio install files" curl -C - -L -o 'serviio-latest.tar.gz' http://download.serviio.org/releases/serviio-1.3.1-linux.tar.gz fi; @@ -62,7 +63,8 @@ echo "${LOG_PREFIX}Removing existing plugins" rm -rf /share/MD0_DATA/.qpkg/Serviio/plugins/*.groovy if ! [ -f 'plugins.zip' ]; then echo "${LOG_PREFIX} [Download] Downloading plugin files" curl -C - -L -o 'plugins.zip' http://xmantium.com/serviio/plugins-latest.zip fi; mkdir -p plugins -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 12 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,18 @@ #!bin/sh -e set -e # Context: # This is update script new serviio versions on a Qnap TS-439 pro. I run this # script from my QNAP while SSHed in from a Mac. # You can fork this code here: https://gist.github.com/tommeier/6255771 # ! Turn off the Serviio app in interface before beginning ! # Running this raw script is as easy as running this one line on the QNAP: # curl -L https://gist.github.com/tommeier/5324815/raw/update_serviio.sh | bash # Options: # curl -L https://gist.github.com/tommeier/5324815/raw/update_serviio.sh | CLEAN=true RUN_BACKUP=true bash # Running directly on server # # Turn off the Serviio service # Eg. Open volume on mac # cd /Volumes/Public/UpdateServiio -
tommeier revised this gist
Sep 14, 2013 . 2 changed files with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,7 +22,6 @@ URL_NASM='http://www.nasm.us/pub/nasm/releasebuilds/2.10.09/nasm-2.10.09.tar.gz' URL_YASM='http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz' URL_XVID='http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz' URL_FAAC='http://downloads.sourceforge.net/faac/faac-1.28.tar.gz' URL_LIBVPX='https://webm.googlecode.com/files/libvpx-v1.1.0.tar.bz2' #1.2.0 has compile issues URL_FREETYPE='http://downloads.sourceforge.net/project/freetype/freetype2/2.5.0/freetype-2.5.0.1.tar.bz2' URL_OGG='http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gz' @@ -114,7 +113,6 @@ else echo "--- Skipping Automake" fi; if [ ! -d "which-2.20" ]; then echo ">>> Installing Which" curl -C - -L -O $URL_WHICH This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -41,7 +41,7 @@ fi; echo "${LOG_PREFIX}Updating core Serviio files" #Download latest version if ! [ -f 'serviio-latest.tar.gz' ]; then curl -C - -L -o 'serviio-latest.tar.gz' http://download.serviio.org/releases/serviio-1.3.1-linux.tar.gz fi; tar -zxvf serviio-latest.tar.gz -
tommeier revised this gist
Aug 14, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set -e ### ====================================================================== ### ## ## ## Serviio install codecs ## ## ## Actively used on TS-439Pro (x86 atom) ### ====================================================================== ### # Example usage: -
tommeier revised this gist
Aug 14, 2013 . 1 changed file with 125 additions and 32 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,30 +13,37 @@ set -e # > git clone https://gist.github.com/5324815.git updating_codecs # > sh /share/MD0_DATA/Public/updating_codecs/install_codecs.sh ## Codec compile support URL_AUTOMAKE="http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz" URL_WHICH='http://www.xs4all.nl/~carlo17/which/which-2.20.tar.gz' ## Codec download locations URL_NASM='http://www.nasm.us/pub/nasm/releasebuilds/2.10.09/nasm-2.10.09.tar.gz' URL_YASM='http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz' URL_XVID='http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz' URL_FAAC='http://downloads.sourceforge.net/faac/faac-1.28.tar.gz' URL_LIBVPX='https://webm.googlecode.com/files/libvpx-v1.1.0.tar.bz2' #1.2.0 has compile issues URL_FREETYPE='http://downloads.sourceforge.net/project/freetype/freetype2/2.5.0/freetype-2.5.0.1.tar.bz2' URL_OGG='http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gz' URL_VORBIS='http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz' URL_THEORA='http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2' URL_FRIBIDI='http://fribidi.org/download/fribidi-0.19.5.tar.bz2' URL_LIBASS='http://libass.googlecode.com/files/libass-0.10.1.tar.gz' URL_OPENSSL='http://www.openssl.org/source/openssl-1.0.1e.tar.gz' URL_FDK='http://downloads.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.2.tar.gz' URL_OPENCORE='http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.3.tar.gz' URL_SERVIIO_LAME='http://download.serviio.org/opensource/lame-3.99.5.tar.gz' #URL_SERVIIO_RTMPDUMP='http://download.serviio.org/opensource/rtmpdump.tar.gz' #URL_SERVIIO_FFMPEG='http://download.serviio.org/opensource/ffmpeg-N-54096-ge41bf19.tar.gz' ## Git updatable codecs #EDGE_YASM='git://github.com/yasm/yasm.git' EDGE_ENCA='git://github.com/nijel/enca.git' EDGE_X264='git://git.videolan.org/x264.git' EDGE_RTMPDUMP='git://git.ffmpeg.org/rtmpdump' EDGE_FFMPEG='git://source.ffmpeg.org/ffmpeg.git' create_symlink() { local symlink="$1" local symlink_source="$2" @@ -93,6 +100,36 @@ echo ">> Loading codecs into ${CODEC_DIRECTORY}" mkdir -p $CODEC_DIRECTORY cd $CODEC_DIRECTORY if [ ! -d "automake-1.14" ]; then echo ">>> Installing Automake" curl -C - -L -O $URL_AUTOMAKE tar -xvzf automake-1.14.tar.gz cd automake-1.14 ./configure --prefix=$PREFIX make make install cd $CODEC_DIRECTORY else echo "--- Skipping Automake" fi; URL_WHICH='http://www.xs4all.nl/~carlo17/which/which-2.20.tar.gz' if [ ! -d "which-2.20" ]; then echo ">>> Installing Which" curl -C - -L -O $URL_WHICH tar -xvzf which-2.20.tar.gz cd which-2.20 ./configure --prefix=$PREFIX make make install cd $CODEC_DIRECTORY rm -f which-2.20.tar.gz else echo "--- Skipping which" fi; if [ ! -d "yasm-1.2.0" ]; then echo ">>> Installing YASM" curl -C - -L -O $URL_YASM @@ -108,6 +145,41 @@ else echo "--- Skipping Yasm" fi; URL_NASM='http://www.nasm.us/pub/nasm/releasebuilds/2.10.09/nasm-2.10.09.tar.gz' if [ ! -d "nasm-2.10.09" ]; then echo ">>> Installing NASM" curl -C - -L -O $URL_NASM tar -xvzf nasm-2.10.09.tar.gz cd nasm-2.10.09 ./configure --prefix=$PREFIX make make install cd $CODEC_DIRECTORY rm -f nasm-2.10.09.tar.gz else echo "--- Skipping Nasm" fi; if [ ! -d "libvpx-v1.1.0" ]; then echo ">>> Installing libvpx" curl -C - -L -O $URL_LIBVPX tar -xjvf libvpx-v1.1.0.tar.bz2 cd libvpx-v1.1.0 make clean ./configure --prefix=$PREFIX --enable-shared \ --disable-static make make prefix=$PREFIX install cd $CODEC_DIRECTORY rm -rf libvpx-v1.1.0.tar.bz2 else echo "--- Skipping libvpx" fi; if [ ! -d "x264" ]; then echo ">>> Installing x264" git clone $EDGE_X264 x264 @@ -137,24 +209,6 @@ else echo "--- Skipping Xvid Core" fi; if [ ! -d "lame-3.99.5" ]; then echo ">>> Compiling LAME" curl -C - -L -O $URL_SERVIIO_LAME @@ -205,16 +259,16 @@ else echo "--- Skipping freetype" fi; if [ ! -d "libogg-1.3.1" ]; then echo ">>> Installing libogg" curl -C - -L -O $URL_OGG tar -xvzf libogg-1.3.1.tar.gz cd libogg-1.3.1 ./configure --prefix=$PREFIX --enable-shared make make install cd $CODEC_DIRECTORY rm -f libogg-1.3.1.tar.gz else echo "--- Skipping libogg" fi; @@ -308,19 +362,19 @@ fi; if [ ! -d "fdk-aac-0.1.2" ]; then echo ">>> Installing FDK-AAC" curl -C - -L -O $URL_FDK tar -xvzf fdk-aac-0.1.2.tar.gz cd fdk-aac-0.1.2 ./configure --prefix=$PREFIX make prefix=$PREFIX make prefix=$PREFIX install ldconfig cd $CODEC_DIRECTORY rm -f fdk-aac-0.1.2.tar.gz else echo "--- Skipping FDK-AAC" fi; @@ -416,3 +470,42 @@ else fi; echo " >>> Done ;)" ##### KNOWN ISSUES ## 1. Unable to compile libvpx 1.2.0: # [/share/MD0_DATA/.codecs/libvpx-v1.2.0] # make install # [INSTALL] /opt/lib/libvpx.so.1.2.0 # [LN] /opt/lib/libvpx.so # [INSTALL] /opt/lib/pkgconfig/vpx.pc # [LD] test_libvpx # test/altref_test.cc.o: In function `testing::internal::linked_ptr<testing::internal::ParameterizedTestCaseInfo<(anonymous namespace)::AltRefTest>::TestInfo>::depart()': # altref_test.cc:(.text+0x873): undefined reference to `__sync_fetch_and_add_4' # altref_test.cc:(.text+0x887): undefined reference to `__sync_fetch_and_add_4' # altref_test.cc:(.text+0x944): undefined reference to `__sync_fetch_and_add_4' # altref_test.cc:(.text+0x958): undefined reference to `__sync_fetch_and_add_4' # test/altref_test.cc.o: In function `(anonymous namespace)::AltRefTest::PreEncodeFrameHook(libvpx_test::VideoSource*, libvpx_test::Encoder*)': # altref_test.cc:(.text+0x1b9c): undefined reference to `__sync_fetch_and_add_4' # test/altref_test.cc.o:altref_test.cc:(.text+0x1da7): more undefined references to `__sync_fetch_and_add_4' follow # collect2: ld returned 1 exit status # make[1]: *** [test_libvpx] Error 1 # make: *** [.DEFAULT] Error 2 ## 2. Unable to run autogen.sh for edge YASM: # if [ ! -d "yasm" ]; then # Issues found : # [/share/MD0_DATA/.codecs/yasm] # make prefix=$PREFIX # make: *** No rule to make target `x86insns.c', needed by `all'. Stop. # echo ">>> Installing Edge YASM" # git clone $EDGE_YASM yasm # cd yasm # ./autogen.sh # ./configure --prefix=$PREFIX # make --always-make # make install # cd $CODEC_DIRECTORY # else # echo "--- Skipping YASM" # fi; -
tommeier revised this gist
Sep 14, 2013 . 1 changed file with 9 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,12 +13,11 @@ set -e # > git clone https://gist.github.com/5324815.git updating_codecs # > sh /share/MD0_DATA/Public/updating_codecs/install_codecs.sh ## Codec download locations URL_YASM='http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz' URL_XVID='http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz' URL_FAAC='http://downloads.sourceforge.net/faac/faac-1.28.tar.gz' URL_LIBVPX='https://webm.googlecode.com/files/libvpx-v1.2.0.tar.bz2' URL_FREETYPE='http://sourceforge.net/projects/freetype/files/freetype2/2.5.0/freetype-2.5.0.1.tar.bz2' URL_OGG='http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz' URL_VORBIS='http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz' @@ -37,7 +36,6 @@ EDGE_X264='git://git.videolan.org/x264.git' EDGE_RTMPDUMP='git://git.ffmpeg.org/rtmpdump' EDGE_FFMPEG='git://source.ffmpeg.org/ffmpeg.git' create_symlink() { local symlink="$1" @@ -76,12 +74,17 @@ ipkg install libstdc++ create_symlink '/bin/bash' '/opt/bin/bash' ## Required on every run CODEC_DIRECTORY='/share/MD0_DATA/.codecs' PREFIX='/opt' export PATH=/opt/bin:/opt/sbin:$PATH export LD_LIBRARY_PATH=/opt/lib # Only works with LD_LIBRARY_PATH=/opt/lib ./ffmpeg (or adding /opt/lib to /etc/ld.so.conf with running ldconfig after) if [[ $(grep -q "/opt/lib" "/etc/ld.so.conf" && echo $?) = 0 ]]; then echo ' --> /opt/lib already loaded in /etc/ls.so.conf' else echo "/opt/lib" >> /etc/ld.so.conf fi; ldconfig -
tommeier revised this gist
Aug 24, 2013 . 1 changed file with 2 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,5 @@ #!/bin/bash set -e ### ====================================================================== ### ## ## @@ -75,6 +72,7 @@ ipkg install perl ipkg install openssl-dev ipkg install pkgconfig ipkg install fontconfig ipkg install libstdc++ create_symlink '/bin/bash' '/opt/bin/bash' @@ -326,7 +324,7 @@ fi; if [ ! -d "opencore-amr-0.1.3" ]; then echo ">>> Installing Opencore AMR" curl -L -O $URL_OPENCORE tar -xvzf opencore-amr-0.1.3.tar.gz cd opencore-amr-0.1.3 -
tommeier revised this gist
Aug 24, 2013 . 2 changed files with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,8 @@ #!/bin/bash # On full run: # Errors on: # opencore set -e ### ====================================================================== ### ## ## @@ -151,7 +154,7 @@ else echo "--- Skipping libvpx" fi; if [ ! -d "lame-3.99.5" ]; then echo ">>> Compiling LAME" curl -C - -L -O $URL_SERVIIO_LAME This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -64,6 +64,7 @@ CODEC_DIRECTORY='/share/MD0_DATA/.codecs' if [[ "$PKG_CONFIG_PATH" != *"$CODEC_DIRECTORY/rtmpdump/librtmp"* ]]; then write_to_log "Updating PKG_CONFIG_PATH to include custom compiled librtmp (${CODEC_DIRECTORY})" echo "#====Serviio Required elements for custom librtmp====#" >> /etc/profile echo "export CODEC_DIRECTORY=${CODEC_DIRECTORY}" >> /etc/profile echo "export PKG_CONFIG_PATH=/usr/lib/pkgconfig:\$CODEC_DIRECTORY/openssl-1.0.1e:\$CODEC_DIRECTORY/rtmpdump/librtmp" >> /etc/profile echo "#/====Serviio Required elements for custom librtmp====#" >> /etc/profile export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$CODEC_DIRECTORY/openssl-1.0.1e:$CODEC_DIRECTORY/rtmpdump/librtmp -
tommeier revised this gist
Jul 24, 2013 . 1 changed file with 11 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,7 +19,7 @@ URL_YASM='http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz' URL_XVID='http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz' URL_FAAC='http://downloads.sourceforge.net/faac/faac-1.28.tar.gz' URL_LIBVPX='https://webm.googlecode.com/files/libvpx-v1.1.0.tar.bz2' URL_FREETYPE='http://sourceforge.net/projects/freetype/files/freetype2/2.5.0/freetype-2.5.0.1.tar.bz2' URL_OGG='http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz' URL_VORBIS='http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz' URL_THEORA='http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2' @@ -32,7 +32,7 @@ URL_SERVIIO_LAME='http://download.serviio.org/opensource/lame-3.99.5.tar.gz' #URL_SERVIIO_RTMPDUMP='http://download.serviio.org/opensource/rtmpdump.tar.gz' #URL_SERVIIO_FFMPEG='http://download.serviio.org/opensource/ffmpeg-1.1.1.tar.gz' EDGE_ENCA='git://github.com/nijel/enca.git' EDGE_X264='git://git.videolan.org/x264.git' EDGE_RTMPDUMP='git://git.ffmpeg.org/rtmpdump' EDGE_FFMPEG='git://source.ffmpeg.org/ffmpeg.git' @@ -75,6 +75,7 @@ ipkg install fontconfig create_symlink '/bin/bash' '/opt/bin/bash' export LD_LIBRARY_PATH=/opt/lib # Only works with LD_LIBRARY_PATH=/opt/lib ./ffmpeg (or adding /opt/lib to /etc/ld.so.conf with running ldconfig after) if [[ $(grep -q "/opt/lib" "/etc/ld.so.conf" && echo $?) = 0 ]]; then echo ' --> /opt/lib already loaded in /etc/ls.so.conf' @@ -186,16 +187,16 @@ else echo "--- Skipping faac" fi; if [ ! -d "freetype-2.5.0.1" ]; then echo ">>> Installing freetype" curl -C - -L -O $URL_FREETYPE tar -xjvf freetype-2.5.0.1.tar.bz2 cd freetype-2.5.0.1 ./configure --prefix=$PREFIX --enable-shared --without-png make make install cd $CODEC_DIRECTORY rm -f freetype-2.5.0.1.tar.bz2 else echo "--- Skipping freetype" fi; @@ -256,8 +257,11 @@ else echo "--- Skipping fribidi" fi; if [ ! -d "enca" ]; then echo ">>> Installing enca" rm -f /opt/bin/enconv rm -f /opt/share/man/man1/enconv.1 git clone $EDGE_ENCA cd enca -
tommeier revised this gist
Jun 10, 2013 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -363,6 +363,11 @@ if [ ! -d "ffmpeg" ]; then ldconfig if [ -e 'ffmpeg' ]; then #existing install make clean fi; ./configure --prefix=/share/MD0_DATA/.qpkg/Serviio/opt \ --libdir=/share/MD0_DATA/.qpkg/Serviio/opt/lib \ --disable-shared \ -
tommeier revised this gist
Apr 28, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -55,7 +55,7 @@ echo "${LOG_PREFIX}Removing existing plugins" rm -rf /share/MD0_DATA/.qpkg/Serviio/plugins/*.groovy if ! [ -f 'plugins.zip' ]; then curl -C - -L -o 'plugins.zip' http://xmantium.com/serviio/plugins-latest.zip fi; mkdir -p plugins -
tommeier revised this gist
Apr 20, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -274,7 +274,7 @@ if [ ! -d "libass-0.10.1" ]; then curl -C - -L -O $URL_LIBASS tar -xzvf libass-0.10.1.tar.gz cd libass-0.10.1 ./configure --prefix=$PREFIX --enable-shared make make install
NewerOlder