How I set up a my headless Raspberry Pi 4 "RPi" to farm Chia.
Link
https://www.raspberrypi.org/forums/viewtopic.php?t=275370
- Put
ssh
into boot folder. Upon reboot, the RPi will be enabled for SSH and the file will be removed from the directory.
- Edit
wpa_supplicant.conf
and put in two letter country code, network name, and password. - Put
wpa_supplicant.conf
into boot folder. Upon reboot, the RPi will connect to the network.
ping raspberrypi.local
ssh pi@<ip>
- password is
raspberry
- Default password is
raspberry
. passwd
- Update your RPi's name from
raspberrypi
to whatever you'd like. - Do it here
sudo nano /etc/hostname
- and here
sudo nano /etc/hosts
- Reboot to have it take effect
sudo reboot
- Create mount point
- https://www.raspberrypi.org/documentation/configuration/external-storage.md
rsync -P ~/.chia/mainnet/db/* pi@192.168.56.100:~/.chia/mainnet/db
- Update Python https://linuxize.com/post/how-to-install-python-3-7-on-debian-9/
- Update Pip
- Make sure Requirements installed https://github.com/martomi/chiadog/blob/main/requirements.txt
- set up reboot on network interruption https://weworkweplay.com/play/rebooting-the-raspberry-pi-when-it-loses-wireless-connection-wifi/
- start chia farm on boot https://weworkweplay.com/play/raspberry-pi-nodejs/
- start chiadog on boot