From c4e2c5d98aacc2985f16bbc4683205fb1e33e1cb Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Wed, 15 Apr 2020 13:40:10 +0200 Subject: [PATCH] work in process commit --- README.md | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/README.md b/README.md index 4647940..ffc2667 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,20 @@ This guide should show you how to set up an System with the following specificat * LUKS ## Guide +### 1. Configure and Install Image +#### 1.1 +Login to Hetzner Rescue System +```bash +ssh root@your_server_ip +``` +#### 1.2 +Create the autosetup by executing + +```bash +nano /autosetup +``` + +and saving the following content into this file: ```bash ## Hetzner Online GmbH - installimage - config @@ -35,6 +49,51 @@ LV vg0 root / btrfs 10G ## OPERATING SYSTEM IMAGE: IMAGE /root/.oldroot/nfs/install/../images/archlinux-latest-64-minimal.tar.gz ``` +#### 1.3 +Afterwards install the image by executing the following command: + +```bash +installimage +``` +#### 1.4 +When the setup finished restart the server via +```bash +reboot +``` + +### 2. Setup System +#### 2.1 +Revoke old SSH key: +```bash +ssh-keygen -f "$HOME/.ssh/known_hosts" -R your_server_ip +``` +#### 2.2 +Login to your server: +```bash +ssh root@your_server_ip +``` + +#### 2.3 +Update the system: +```bash +pacman -Syyu +``` +#### 2.4 +Install basic administration software: +```bash +pacman -Syyu nano +``` + +#### 3. Prepare System for Unlocking via SSH +#### 3.1 Execute the following script +```bash +# Install software +pacman -Syyu busybox mkinitcpio-dropbear mkinitcpio-utils +#Copy ssh-key +cp ~/.ssh/authorized_keys /etc/dropbear/root_key +``` + + ## Sources The code is adapted from the following guides: