Advertisement
phillips321

photo_thumbHowTo.txt

May 9th, 2011
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. #### COMMENT FAIRE #####
  2.  
  3. 0. Télécharger les fichiers contenus dans photoThumbScript.zip
  4. (déjà fait normalement puisque vous lisez cet HOWTO)
  5.  
  6. 1. Créer un répertoire perso d'ou on lancera les commandes
  7. Par exemple:
  8. >> mkdir ~/photoThumbExec
  9.  
  10. 2. Mettre les fichiers photo_thumb*.sh dans ce repertoire
  11. Pour cela il suffit de dézipper les fichier dans le répertoire ~/photoThumbExec
  12. Et les rendre executables
  13. >> chmod 775 photo_thumb*.sh
  14.  
  15. 3. Ajouter le repertoire d'execution dans le path
  16. >> cd ~/photoThumbExec
  17. >> PATH=$PATH:$PWD
  18.  
  19. 4. Lancer la creation de miniature
  20. En supposant que /media/dsData/photo contient les photo
  21. >> . photo_thumbCreateAll.sh /media/dsData/photo
  22.  
  23. -----------
  24. IMPORTANT :
  25. -----------
  26.  
  27. si vous avec des messages d'erreur comme quoi vous n'avez pas les droits pour faire ce type d'opération...
  28. la méthode simple pour résoudre le problème c'est de se loguer en ssh en root sur le syno et octroyer les droits d'ecriture et d'execution
  29. >> chmod 777 -R /media/dsData/photo
  30.  
  31. C'est un peu sale mais après l'execution on peut revenir à quelquechose de plus propre en réaffectant les droits par défauts
  32. et en donnant les bons proprietaire et groupe:
  33.  
  34. genre :
  35. >> chown amdin -R /media/dsData/photo
  36. >> chgrp users -R /media/dsData/photo
  37. >> chmod 775 -R /media/dsData/photo
  38.  
  39.  
  40. #### HOW TO ####
  41.  
  42. 0. Download photoThumbScript.zip
  43.  
  44. 1. Create a folder and unzip files in this folder. For example
  45. >> mkdir ~/photoThumbExec
  46. Give the right to execute these files:
  47. >> chmod 775 photo_thumb*.sh
  48.  
  49. 3. Add this directory to the path
  50. >> cd ~/photoThumbExec
  51. >> PATH=$PATH:$PWD
  52.  
  53. 4. Launch the script to create thumbnails:
  54. En supposant que /media/dsData/photo contient les photo
  55. >> . photo_thumbCreateAll.sh /media/dsData/photo
  56.  
  57.  
  58. ----------
  59. WARNING
  60. ----------
  61.  
  62. If you have a problem of permission,
  63. you can do by connecting in ssh and root to the DS:
  64. >> chmod 777 -R /media/dsData/photo
  65.  
  66. Then affect "normal rights"
  67. >> chown amdin -R /media/dsData/photo
  68. >> chgrp users -R /media/dsData/photo
  69. >> chmod 775 -R /media/dsData/photo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement