## :strawberry: :three: Setup a Raspberry Pi 3
### 1. Install Raspbian
- follow the [`rpi-imager`]
- add the following to the root as `/wpa_supplicant.conf`
```conf
country=<COUNTRY_CODE>
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="<WIFI_SSID>"
    psk="<WIFI_PASSWORD>"
}
```
- run `touch /ssh`

### 2. Setup an alias to the machine
```ssh
# ~/.ssh/config
Host rpi3
  User dragoon
  HostName <ip>
  PreferredAuthentications password
```

### 3. Setup a nice MOTD
- save the following as `welcome.sh`
```bash
#!/bin/bash

echo "$(tput setaf 2)
   .~~.   .~~.
  '. \ ' ' / .'$(tput setaf 1)
   .~ .~~~..~.            $(tput sgr0)   ___ $(tput setaf 1)
  : .~.'~'.~. :           $(tput sgr0) / _  )$(tput setaf 1)
 ~ (   ) (   ) ~          $(tput sgr0)(_)_) |$(tput setaf 1)
( : '~'.~.'~' : )         $(tput sgr0) _(_ ( $(tput setaf 1)
 ~ .~ (   ) ~. ~          $(tput sgr0)( )_) |$(tput setaf 1)
  (  : '~' :  )           $(tput sgr0) \____)$(tput setaf 1)
   '~ .~~~. ~'
       '~'
$(tput sgr0)"
```
```bash
scp welcome.sh rpi3:/home/dragoon/welcome.sh
ssh rpi3 -t sudo mv /home/dragoon/welcome.sh /etc/profile.d/welcome.sh
ssh rpi3 -t "echo | sudo tee /etc/motd"
```

## :strawberry: :four: Setup a Raspberry Pi 4
### 1. Install Raspbian
- follow the [`rpi-imager`]

### 2. Setup an alias to the machine
```ssh
# ~/.ssh/config
Host rpi4
  User dragoon
  HostName <ip>
  PreferredAuthentications password
```

### 3. Setup a nice MOTD
- save the following as `welcome.sh`
```bash
#!/bin/bash

echo "$(tput setaf 2)
   .~~.   .~~.
  '. \ ' ' / .'$(tput setaf 1)
   .~ .~~~..~.            $(tput sgr0) _  _   $(tput setaf 1)
  : .~.'~'.~. :           $(tput sgr0)( )( )  $(tput setaf 1)
 ~ (   ) (   ) ~          $(tput sgr0)| || |  $(tput setaf 1)
( : '~'.~.'~' : )         $(tput sgr0)| || |_ $(tput setaf 1)
 ~ .~ (   ) ~. ~          $(tput sgr0)(__  __)$(tput setaf 1)
  (  : '~' :  )           $(tput sgr0)   (_)  $(tput setaf 1)
   '~ .~~~. ~'
       '~'
$(tput sgr0)"
```
```bash
scp welcome.sh rpi4:/home/dragoon/welcome.sh
ssh rpi4 -t sudo mv /home/dragoon/welcome.sh /etc/profile.d/welcome.sh
ssh rpi4 -t "echo | sudo tee /etc/motd"
```

[`rpi-imager`]: https://www.raspberrypi.com/software/