chore: update readme - instructions for enabling sudo (#845)

Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
This commit is contained in:
Arthur ZapparoliandDevin Buhl authored and GitHub committed 2023-07-11 16:04:41 -04:00
1 parent 14e03b23f0
commit ce4c9554b3
1 file changed
+19 -11
+19 -11
View File
@@ -63,28 +63,36 @@ There is a decent guide [here](https://www.linuxtechi.com/how-to-install-debian-
- Keep ssh server checked - Keep ssh server checked
``` ```
2. [Post install] Enable SSH for root user 2. [Post install] Remove CD/DVD as apt source
```sh ```sh
sed -i 's/#\?\(PermitRootLogin\s*\).*$/\1yes/' /etc/ssh/sshd_config su -
systemctl restart sshd 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 ```sh
mkdir -m 700 ~/.ssh mkdir -m 700 ~/.ssh
sudo apt install curl
curl https://github.com/${github_username}.keys > ~/.ssh/authorized_keys curl https://github.com/${github_username}.keys > ~/.ssh/authorized_keys
chmod 600 ~/.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 #### 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). 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).