Here's a tutorial for installing Headscale on Alpine Linux Latest:

Prerequisites

Steps

  1. Update the package manager and install necessary packages by running the following command:
apk update && apk add git iptables
  1. Clone the Headscale repository by executing this command in the terminal:
git clone https://github.com/juanfont/headscale
  1. Change directory into the cloned repository:
cd headscale/
  1. Build the Docker image from the Dockerfile:
docker build -t headscale .
  1. Open the iptables by running this command:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
  1. Run the headscale Docker container and map the necessary ports:
docker run -d --name=headscale \
-v $PWD:/config \
-p 443:443 -p 80:80 -p 8024:8024 \
-e SERVER_BIND=:80 \
-e DOMAIN_NAME=yourdomain.example.com \
-e HMAC_SECRET=somesecret \
headscale
  1. Verify that the container is running by checking the logs:
docker logs headscale

You're all set! Now you have successfully installed Headscale on Alpine Linux Latest.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!