Accessing Photos and Pictures on Synology Diskstation NAS: Difference between revisions
| Line 15: | Line 15: | ||
The goal is to access images outside the `/photos` directory without having to resort to copying them into the `/photos` directory. | The goal is to access images outside the `/photos` directory without having to resort to copying them into the `/photos` directory. | ||
==== Using symbolic links ==== | |||
Create a symbolic link in the `/photos` directory that links to the other directory. | |||
<div class="alert alert-warning">Symbolic links have not worked on DS916.</div> | |||
* Enable SSH connections to the NAS. | |||
** DSM > Control Panel > Terminal & SNMP > Terminal tab > Enable SSH Service | |||
** Now it's possible to SSH (as admin) to the DiskStation's IP using login credentials of one of DSM user accounts. | |||
** `cd /volume1/photos` | |||
** `ln -s /volume1/shared/some_other_directory link_alias` - make sure these symbolic links are owned by `admin` | |||
* Re-index the media files. | * Re-index the media files. | ||
** <strike>DSM > Control Panel > Media Library > Media Library tab > Re-Index button</strike><br />'''DSM''' > '''Control Panel''' > '''System''' group > '''Indexing Service''' > '''Media Indexing''' tab > '''Media Indexing''' group > '''Re-Index''' button | ** <strike>DSM > Control Panel > Media Library > Media Library tab > Re-Index button</strike><br />'''DSM''' > '''Control Panel''' > '''System''' group > '''Indexing Service''' > '''Media Indexing''' tab > '''Media Indexing''' group > '''Re-Index''' button | ||
==== Mounting external directories ==== | |||
** SSH in as `admin` | |||
'''Alternative method:''' Add directories outside of the `/photo` directory by mounting them in that directory. <ref>[https://forum.synology.com/enu/viewtopic.php?f=17&t=61818&sid=37cc48cfeebc9f004c96129c05d934d8&start=15 Point Photo Station to an alternate directory?], Synology Forums</ref> | |||
<div class="alert-warning">This method has been tested on the `picture reference` directory, but has '''NOT''' been confirmed to work.</div> | |||
* '''Photo Station''' > '''Settings''' > '''General''' > '''Other Settings''' | |||
** '''Set new folders as public albums:''' `checked` | |||
* SSH in as `admin` | |||
** Create mount point within `/photos`, e.g. `mkdir /volume1/photo/my\ photos` | ** Create mount point within `/photos`, e.g. `mkdir /volume1/photo/my\ photos` | ||
** Mount the directory outside `/photos`, e.g. `mount --bind /path/to/my\ photos /volume1/photo/my\ photos` | ** Mount the directory outside `/photos`, e.g. `mount --bind /path/to/my\ photos /volume1/photo/my\ photos` | ||
| Line 41: | Line 52: | ||
*** '''Event:''' boot-up | *** '''Event:''' boot-up | ||
*** '''Task Settings''' tab > '''User-defined script:''' ''Enter the path to the script defined above'' | *** '''Task Settings''' tab > '''User-defined script:''' ''Enter the path to the script defined above'' | ||
* (Optional) add script to unmount the external directories on a Shutdown event. | |||
** e.g. `unmount /volume1/photo/my\ photos` | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Revision as of 05:00, 14 February 2017
Overview
Information and configuration about accessing and viewing image files on Synology DiskStation NAS.
Configuration
Photo Station
Install Photo Station via the DSM Package Manager.
Photo Station can only access files that are placed under the /photos directory. N.B. The /photos directory is on the same level as the /shared directory, not under it.
Accessing images outside the /photos directory
The goal is to access images outside the /photos directory without having to resort to copying them into the /photos directory.
Using symbolic links
Create a symbolic link in the /photos directory that links to the other directory.
- Enable SSH connections to the NAS.
- DSM > Control Panel > Terminal & SNMP > Terminal tab > Enable SSH Service
- Now it's possible to SSH (as admin) to the DiskStation's IP using login credentials of one of DSM user accounts.
cd /volume1/photosln -s /volume1/shared/some_other_directory link_alias- make sure these symbolic links are owned byadmin
- Re-index the media files.
DSM > Control Panel > Media Library > Media Library tab > Re-Index button
DSM > Control Panel > System group > Indexing Service > Media Indexing tab > Media Indexing group > Re-Index button
Mounting external directories
Alternative method: Add directories outside of the /photo directory by mounting them in that directory. [1]
picture reference directory, but has NOT been confirmed to work.- Photo Station > Settings > General > Other Settings
- Set new folders as public albums:
checked
- Set new folders as public albums:
- SSH in as
admin- Create mount point within
/photos, e.g.mkdir /volume1/photo/my\ photos - Mount the directory outside
/photos, e.g.mount --bind /path/to/my\ photos /volume1/photo/my\ photos
- Create mount point within
- Re-index the media files.
- DSM > Control panel > System > Indexing Service > Media Indexing tab > Re-Index button
- DSM > Control panel > System > Indexing Service > File Indexing tab > Indexed Folder List button > select the folder(s) to index and click the Re-Index button
- Add a script to re-mount the directories after reboot. [2]
- Create the script to run.
- Store the script somewhere accessible to Task Scheduler, e.g.
\volume1\public\tasks - See sample below.
- Store the script somewhere accessible to Task Scheduler, e.g.
- DSM > Control Panel > System > Task Scheduler > Create button > Triggered Task
- Give it a name
- User: root
- Event: boot-up
- Task Settings tab > User-defined script: Enter the path to the script defined above
- Create the script to run.
- (Optional) add script to unmount the external directories on a Shutdown event.
- e.g.
unmount /volume1/photo/my\ photos
- e.g.
#!/bin/sh mount --bind /volume1/my\ photos /volume1/photo/my\ photos
iPad
- Install the DS Photo+ app.
- Configure settings to connect to the DiskStation (IP/address, user, password)
- Once logged in, everything under
/photoson the DiskStation should be accessible.
Keywords
photos, photographs, picture reference, images, pictures, cloud, synology, diskstation, NAS, DSM, Photo Station, iPad
- ↑ Point Photo Station to an alternate directory?, Synology Forums
- ↑ rc.local auto mount not works [after DSM 6 update, Synology forums