This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
set -e | |
readonly VM="banana" | |
readonly CPU="8" | |
readonly MEM="8GB" | |
readonly DSK="120GB" | |
lxc init images:ubuntu/focal ${VM} -p default -p vm --vm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ex | |
BACKUP_DIR=/path/to/where/backups/should/live | |
HOSTS=($(lxc list -c n --format csv)) | |
for HOST in "${HOSTS[@]}" | |
do | |
BACKUP_NAME=${HOST}-$(date +"%Y-%m-%d") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
modprobe ipv6 | |
modprobe udp_tunnel | |
modprobe ip6_udp_tunnel | |
ip link add dev wg0 type wireguard | |
wg setconf wg0 /etc/wireguard/config | |
wg showconf wg0 | |
brctl addbr internet | |
brctl stp internet on | |
ip link set up dev wg0 |