2020-03-15 18:05:15 +00:00
|
|
|
# Setup Base Image (Raspberry Pi 4)
|
|
|
|
|
2023-12-22 05:09:13 +00:00
|
|
|
**LATEST TESTED IMAGE (Debian 12 - Bookworm)**
|
|
|
|
2023-12-11-raspios-bookworm-arm64-lite.img
|
2020-03-15 18:05:15 +00:00
|
|
|
|
2023-12-22 05:09:13 +00:00
|
|
|
1. Flash Using Raspberry Pi Images
|
|
|
|
|
|
|
|
Settings
|
|
|
|
- Enable SSH
|
|
|
|
- Hostname: mynode.local
|
|
|
|
- Username: admin
|
|
|
|
- Password: bolt
|
|
|
|
|
|
|
|
2. Login as admin / bolt
|
2020-03-15 18:05:15 +00:00
|
|
|
|
|
|
|
3. Run `sudo raspi-config`
|
|
|
|
|
|
|
|
- Update 8: Get latest configuration tool
|
2023-12-22 05:09:13 +00:00
|
|
|
- System Options 1: Hostname -> mynode
|
|
|
|
- System Options 1- > Boot Options -> Console
|
|
|
|
- Localisation 5: Timezone -> US -> Central
|
|
|
|
- Localisation 5: Keyboard
|
|
|
|
- Advanced 6: Expand Filesystem
|
2020-03-15 18:05:15 +00:00
|
|
|
- Exit by selecting <Finish>, and <No> as no reboot is necessary
|
|
|
|
|
2023-12-22 05:09:13 +00:00
|
|
|
4. Update OS
|
2020-03-15 18:05:15 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y upgrade
|
|
|
|
```
|
|
|
|
|
2023-12-22 05:09:13 +00:00
|
|
|
5. Install some basics
|
2020-03-15 18:05:15 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
sudo apt-get -y install tmux
|
|
|
|
```
|
|
|
|
|
2023-12-22 05:09:13 +00:00
|
|
|
6. Install Log2Ram (Armbian has own solution)
|
2020-03-15 18:05:15 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
cd /tmp
|
|
|
|
wget https://github.com/azlux/log2ram/archive/v1.2.2.tar.gz -O log2ram.tar.gz
|
|
|
|
tar -xvf log2ram.tar.gz
|
|
|
|
mv log2ram-* log2ram
|
|
|
|
cd log2ram
|
|
|
|
chmod +x install.sh
|
|
|
|
sudo ./install.sh
|
|
|
|
cd ~
|
|
|
|
```
|
|
|
|
|
2023-12-22 05:09:13 +00:00
|
|
|
7. Sync
|
2020-03-15 18:05:15 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
sync
|
2022-03-27 18:41:13 +00:00
|
|
|
sudo shutdown -h now
|
2020-03-15 18:05:15 +00:00
|
|
|
```
|
|
|
|
|
2023-12-22 05:09:13 +00:00
|
|
|
8. Make image now (if imaging)
|
2020-03-15 18:05:15 +00:00
|
|
|
|
|
|
|
Final results:
|
|
|
|
|
|
|
|
- Image with SSH access
|
|
|
|
- Root user disabled
|
|
|
|
- Default user admin with password bolt
|