diff options
| author | Grant Shangreaux <grant@unabridgedsoftware.com> | 2021-08-23 22:47:05 -0500 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2021-09-08 22:36:53 +0200 |
| commit | de15397006c271b5506561b45fa41e110f93dec4 (patch) | |
| tree | 6a4d8fd339882b248e775f1f3ecfecf150fa6143 /doc | |
| parent | 16ef7b4938b14e68f8ca7504c9614f84530572ed (diff) | |
doc: add clarifications to Linode cookbook recipe
* doc/guix-cookbook.texi: clarify Linode recipe
Reword paragraph about adding the Guix device disk to Debian config.
Improve example commands for sftp-ing files to the server.
Minor wording fixes
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix-cookbook.texi | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi index 7f7dd98e06c..fda5093825f 100644 --- a/doc/guix-cookbook.texi +++ b/doc/guix-cookbook.texi | |||
| @@ -2050,10 +2050,12 @@ Copy into it the output of: | |||
| 2050 | cat ~/.ssh/<username>_rsa.pub | 2050 | cat ~/.ssh/<username>_rsa.pub |
| 2051 | @end example | 2051 | @end example |
| 2052 | 2052 | ||
| 2053 | Power the Linode down. In the Linode's Disks/Configurations tab, resize | 2053 | Power the Linode down. |
| 2054 | the Debian disk to be smaller. 30 GB is recommended. | 2054 | |
| 2055 | In the Linode's Storage tab, resize the Debian disk to be smaller. | ||
| 2056 | 30 GB free space is recommended. Then click "Add a disk", and fill | ||
| 2057 | out the form with the following: | ||
| 2055 | 2058 | ||
| 2056 | In the Linode settings, "Add a disk", with the following: | ||
| 2057 | @itemize @bullet | 2059 | @itemize @bullet |
| 2058 | @item | 2060 | @item |
| 2059 | Label: "Guix" | 2061 | Label: "Guix" |
| @@ -2065,9 +2067,9 @@ Filesystem: ext4 | |||
| 2065 | Set it to the remaining size | 2067 | Set it to the remaining size |
| 2066 | @end itemize | 2068 | @end itemize |
| 2067 | 2069 | ||
| 2068 | On the "configuration" field that comes with the default image, press | 2070 | In the Configurations tab, press "Edit" on the default Debian profile. |
| 2069 | "..." and select "Edit", then on that menu add to @file{/dev/sdc} the "Guix" | 2071 | Under "Block Device Assignment" click "Add a Device". It should be |
| 2070 | label. | 2072 | @file{/dev/sdc} and you can select the "Guix" disk. Save Changes. |
| 2071 | 2073 | ||
| 2072 | Now "Add a Configuration", with the following: | 2074 | Now "Add a Configuration", with the following: |
| 2073 | @itemize @bullet | 2075 | @itemize @bullet |
| @@ -2093,8 +2095,8 @@ Root device: @file{/dev/sda} | |||
| 2093 | Turn off all the filesystem/boot helpers | 2095 | Turn off all the filesystem/boot helpers |
| 2094 | @end itemize | 2096 | @end itemize |
| 2095 | 2097 | ||
| 2096 | Now power it back up, picking the Debian configuration. Once it's | 2098 | Now power it back up, booting with the Debian configuration. Once it's |
| 2097 | booted up, ssh in your server via @code{ssh | 2099 | running, ssh to your server via @code{ssh |
| 2098 | root@@@var{<your-server-IP-here>}}. (You can find your server IP address in | 2100 | root@@@var{<your-server-IP-here>}}. (You can find your server IP address in |
| 2099 | your Linode Summary section.) Now you can run the "install guix from | 2101 | your Linode Summary section.) Now you can run the "install guix from |
| 2100 | @pxref{Binary Installation,,, guix, GNU Guix}" steps: | 2102 | @pxref{Binary Installation,,, guix, GNU Guix}" steps: |
| @@ -2183,19 +2185,20 @@ Replace the following fields in the above configuration: | |||
| 2183 | @end lisp | 2185 | @end lisp |
| 2184 | 2186 | ||
| 2185 | The last line in the above example lets you log into the server as root | 2187 | The last line in the above example lets you log into the server as root |
| 2186 | and set the initial root password. After you have done this, you may | 2188 | and set the initial root password (see the note at the end of this |
| 2189 | recipe about root login). After you have done this, you may | ||
| 2187 | delete that line from your configuration and reconfigure to prevent root | 2190 | delete that line from your configuration and reconfigure to prevent root |
| 2188 | login. | 2191 | login. |
| 2189 | 2192 | ||
| 2190 | Save your ssh public key (eg: @file{~/.ssh/id_rsa.pub}) as | 2193 | Copy your ssh public key (eg: @file{~/.ssh/id_rsa.pub}) as |
| 2191 | @file{@var{<your-username-here>}_rsa.pub} and your | 2194 | @file{@var{<your-username-here>}_rsa.pub} and put |
| 2192 | @file{guix-config.scm} in the same directory. In a new terminal run | 2195 | @file{guix-config.scm} in the same directory. In a new terminal run |
| 2193 | these commands. | 2196 | these commands. |
| 2194 | 2197 | ||
| 2195 | @example | 2198 | @example |
| 2196 | sftp root@@<remote server ip address> | 2199 | sftp root@@<remote server ip address> |
| 2197 | put /home/<username>/ssh/id_rsa.pub . | 2200 | put /path/to/files/<username>_rsa.pub . |
| 2198 | put /path/to/linode/guix-config.scm . | 2201 | put /path/to/files/guix-config.scm . |
| 2199 | @end example | 2202 | @end example |
| 2200 | 2203 | ||
| 2201 | In your first terminal, mount the guix drive: | 2204 | In your first terminal, mount the guix drive: |
| @@ -2205,9 +2208,9 @@ mkdir /mnt/guix | |||
| 2205 | mount /dev/sdc /mnt/guix | 2208 | mount /dev/sdc /mnt/guix |
| 2206 | @end example | 2209 | @end example |
| 2207 | 2210 | ||
| 2208 | Due to the way we set things up above, we do not install GRUB | 2211 | Due to the way we set up the bootloader section of the guix-config.scm, |
| 2209 | completely. Instead we install only our grub configuration file. So we | 2212 | only the grub configuration file will be installed. So, we need to copy |
| 2210 | need to copy over some of the other GRUB stuff that is already there: | 2213 | over some of the other GRUB stuff already installed on the Debian system: |
| 2211 | 2214 | ||
| 2212 | @example | 2215 | @example |
| 2213 | mkdir -p /mnt/guix/boot/grub | 2216 | mkdir -p /mnt/guix/boot/grub |
| @@ -2260,7 +2263,7 @@ still need to set your root and user password initially by clicking on | |||
| 2260 | the ``Launch Console'' option in your linode. Choose the ``Glish'' | 2263 | the ``Launch Console'' option in your linode. Choose the ``Glish'' |
| 2261 | instead of ``Weblish''. Now you should be able to ssh into the machine. | 2264 | instead of ``Weblish''. Now you should be able to ssh into the machine. |
| 2262 | 2265 | ||
| 2263 | Horray! At this point you can shut down the server, delete the | 2266 | Hooray! At this point you can shut down the server, delete the |
| 2264 | Debian disk, and resize the Guix to the rest of the size. | 2267 | Debian disk, and resize the Guix to the rest of the size. |
| 2265 | Congratulations! | 2268 | Congratulations! |
| 2266 | 2269 | ||
