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