QNAP TurboNAS TS-219P II Multimedia Station のディレクトリを変更する

QNAP NAS には、Web ブラウザ / iOS アプリから NAS 上のメディアファイルを参照できる機能があるんだけど、なぜだかこれがディレクトリ固定されてて、他のディレクトリにあるファイルは参照できない。なんとか別のとこにあるメディアファイルを参照したいなーと思っていろいろ検索してたら、これを発見。

By default, Multimedia Station looks for photos that are stored in the Qmultimedia share folder.
However, you can change the lookup folder to another location.

Open a ssh shell from the console of a mac or linux computer, or use Putty in Windows. Login to your NAS as "admin"

cd /share/Qmultimedia
ln -s /share/link/to/your/pictures

Now you should have a symbolic link called "pictures". Next, we have to change the crontab file to reflect the location of the pictures, because the default crontab for thumbnail generation will not look recursively into symbolic links.

vi /mnt/HDA_ROOT/.config/crontab

Now press "i" to start editing.
Change

0 3 * * * /usr/local/sbin/ImR_all -soft /Qmultimedia

to

0 3 * * * /usr/local/sbin/ImR_all -soft /Qmultimedia/pictures

press "Esc" then ":" and "wq" to exit and save the change.

Make sure you don’t mess up the crontab file. If you make a mistake, and you can’t remember how to correct it , simply press "Esc" then ":" and "q" to exit without saving anything.

Restart the crontab:

crontab /etc/config/crontab
http://forum.qnap.com/viewtopic.php?t=16022#p73479

これは、crontab までいじって、デフォルトのディレクトリを変えてるんだけど、ここまでしなくても、Multimedia フォルダの中に、ファイルが含まれる場所へのシンボリックリンクを作ってやれば、ちゃんとそこを参照してくれる。ということでそれで解決。