Server
wg genkey | tee /etc/wireguard/private.key
chmod go= /etc/wireguard/private.key
cat /etc/wireguard/private.key | wg pubkey | tee /etc/wireguard/public.key| ### Cloudflare Dynamic DNS for Synology NAS | |
| # 1. Open Synology Task Manager (Synology UI -> Control Panel -> Task Scheduler) | |
| # 2. Create task, define schedule, notification, etc | |
| # 5. Define this Bash Script and specify your zone, dnsrecord to updatte, and Cloudflare API Token (https://dash.cloudflare.com/profile/api-tokens) | |
| #!/bin/bash | |
| # Settings | |
| zone=example.com | |
| dnsrecord=abc.example.com | |
| cloudflare_auth_token=12345678910QAZXSWEDCVFRTGB1234567890asdw |
If files or directory is inaccessible you need to normalize it from UTF-8 C (OSX) to D (Linux)
mount.nfs -w 192.168.1.100:/volume1/datastore/ /mnt/)yum install convmv)convmv -r -f utf8 -t utf8 --nfc . (dry-run)| 0. Download mountCifs.scpt | |
| 1. Create command in Tasks subfolder | |
| 2. In Command tab specify | |
| a. Command: osascript | |
| b. Arguments: mountCifs.scpt $URI$ C$ "$EffectiveUsernameWithoutDomain$" "$EffectivePassword$" | |
| c. Working Directory: path to mountCifs.scpt | |
| 3. In Credentials tab select "Use the context credentials" (for getting credentials from remote connection) | |
| 4. Mark task as favorite | |
| 5. Execute task on remote connection | |
| 6. (For Royal TSX 3.0.0.14 beta or newer) To hide terminal window pop-up disable "Run in Terminal" checkbox at General tab of task |