- Create a new Primary IP in your Hetzner project, name it
screenshare
- Forward the new IP to some domain (optionally)
- Add your SSH key to the project and name it
main
- Navigate to Security -> API tokens in your Hetzner console, and generate a new Read & write token
- Install Hetzner CLI
- Execute
hcloud context create yourname
and enter your token - Replace YOUR_DOMAIN in both files with your domain or IP
- To start the service, run
screenshare.sh
. Once cloud-init finished log is there, you're ready to go. Keep in mind that service creates SSL certificate after startup, which might take a moment. Total startup time is around 2-3 minutes. - To stop the service, run
stop.sh
Warning
This script creates a new CPX31 server on the current context's project. At the time of writing, that costs €0.026/hr.