* REMINDER TO LINUX NEWBIES:
- Linux is case sensitive! eg /volumes does not equal /Volumes
So, the autorun install script completed, noting an issue:
1 I installed the script and got this output:
Code: Select all
[/share/Public] # tar -zxvf create-autorun.tar.gz && ./create-autorun.sh
create-autorun.sh
---| Details |-------------------------------------------------------
* script version : 2017.02.06.01
* NAS model : TS-212 ()
* QTS version : 4.2.2 #20161214
* default volume : /share/MD0_DATA
---| Log |-----------------------------------------------------------
√ DOM partition found : /dev/mtdblock5
√ mounted EXT2 DOM partition at : /tmp/create-autorun.snjKSE
X Unable to confirm DOM partion size
√ unmounted EXT2 DOM partition : /tmp/create-autorun.snjKSE
---| Result |--------------------------------------------------------
√ Autorun successfully installed!
[/share/Public] #
2 I created the symlink file and
confirmed that it was there:
Code: Select all
[/] # cd /share/MD0_DATA/.system/autorun/scripts
[/share/MD0_DATA/.system/autorun/scripts] # cat > symlink_for_Volumes.sh
#!/bin/sh
ln -s /share /Volumes
[Ctrl-D][Ctrl-C]
make it eXecutable
[/share/MD0_DATA/.system/autorun/scripts] # chmod +x symlink_for_Volumes.sh
confirm it is there where I think it should be
[/share/MD0_DATA/.system/autorun/scripts] # cd /
[/] # ls /share/MD0_DATA/.system/autorun/scripts
symlink_for_Volumes.sh
[/] # cat /share/MD0_DATA/.system/autorun/scripts/*
#!/bin/sh
ln -s /share /Volumes
3 I rebooted the server (it always seems to take forever...)
4 alas, autorun is currently a misnomer as /Volumes is not to be found
Code: Select all
[/] # ls /Volumes
-sh: [/]: No such file or directory
5 So, to check I made sure that
the autorun script is created where it you reported it should be created.
It is:
Code: Select all
[/share/MD0_DATA/.system/autorun] # cat aut*
#!/bin/bash
AUTORUN_PATH="/share/MD0_DATA/.system/autorun"
SCRIPT_STORE_PATH="/share/MD0_DATA/.system/autorun/scripts"
LOGFILE="/var/log/autorun.log"
echo "$(date) ----- running autorun.sh -----" >> "$LOGFILE"
for i in ${SCRIPT_STORE_PATH}/* ; do
if [[ -x $i ]] ; then
echo -n "$(date)" >> "$LOGFILE"
echo " - $i " >> "$LOGFILE"
$i 2>&1 >> "$LOGFILE"
fi
done
[/share/MD0_DATA/.system/autorun] #
[6] BUT WAIT---ok, you waited long enough
/Volumes
IS THERE!!!
Code: Select all
[/share/MD0_DATA/.system/autorun] # ls /Volumes
/Volumes@
It just takes a couple a couple of minutes to run, evidently
So--I guess the morals of this story is/are
- You're awesome OneCD for sticking with this and volunteering so much of your time
It takes a couple of minutes or so for autorun to automatically run
"Don't be hasty"
"Trust but verify"
There is goodness/kindness in this world
And the proof is in the pudding (so to speak)--I have playlists on my Squeezebox
for the first time in years
Here's my setup:
- QNAP NAS-212
iTunes in Mac OSX 10.11 (too old to upgrade anymore)
iTunes library stored on the NAS in /Multimedia
Logitech Squeezebox
Big outline of steps
- Store iTunes Library on NAS at /Multimedia
Install LogictechMediaServer in "App Server" on QNAP
At http: address for the Logitech Media Server-->Settings, set playlists to be in NAS/Multimedia/iTunes folder
Run OneCD's awesome autorun install script viewtopic.php?f=45&t=128915#p588946
Create my symlink in a script file (for Mac newbies here viewtopic.php?f=177&t=25991#p595924 and step 2 above
rebooted the server (long wait)
Wait a little more
Check if playlists are there
Thank you, thank you, thank you, OneCD