Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### COMMENT FAIRE #####
- 0. Télécharger les fichiers contenus dans photoThumbScript.zip
- (déjà fait normalement puisque vous lisez cet HOWTO)
- 1. Créer un répertoire perso d'ou on lancera les commandes
- Par exemple:
- >> mkdir ~/photoThumbExec
- 2. Mettre les fichiers photo_thumb*.sh dans ce repertoire
- Pour cela il suffit de dézipper les fichier dans le répertoire ~/photoThumbExec
- Et les rendre executables
- >> chmod 775 photo_thumb*.sh
- 3. Ajouter le repertoire d'execution dans le path
- >> cd ~/photoThumbExec
- >> PATH=$PATH:$PWD
- 4. Lancer la creation de miniature
- En supposant que /media/dsData/photo contient les photo
- >> . photo_thumbCreateAll.sh /media/dsData/photo
- -----------
- IMPORTANT :
- -----------
- si vous avec des messages d'erreur comme quoi vous n'avez pas les droits pour faire ce type d'opération...
- 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
- >> chmod 777 -R /media/dsData/photo
- 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
- et en donnant les bons proprietaire et groupe:
- genre :
- >> chown amdin -R /media/dsData/photo
- >> chgrp users -R /media/dsData/photo
- >> chmod 775 -R /media/dsData/photo
- #### HOW TO ####
- 0. Download photoThumbScript.zip
- 1. Create a folder and unzip files in this folder. For example
- >> mkdir ~/photoThumbExec
- Give the right to execute these files:
- >> chmod 775 photo_thumb*.sh
- 3. Add this directory to the path
- >> cd ~/photoThumbExec
- >> PATH=$PATH:$PWD
- 4. Launch the script to create thumbnails:
- En supposant que /media/dsData/photo contient les photo
- >> . photo_thumbCreateAll.sh /media/dsData/photo
- ----------
- WARNING
- ----------
- If you have a problem of permission,
- you can do by connecting in ssh and root to the DS:
- >> chmod 777 -R /media/dsData/photo
- Then affect "normal rights"
- >> chown amdin -R /media/dsData/photo
- >> chgrp users -R /media/dsData/photo
- >> chmod 775 -R /media/dsData/photo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement