From dd82456dd2040af16621bb5cc01903f9217f58cd Mon Sep 17 00:00:00 2001 From: happysalada Date: Fri, 30 Oct 2020 14:03:53 +0900 Subject: [PATCH 1/5] separate install instructions --- hosters/hetzner-cloud/README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 hosters/hetzner-cloud/README.md diff --git a/hosters/hetzner-cloud/README.md b/hosters/hetzner-cloud/README.md new file mode 100644 index 0000000..4e2a5aa --- /dev/null +++ b/hosters/hetzner-cloud/README.md @@ -0,0 +1,21 @@ +# Instructions + +1. Create a server with any distribution (Ubuntu for exemple) from the Hetzner UI +2. In your server options on the Hetzner UI click on `Mount image`. Find the NixOS image and mount it +3. You won't be able to ssh into your server. You will have to do the following steps by logging in with the Hetzner UI. + 3.a On the top right of the server details click on the icon `>_`. + 3.b fork this repo and replace your SSH public key in the script. Make a commit on a new branch for example. + 3.c get the url of the script you created (should look like https://raw.github.com/YOUR_USER_NAME/nixos-install-scripts/YOUR_BRANCH_NAME/hosters/hetzner-cloud/nixos-install-hetzner-cloud.sh) + 3.d paste the following command into your console gui `curl -L YOUR_URL | sudo bash` +4. on your own computer you can now ssh into the newly created machine + +# Troubleshooting + +## SSH `WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!` + +if you have sshed into your server before installing NixOS, you will have to remove the server from your .know-hosts file. +Open the file (located in your .ssh directory) and delete the entry corresponding to the server. + +## Curl 404 error + +if you copy and paste a url from the Hetzner console GUI, some characters can get replaced (If you are using an English/US keyboard layout for example). Just replace the offending characters (check the punctuation especially, @:_ and the like) From ab1bb524f7b72c67ec75ab4d8867899d03f1d110 Mon Sep 17 00:00:00 2001 From: Raphael Megzari Date: Fri, 6 Nov 2020 11:00:46 +0900 Subject: [PATCH 2/5] fix: markdown properly render a list add missing punctuation --- hosters/hetzner-cloud/README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/hosters/hetzner-cloud/README.md b/hosters/hetzner-cloud/README.md index 4e2a5aa..4232d9c 100644 --- a/hosters/hetzner-cloud/README.md +++ b/hosters/hetzner-cloud/README.md @@ -1,21 +1,21 @@ # Instructions -1. Create a server with any distribution (Ubuntu for exemple) from the Hetzner UI -2. In your server options on the Hetzner UI click on `Mount image`. Find the NixOS image and mount it +1. Create a server with any distribution (Ubuntu for exemple) from the Hetzner UI. +2. In your server options on the Hetzner UI click on `Mount image`. Find the NixOS image and mount it. 3. You won't be able to ssh into your server. You will have to do the following steps by logging in with the Hetzner UI. - 3.a On the top right of the server details click on the icon `>_`. - 3.b fork this repo and replace your SSH public key in the script. Make a commit on a new branch for example. - 3.c get the url of the script you created (should look like https://raw.github.com/YOUR_USER_NAME/nixos-install-scripts/YOUR_BRANCH_NAME/hosters/hetzner-cloud/nixos-install-hetzner-cloud.sh) - 3.d paste the following command into your console gui `curl -L YOUR_URL | sudo bash` -4. on your own computer you can now ssh into the newly created machine +- On the top right of the server details click on the icon `>_`. +- fork this repo and replace your SSH public key in the script. Make a commit on a new branch for example. +- get the url of the script you created (should look like https://raw.github.com/YOUR_USER_NAME/nixos-install-scripts/YOUR_BRANCH_NAME/hosters/hetzner-cloud/nixos-install-hetzner-cloud.sh) +- paste the following command into your console gui `curl -L YOUR_URL | sudo bash`. +4. on your own computer you can now ssh into the newly created machine. # Troubleshooting ## SSH `WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!` -if you have sshed into your server before installing NixOS, you will have to remove the server from your .know-hosts file. +if you have already ssh-ed into your server before installing NixOS, you will have to remove the server from your .know-hosts file. Open the file (located in your .ssh directory) and delete the entry corresponding to the server. ## Curl 404 error -if you copy and paste a url from the Hetzner console GUI, some characters can get replaced (If you are using an English/US keyboard layout for example). Just replace the offending characters (check the punctuation especially, @:_ and the like) +if you copy and paste a url from the Hetzner console GUI, some characters can get replaced (If you are using an English/US keyboard layout for example). Just replace the offending characters (check the punctuation especially, @:_ and the likes). From 5d46cc8709fcee8957b871c7b4d7a4913f229e2d Mon Sep 17 00:00:00 2001 From: Raphael Megzari Date: Fri, 6 Nov 2020 11:01:24 +0900 Subject: [PATCH 3/5] add missing punctuation --- hosters/hetzner-cloud/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosters/hetzner-cloud/README.md b/hosters/hetzner-cloud/README.md index 4232d9c..e6878f7 100644 --- a/hosters/hetzner-cloud/README.md +++ b/hosters/hetzner-cloud/README.md @@ -5,7 +5,7 @@ 3. You won't be able to ssh into your server. You will have to do the following steps by logging in with the Hetzner UI. - On the top right of the server details click on the icon `>_`. - fork this repo and replace your SSH public key in the script. Make a commit on a new branch for example. -- get the url of the script you created (should look like https://raw.github.com/YOUR_USER_NAME/nixos-install-scripts/YOUR_BRANCH_NAME/hosters/hetzner-cloud/nixos-install-hetzner-cloud.sh) +- get the url of the script you created (should look like https://raw.github.com/YOUR_USER_NAME/nixos-install-scripts/YOUR_BRANCH_NAME/hosters/hetzner-cloud/nixos-install-hetzner-cloud.sh). - paste the following command into your console gui `curl -L YOUR_URL | sudo bash`. 4. on your own computer you can now ssh into the newly created machine. From 2c087468b4e6a1fff6d8a2bfac118613852a922e Mon Sep 17 00:00:00 2001 From: Raphael Megzari Date: Thu, 26 Nov 2020 12:50:52 +0900 Subject: [PATCH 4/5] fix indentation --- hosters/hetzner-cloud/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hosters/hetzner-cloud/README.md b/hosters/hetzner-cloud/README.md index e6878f7..00817e1 100644 --- a/hosters/hetzner-cloud/README.md +++ b/hosters/hetzner-cloud/README.md @@ -3,10 +3,10 @@ 1. Create a server with any distribution (Ubuntu for exemple) from the Hetzner UI. 2. In your server options on the Hetzner UI click on `Mount image`. Find the NixOS image and mount it. 3. You won't be able to ssh into your server. You will have to do the following steps by logging in with the Hetzner UI. -- On the top right of the server details click on the icon `>_`. -- fork this repo and replace your SSH public key in the script. Make a commit on a new branch for example. -- get the url of the script you created (should look like https://raw.github.com/YOUR_USER_NAME/nixos-install-scripts/YOUR_BRANCH_NAME/hosters/hetzner-cloud/nixos-install-hetzner-cloud.sh). -- paste the following command into your console gui `curl -L YOUR_URL | sudo bash`. + - On the top right of the server details click on the icon `>_`. + - fork this repo and replace your SSH public key in the script. Make a commit on a new branch for example. + - get the url of the script you created (should look like https://raw.github.com/YOUR_USER_NAME/nixos-install-scripts/YOUR_BRANCH_NAME/hosters/hetzner-cloud/nixos-install-hetzner-cloud.sh). + - paste the following command into your console gui `curl -L YOUR_URL | sudo bash`. 4. on your own computer you can now ssh into the newly created machine. # Troubleshooting From 0e46eb8452ea77a81ea6b6297b4bce2d09a95f54 Mon Sep 17 00:00:00 2001 From: Raphael Megzari Date: Thu, 26 Nov 2020 12:51:33 +0900 Subject: [PATCH 5/5] fix indentation --- hosters/hetzner-cloud/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hosters/hetzner-cloud/README.md b/hosters/hetzner-cloud/README.md index 00817e1..7c20a34 100644 --- a/hosters/hetzner-cloud/README.md +++ b/hosters/hetzner-cloud/README.md @@ -3,10 +3,10 @@ 1. Create a server with any distribution (Ubuntu for exemple) from the Hetzner UI. 2. In your server options on the Hetzner UI click on `Mount image`. Find the NixOS image and mount it. 3. You won't be able to ssh into your server. You will have to do the following steps by logging in with the Hetzner UI. - - On the top right of the server details click on the icon `>_`. - - fork this repo and replace your SSH public key in the script. Make a commit on a new branch for example. - - get the url of the script you created (should look like https://raw.github.com/YOUR_USER_NAME/nixos-install-scripts/YOUR_BRANCH_NAME/hosters/hetzner-cloud/nixos-install-hetzner-cloud.sh). - - paste the following command into your console gui `curl -L YOUR_URL | sudo bash`. + - On the top right of the server details click on the icon `>_`. + - fork this repo and replace your SSH public key in the script. Make a commit on a new branch for example. + - get the url of the script you created (should look like https://raw.github.com/YOUR_USER_NAME/nixos-install-scripts/YOUR_BRANCH_NAME/hosters/hetzner-cloud/nixos-install-hetzner-cloud.sh). + - paste the following command into your console gui `curl -L YOUR_URL | sudo bash`. 4. on your own computer you can now ssh into the newly created machine. # Troubleshooting