« Synology divers » : différence entre les versions
| (22 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 17 : | Ligne 17 : | ||
== ascii == | == ascii == | ||
générateur texte ascii: http://www.network-science.de/ascii/ | générateur texte [[ascii]]: http://www.network-science.de/ascii/ | ||
== synchro ssh numero de port == | == synchro ssh numero de port == | ||
| Ligne 23 : | Ligne 23 : | ||
== Synchro backup == | == Synchro backup == | ||
étape 1 | * étape 1 | ||
ssh-keygen -t dsa -b 1024 -f /volume1/users/toto/.ssh/id_dsa | ssh-keygen -t dsa -b 1024 -f /volume1/users/toto/.ssh/id_dsa | ||
chmod 0600 /volume1/users/toto/.ssh/* | chmod 0600 /volume1/users/toto/.ssh/* | ||
étape 2 | * étape 2 | ||
ssh user@ip 'cat >> /home/user/.ssh/authorized_keys2' < /volume1/users/toto/.ssh/id_dsa.pub | ssh user@ip 'cat >> /home/user/.ssh/authorized_keys2' < /volume1/users/toto/.ssh/id_dsa.pub | ||
rm /volume1/users/toto/.ssh/id_dsa.pub | rm /volume1/users/toto/.ssh/id_dsa.pub | ||
étape3 | * étape3 | ||
SERVER="user@ip:/rep/" | SERVER="user@ip:/rep/" | ||
REP="/un/rep/" | REP="/un/rep/" | ||
| Ligne 45 : | Ligne 45 : | ||
== sudoers == | == sudoers == | ||
=== On passe root === | |||
sudo -i | |||
=== On lance visudo === | |||
visudo | |||
=== On recherche cette ligne === | |||
<pre> | |||
# User privilege specification | |||
root ALL=(ALL:ALL) ALL | |||
et on y ajoute une nouvelle ligne juste en dessous avec les mêmes droits pour notre utilisateur: | |||
matt ALL=(ALL:ALL) ALL | |||
</pre> | |||
== basculer en root: == | == basculer en root: == | ||
| Ligne 59 : | Ligne 72 : | ||
== supprimer == | == supprimer == | ||
find "/rep" -name '*\.txt' -o -name '*\.jpg' -exec rm -f {} \; | find "/rep" -name '*\.txt' -o -name '*\.jpg' -exec rm -f {} \; | ||
== indexation == | |||
*Repertoire de la file d'attente | |||
/var/spool | |||
*stop le service d'indexation | |||
synoservicectl --stop synoindexd | |||
*lancer le service d'indexation | |||
synoservicectl --start synoindexd | |||
=== synoindex === | |||
synoindex -h | |||
<pre> | |||
Usage: | |||
synoindex [OPTIONS] | |||
Index Options: | |||
-h, --help | |||
this help text | |||
-A dirpath | |||
add a dir | |||
-a filepath | |||
add a file | |||
-D dirpath | |||
delete a dir | |||
-d filepath | |||
delete a file | |||
-N new_dirpath old_dirpath | |||
rename a dir | |||
-n new_filepath old_filepath | |||
rename a file | |||
-R [all|media|photo|music|video|thumb|dirpath] | |||
all: reindex all dirpath that registered in each package | |||
media: reindex dirpath that registered in MediaIndex package | |||
photo: reindex photo dirpath | |||
music: reindex music dirpath | |||
video: reindex video dirpath | |||
thumb: check converted video of each video file | |||
dirpath: reindex this specific dirpath | |||
-R user:{user_name} | |||
reindex personal photo dirpath | |||
-R share:{share_name} | |||
reindex share dirpath | |||
-R [type_music|type_video|type_photo] | |||
reindex dirpath that registered with specific type in MediaIndex | |||
Package Index Options: | |||
-P [MediaIndex|{package_name}] {index_option} | |||
index operation only apply on this package | |||
-p [MediaIndex|{package_name}] {index_option} | |||
index operation apply all packages except for this package | |||
File Index Options: | |||
-f {index_option} | |||
index operation apply on file index | |||
-U photo | |||
update photo images | |||
</pre> | |||
*Pour forcer l'indexation, il suffit de lancer | |||
<pre> | |||
synoindex -a le_fichier_téléchargé | |||
synoindex -A le_répertoire_téléchargé | |||
</pre> | |||
<pre> | |||
Copyright (c) 2003-2008 Synology Inc. All rights reserved. | |||
usage: | |||
Add: synoindex -a filename | |||
Delete: synoindex -d filename | |||
Add folder: synoindex -A folder | |||
Delete folder: synoindex -D folder | |||
Rename/move file/folder: synoindex -N newfullpath oldfullpath | |||
Update Photo Images: synoindex -U photo | |||
Get from DB: synoindex -g filename -t [video|music|photo|playlist] | |||
</pre> | |||
source : [https://wacha.ch/wiki/synology wacha.ch/wiki] | |||
=== Désactiver === | |||
<pre> | |||
sudo -i | |||
1 - stop | |||
/usr/syno/sbin/synoservice --hard-stop synoindexd | |||
2 - disabled | |||
/usr/syno/bin# synoindex_package.sh disable PhotoStation | |||
/usr/syno/bin# synoindex_package.sh disable VideoStation | |||
</pre> | |||
source: https://community.synology.com/enu/forum/17/post/100210 | |||
[[category:synology]] | [[category:synology]] | ||