« Synology divers » : différence entre les versions
Aucun résumé des modifications |
|||
(17 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 74 : | Ligne 74 : | ||
== indexation == | == indexation == | ||
Pour forcer l'indexation, il suffit de lancer | *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]] |
Dernière version du 5 novembre 2024 à 09:57
IPKG not found
en root: vi /etc/rc.local ajouter mount -o bind /volume1/@optware /opt puis /root/.profile ajouter PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:...etc synoservicectl --restart sshd
DSM5
synoservicectl --reload sshd
apache
/usr/syno/apache/conf alias: /usr/syno/apache/conf/extra/httpd-autoindex.conf-user
ascii
générateur texte ascii: http://www.network-science.de/ascii/
synchro ssh numero de port
rsync -avz --no-owner --no-group --no-perms -e "ssh -pXXXX" "/source/" user@XX.XX.XX.XX:/destination/
Synchro backup
- étape 1
ssh-keygen -t dsa -b 1024 -f /volume1/users/toto/.ssh/id_dsa chmod 0600 /volume1/users/toto/.ssh/*
- étape 2
ssh user@ip 'cat >> /home/user/.ssh/authorized_keys2' < /volume1/users/toto/.ssh/id_dsa.pub rm /volume1/users/toto/.ssh/id_dsa.pub
- étape3
SERVER="user@ip:/rep/" REP="/un/rep/" SORTIE=$(/usr/syno/bin/rsync -avz --delete --no-owner --no-group --rsync-path="sudo rsync" -e "ssh -i /volume1/users/toto/.ssh/id_dsa" $SERVER $REP)
relancer sshd
synoservicectl --restart sshd synoservicectl --reload sshd (DSM5) /usr/syno/etc.defaults/rc.d/S95sshd.sh restart
IPKG
.profile -> PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
sudoers
On passe root
sudo -i
On lance visudo
visudo
On recherche cette ligne
# 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
basculer en root:
sudo su -
recherche
super finder sur windows
*.bak ; *.tmp; *.~*; *.ini; *.db; *.m4a; *.mp4; *.jpg; *.mp3; *.flac
ou ssh
find "/rep" -name '*\.txt' -o -name '*\.jpg'
supprimer
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
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
- Pour forcer l'indexation, il suffit de lancer
synoindex -a le_fichier_téléchargé synoindex -A le_répertoire_téléchargé
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]
source : wacha.ch/wiki
Désactiver
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
source: https://community.synology.com/enu/forum/17/post/100210