|
|||
|
![]() InstallationOn Synology install GIT Server first (you can leave it stopped) for the git cli.
AuthenticationIf your account has two-factor authentication enabled, you will be prompted for a code when you run the script. Two-factor authentication will expire after an interval set by Apple, at which point you will have to re-authenticate. This interval is currently two months. You can receive an email notification when two-factor authentication expires by passing the If you want to send notification emails using your Gmail account, and you have enabled two-factor authentication, you will need to generate an App Password at https://myaccount.google.com/apppasswords System KeyringYou can store your password in the system keyring using the
If you have stored a password in the keyring, you will not be required to provide a password when running the script. If you would like to delete a password stored in your system keyring, you can clear a stored password using the
Usage
Example:
Error on first runThe first time you run the script, you will probably see an error message like this:
This error usually means that Apple's servers are getting ready to send you data about your photos. This process can take around 5-10 minutes, so please wait a few minutes, then try again. (If you are still seeing this message after 30 minutes, then please open an issue on GitHub.) Run once every 3 hours using Cron
![]() Zur genaueren Diagnose liefert Synology in einem nicht modifizierten System weitere Tools. Diese müssen lediglich installiert werden. Zur Installation muss man root Rechte haben. Also entweder direkt als root per ssh anmelden oder als admin und anschließend per "sudo su" zu root werden. Auf der Kommandozeile den Befehl für die Installation eingeben:
Ein Liste der Tools erhält man mit dem Befehl
Ab sofort lassen sich die oben gelisteten Tools direkt über die Kommandozeile aufrufen. Das Paket wird nun auch im Paketzentrum als "Diagnosis Tool" angezeigt. Eine Deinstallation ist hier auch möglich. Eine Installation der Tools über das Paketzentrum scheint allerdings nicht möglich zu sein. 1st) Install Python from the Package Installer Web interface. I have Python 2.7 installed 2nd) Connect to your Synology NAS through ssh. 3rd) Get the pip installer: wget https://bootstrap.pypa.io/get-pip.py 4th) Execute the installer: python get-pip.py. It will take a while: # python get-pip.py Collecting pip Downloading pip-8.0.2-py2.py3-none-any.whl (1.2MB) 100% |████████████████████████████████| 1.2MB 42kB/s Collecting setuptools Downloading setuptools-19.6-py2.py3-none-any.whl (472kB) 100% |████████████████████████████████| 475kB 109kB/s Collecting wheel Downloading wheel-0.26.0-py2.py3-none-any.whl (63kB) 100% |████████████████████████████████| 65kB 291kB/s Installing collected packages: pip, setuptools, wheel Successfully installed pip-8.0.2 setuptools-19.6 wheel-0.26.0 We can now execute the pip command: # pip
Usage:
pip [options]
Commands:
install Install packages.
download Download packages.
uninstall Uninstall packages.
freeze Output installed packages in requirements format.
list List installed packages.
show Show information about installed packages.
search Search PyPI for packages.
wheel Build wheels from your requirements.
hash Compute hashes of package archives.
help Show help for commands.
...
...
Now we can install the modules that we need. |