diff --git a/README.md b/README.md index 8ce97090..6c32aa7c 100644 --- a/README.md +++ b/README.md @@ -63,28 +63,36 @@ There is a decent guide [here](https://www.linuxtechi.com/how-to-install-debian- - Keep ssh server checked ``` -2. [Post install] Enable SSH for root user +2. [Post install] Remove CD/DVD as apt source ```sh - sed -i 's/#\?\(PermitRootLogin\s*\).*$/\1yes/' /etc/ssh/sshd_config - systemctl restart sshd + su - + sed -i '/deb cdrom/d' /etc/apt/sources.list + apt update + exit ``` -3. [Post install] Add SSH keys (or use `ssh-copy-id` on the client that is connecting) +3. [Post install] Enable sudo for your non-root user + + ```sh + su - + apt install sudo + usermod -aG sudo ${username} + echo "${username} ALL=(ALL) NOPASSWD:ALL" | tee /etc/sudoers.d/${username} + exit + newgrp sudo + sudo apt update + ``` + +4. [Post install] Add SSH keys (or use `ssh-copy-id` on the client that is connecting) ```sh mkdir -m 700 ~/.ssh + sudo apt install curl curl https://github.com/${github_username}.keys > ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys ``` -4. [Post install] If you cannot run `apt update` without errors, try removing CD/DVD as apt source - - ```sh - sed -i '1d' /etc/apt/sources.list - apt update - ``` - #### Raspberry Pi / ARM64 If you choose to use a Raspberry Pi for the cluster, it is recommended to have at minimum a Raspberry Pi4 (4GB) and preferably an 8GB model. Additionally, it is also recommended to boot from an external SSD, rather than the SD card. This is supported [natively](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html), however if you have an early Raspberry Pi4, you may need to [update the bootloader](https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb).