Synology divers
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
-stop le service d'indexation
synoservicectl --stop synoindexd
--lancer le service d'indexation
synoservicectl --start synoindexd
Pour forcer l'indexation, il suffit de lancer
synoindex -a le_fichier_téléchargé
ou
synoindex -A le_répertoire_téléchargé
synoindex
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
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