From 31f00c8080bfc520a00e468a4947947bbbd087f1 Mon Sep 17 00:00:00 2001 From: missytake Date: Wed, 4 Dec 2024 14:42:14 +0100 Subject: [PATCH] doc: documented alpine installation --- README.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/README.md b/README.md index c2011eb..1265b5b 100644 --- a/README.md +++ b/README.md @@ -218,3 +218,57 @@ It can also send out email alerts. a deltachat bot to receive support requests and email alerts from grafana. + + +# Set up alpine on hetzner + +This was only tested with a cloud VPS so far. +Source: +(but it's less of a hassle than described there) + +To create an alpine server on hetzner, +you need to first create a Debian VPS or something similar. + +Then you boot into the rescue system. + +Get the download link of the latest VIRTUAL x86_64 alpine iso +from . + +Login to the rescue system via console or SSH, +and write the ISO to the disk: + +``` +ssh root@xxxx:xxxx:xxxx:xxxx::1 +wipefs -a /dev/sda +wget https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-virt-3.20.3-x86_64.iso # or whatever link you got from alpine +dd if=alpine-virt-3.20.3-x86_64.iso of=/dev/sda +reboot +``` + +Then open the server console (SSH doesn't work), +login to root (no password required), +and proceed with: + +``` +cp -r /.modloop /root +cp -r /media/sda /root +umount /.modloop /media/sda +rm /lib/modules +mv /root/.modloop/modules /lib +mv /root/sda /media +setup-alpine +``` + +Then select what you wish, +contrary to the guide above, +DHCP is actually fine. +The drive should be sda, +the installation type can be sys +(why go through the hassle). + +VoilĂ ! reboot and login. +Probably the first SSH login will be via root password, +as copy-pasting your public SSH key into the console doesn't work really. +Make sure the SSH config allows this +(and turn passwort root access off afterwards). +