https://docs.cilium.io/en/stable/installation/k0s/
curl -sSLf https://get.k0s.sh | sudo sh
# with ghproxy
curl -sSLf https://fetch.hikariai.net/api/v1/script/k0s-bootstrap.sh | sudo sh| # Shadowrocket配置文件,解决DNS泄露 | |
| [General] | |
| bypass-system = true | |
| skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local, captive.apple.com | |
| tun-excluded-routes = 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.88.99.0/24, 192.168.0.0/16, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32, 239.255.255.250/32 | |
| dns-server = system | |
| ipv6 = false | |
| prefer-ipv6 = false | |
| dns-fallback-system = false |
| #!/bin/sh | |
| set -e | |
| if [ -n "${DEBUG}" ]; then | |
| set -x | |
| fi | |
| _k0s_latest() { | |
| curl -sSLf "https://docs.k0sproject.io/stable.txt" |
https://docs.cilium.io/en/stable/installation/k0s/
curl -sSLf https://get.k0s.sh | sudo sh
# with ghproxy
curl -sSLf https://fetch.hikariai.net/api/v1/script/k0s-bootstrap.sh | sudo sh| mkfs.vfat -n BOOT /dev/sda3 | |
| mkfs.btrfs -L root /dev/sda1 | |
| cryptsetup luksFormat /dev/sda1 | |
| # Enter the Password. | |
| cryptsetup luksOpen /dev/sda1 enc-pv | |
| # After Opening the Disk, Open Gparted and Format /dev/sda1 to btrfs for the btrfs logic block. |
| [reload] | |
| command:/bin/sh /usr/local/etc/unbound/blacklist-update.sh | |
| parameter: | |
| type:script_output | |
| message: Unbound Blacklist Update | |
| description: Centralized Blacklist Update for Unbound DNS Service |
| { | |
| "load_type": "linear", | |
| "iteration_count": 10000, | |
| "duration": 10, | |
| "debug": false, | |
| "output": "stdout", | |
| "env": { | |
| "TARGET_ENDPOINT": "http://10.0.0.229/staging/echo" | |
| }, | |
| "steps": [ |
| #!/bin/sh | |
| KEY_NAME="sa-slchris.asc" | |
| LOCAL_KEYSERVER="http://192.168.56.109:9001" | |
| KEY="5BB4DC20DCA50A499219935036F2D646E2E89820" # Key fingerprint | |
| GPG_DIR="/etc/portage/gnupg" | |
| PASS="$(openssl rand -base64 32)" | |