Download the latest arm64 (most likely) version of Debian from https://www.debian.org/distrib/netinst, and then use something like Balena Etcher to flash it to a USB drive.
Plug the install drive in and follow the on-screen instructions.
su -
#<- enter root password->
apt update && apt upgrade -y
apt install curl
usermod -aG sudo casaos #or whatever username you chose
exit #return to casaos user
exit #logout as casaos user
# <sign back in as casaos user>
curl -fsSL <https://get.casaos.io> | sudo bash
#its probably smart to grab your ip while you're here, so type
ip a
This is only guaranteed to work if you’re using the built in install on the zimaboard or if you’re running Debian 11 (buster).
In the terminal of your server:
echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
sudo sysctl -p /etc/sysctl.d/99-tailscale.conf
curl -fsSL <https://pkgs.tailscale.com/stable/debian/bullseye.noarmor.gpg> | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL <https://pkgs.tailscale.com/stable/debian/bullseye.tailscale-keyring.list> | sudo tee /etc/apt/sources.list.d/tailscale.list
sudo apt-get update
sudo apt-get install tailscale
#if you don't know your subnet run:
ip a
#and write down your local IP address.
#It most likely starts with 192.168.X.X and doesn't end in a 1
#Your subnet will be the first 3 numbers and then .0/24 (ex: 192.168.1.0/24)
sudo tailscale up --reset --advertise-routes=YOURSUBNET --advertise-exit-node