wget -O upgrade.sh 'https://gist.github.com/Bonveio/bb40b778b33ef06868c14c0240f25967/raw/upgrade.sh'
- Debian 10 to 11
bash upgrade.sh 11 - Debian 11 to 12
bash upgrade.sh 12 - Debian 12 to 13
bash upgrade.sh 13
| #!/usr/bin/env bash | |
| set -o errexit | |
| echo $(date):Random read | |
| fio --filename=test --sync=1 --rw=randread --bs=4k --numjobs=1 \ | |
| --iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test | |
| echo $(date):Random write | |
| fio --filename=test --sync=1 --rw=randwrite --bs=4k --numjobs=1 \ |
| pct create <id> /var/lib/vz/template/cache/centos-7-default_20170504_amd64.tar.xz \ | |
| -arch amd64 \ | |
| -ostype <centos|ubuntu|etc> \ | |
| -hostname <hostname> \ | |
| -cores <cores> \ | |
| -memory <memory(MB)> \ | |
| -swap <swap(MB)> \ | |
| -storage local-lvm \ | |
| -password \ | |
| -net0 name=eth0,bridge=<bridge>,gw=<gateway>,ip=<cidr>,type=veth &&\ |
| # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
| # newer versions of the distribution. | |
| deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted | |
| # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted | |
| ## Major bug fix updates produced after the final release of the | |
| ## distribution. | |
| deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted | |
| # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted |
https://community.bigbeartechworld.com/t/setting-up-openwrt-on-a-virtual-machine-with-proxmox/257
https://images.linuxcontainers.org/images/openwrt/23.05/amd64/default/20231123_11:57/rootfs.tar.xz
| # syno-vpn-keepalive.sh | |
| # --- | |
| # Script to keep VPN alive on Synology DSM. | |
| # Checks if IP is pingable and if not: | |
| # disconnect VPN, reconnect VPN & add routes | |
| # --- | |
| # Modify vars: | |
| # - CHECKIP: IP to check to be pingable before reconnecting VPN | |
| # - NAME (Synology VPN name), | |
| # - ID (Synology VPN ID), SSH to NAS & run this to find ID |