sudo sh -c "$(curl -sL https://github.com/MarksonHon/headscale-installer/raw/refs/heads/main/installer.sh)"
sudo sh -c "$(curl -sL https://github.com/MarksonHon/headscale-installer/raw/refs/heads/main/uninstaller.sh)"
If you try to install Headscale on Alpine Linux, install curl and shadow at first.
doas apk add curl shadow libcap-setcap
Ubuntu might come with fucking snap-packaged curl, remove it and install curl from apt if you meet error(s).