조회 수 1326 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

http://www.theghostbit.com/2016/01/sharing-my-adobe-lightroom-synology-nas.html



Mount bind /Backup to /volume1/homes/user/photo


The first thing I needed to do was to mount bind the Cloud Station directory to the a directory inside the Photo Station directory. This tricks the software into thinking the files are actually in that directory although they may be somewhere else. I SSH into my machine and ran the following fter creating the directory /volume1/homes/user/photo/Pictures/ first:


mount --bind /volume2/AV\ Club/Pictures /volume1/homes/user/photo/Pictures/
Now I had that folder pointing to the Pictures directory that is synced my Cloud Station. But this is only temporary, as upon reboot the mount will no longer exist and /volume1/homes/user/photo/Pictures/ will go back to to being an empty directory.

 I created a script and placed it in /usr/syno/etc/rc.d which will be executed upon boot:

#!/bin/sh
 mount --bind /volume2/AV\ Club/Pictures /volume1/homes/user/photo/Pictures/
I called this script S00mountPictures.sh and made sure it was executable with the command

chmod +x S00mountPictures.sh
 Now after rebooting, the Cloud Station directory was still linked to a directory in the Photo Station directory.

 In order to work with Photo Station, the right permissions need to be set. I just gave it full permissions (drwxrwxrwx) to the Pictures directory:

chmod 777 -R /volume1/homes/user/photo/Pictures/

 Because Photo Station is user http, and it is not under the default users group, the permissions need to be for everyone.



My pictures do not show up on Photo Station?


Unfortunately even though the photos are in a location where Photo Station can see it now, it will simply ignore it. I needed to manually add the directory as a location to be indexed with the following command:

synoindex -A /volume1/homes/user/photo/Pictures/

 After running this command, I headed over to www.domain.com/~user/photo and all my pictures slowly but surely started showing up on Photo Station. Success!

 But then I discovered another problem. New pictures were not being recognized and added to Photo Station. After some testing, I learned that I needed to reindex the directory each time. The problem is that reindexing the entire Pictures directory will take a very long time, depending how many photos you have. So I will need to reindex only specific folders.

 Because I am using the default Lightroom photo structure, my setup is /Pictures/2016/2016-01-31. So I just need to reindex the folder for each new day only. Using the Task Scheduler from the Control Panel on the Synology NAS, I created a new User-defined script that runs the following command every hour:


/usr/syno/bin/synoindex -R /volume1/homes/user/photo/Pictures/`date +"%Y"`/`date +"%Y-%m-%d"`
Those date commands within the ` ticks are executed and return the correct dates. So the first date command will return the current year, 2016 for the first folder, and then second command will return the current date for the second folder, formatted 2016-01-31. Now only new folders for each day will end up being reindexed instead of the entire Pictures folder or the entire year. And if the folder does not exist, it will just error out. No big deal.


  1. No Image 10Dec
    by 행복아이
    2016/12/10 by 행복아이
    Views 1262 

    Tvheadend 트랜스코딩 pipe 이용

  2. No Image 07Oct
    by 행복아이
    2016/10/07 by 행복아이
    Views 690 

    iscsi ,윈도우 설정

  3. No Image 28Sep
    by 행복아이
    2016/09/28 by 행복아이
    Views 1326 

    포토스테이션에 다른 폴더 추가하

  4. No Image 22Sep
    by 행복아이
    2016/09/22 by 행복아이
    Views 721 

    DSM 5.2 Debian TVheadend 설치

  5. No Image 10Aug
    by 행복아이
    2016/08/10 by 행복아이
    Views 730 

    Tvheadend Recording File Name

  6. No Image 27Jul
    by 행복아이
    2016/07/27 by 행복아이
    Views 1163 

    Tvheadend m3u 추출

  7. No Image 23Mar
    by 행복아이
    2016/03/23 by 행복아이
    Views 3959 

    FFMpeg with DTS

  8. 사진파일명 일괄 변경

  9. 웹서버활용시 업로드 용량 수정 - php.ini 수정

  10. No Image 07Oct
    by 행복아이
    2015/10/07 by 행복아이
    Views 1282 

    하드디스크 업그레이드, hdd 마이그레이션

  11. No Image 25Sep
    by 행복아이
    2015/09/25 by 행복아이
    Views 904 

    NAS 오디오 비디오 포토스테이션 목록 인덱싱 하기

  12. No Image 25Sep
    by 행복아이
    2015/09/25 by 행복아이
    Views 502 

    오디오스테이션,비디오스테이션 파일 보이지 않는 문제

  13. No Image 25Sep
    by 행복아이
    2015/09/25 by 행복아이
    Views 1446 

    Vsphere EsXi 5.5 xpenology 설치 전반적

  14. SAMBA 세션 연결 해제(끊기)

  15. No Image 18Aug
    by 행복아이
    2015/08/18 by 행복아이
    Views 2115 

    xpenology PXE 네트워크부팅으로 설치하기

  16. No Image 15Jun
    by 행복아이
    2015/06/15 by 행복아이
    Views 347 

    MS 오피스 문서 바로 수정하기 WebDAV활용

  17. No Image 13Jun
    by 행복아이
    2015/06/13 by 행복아이
    Views 329 

    로그인문제

  18. No Image 24Apr
    by 행복아이
    2015/04/24 by 행복아이
    Views 808 

    Xpenology 사이트 패쇄에 따른..

  19. No Image 22Apr
    by 행복아이
    2015/04/22 by 행복아이
    Views 518 

    NAS One Bay 하드 1개 사용시 하드 교체

  20. Video Station DTS MKV 영상 음성 재생

Board Pagination Prev 1 2 Next
/ 2