mynode/doc/setup_base_image_raspi4.md

66 lines
1.2 KiB
Markdown
Raw Normal View History

# 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
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
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
- Exit by selecting <Finish>, and <No> as no reboot is necessary
2023-12-22 05:09:13 +00:00
4. Update OS
```sh
sudo apt-get update
sudo apt-get -y upgrade
```
2023-12-22 05:09:13 +00:00
5. Install some basics
```sh
sudo apt-get -y install tmux
```
2023-12-22 05:09:13 +00:00
6. Install Log2Ram (Armbian has own solution)
```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
```sh
sync
2022-03-27 18:41:13 +00:00
sudo shutdown -h now
```
2023-12-22 05:09:13 +00:00
8. Make image now (if imaging)
Final results:
- Image with SSH access
- Root user disabled
- Default user admin with password bolt