This platform list serves as a helper for making SPK packages.
Example:
arch="noarch"
arch="x86"
| #!/usr/bin/env bash | |
| # synology-cli.sh | |
| # Works with DSM 7.2.2 and 2FA | |
| set -euo pipefail | |
| NAS_URL="" | |
| while getopts ":u:" opt; do | |
| case $opt in | |
| u) NAS_URL="$OPTARG" ;; | |
| *) echo "Usage: $0 [-u https://your-nas:5001]"; exit 1 ;; |
| # the author(@theciso) deleted it from their repository, so this is another backup | |
| # I cloned from here to use it more easily | |
| # https://github.com/vdsm/virtual-dsm/pull/988/commits/6afb3f1acc4e55e7f36b87a61020ce2facea514d | |
| #!/bin/bash | |
| # Constants | |
| CONFIG_DIR="/etc/pve/lxc" | |
| TMP_DIR="/tmp" |
| #!/bin/sh | |
| # iStore English Patcher by Glitch | |
| echo "Welcome to the iStore English Patcher" | |
| echo "What do you want to do?" | |
| echo "1. Make iStore English" | |
| echo "2. Revert to Chinese iStore" | |
| #echo "3. Make iStore Dark Theme" | |
| #echo "4. Restore iStore's Original Theme" | |
| echo "3. Exit" | |
| read n |
| #!/usr/bin/env bash | |
| # DOMAINS | |
| DOMAINS="example.com,*.example.com" | |
| # DNS Provider | |
| CERT_DNS="dns_namecheap" # For more: https://github.com/acmesh-official/acme.sh/wiki/dnsapi | |
| NAMECHEAP_API_KEY='' | |
| NAMECHEAP_USERNAME='' | |
| NAMECHEAP_SOURCEIP='' |
Use certbot to create a wildcard certificat with DNS challenge
DOMAIN="example.com"
sudo certbot certonly --manual --manual-public-ip-logging-ok --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory -d "*.$DOMAIN"Follow the instructions on the console and create the DNS TXT record.
Copy the generated files to a working directory
We are going to use the acme.sh script to accomplish this. For authentication of the domain name, we will use the DNS option. First login to your Synology with ssh as the admin user and then sudo -i to get root access. When you login into the Synology with ssh you will end up in the /root path. I assume for the rest of the guide we run everything from that path. Now we need to get the script and change the permissions so it is executable.
wget https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh
chmod a+x acme.sh
Next we issue the certificate:
./acme.sh --issue -d *.website.come --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please
| # busybox | |
| BusyBox v1.22.1 (2014-11-27 12:30:44 CST) multi-call binary. | |
| BusyBox is copyrighted by many authors between 1998-2012. | |
| Licensed under GPLv2. See source distribution for detailed | |
| copyright notices. | |
| Usage: busybox [function [arguments]...] | |
| or: busybox --list | |
| or: function [arguments]... |
How to Expand a Linux (Ubuntu) Partition On a VM in the Synology Virtual Machine Manager
| #!/bin/sh | |
| # /usr/local/etc/rc.d/boot-tweaks.sh | |
| # | |
| # Put this in /usr/local/etc/rc.d/ | |
| # chown this to root | |
| # chmod this to 700 | |
| # Must be run as root! | |
| case $1 in | |
| start) |