Automating Raspberry Pi settings
#Problem: Every time I try something new on my Raspberry Pi and something breaks, I have to do clean image install and start over again which is terribly frustrating.
#Solution Automate everything!!!
#Getting ready:
-
Prepare RPi sd card with PiBaker to at least let you ssh into your Pi from home network. You can setup some more automation with it. (Ideas are welcome)
-
Copy settings.txt to USB storage and change it to your settings. I named my USB "PI_SETTINGS" and formated to FAT32
All user-defined settings will be read from /mnt/usb/settings.txt
-
Start RPi and SSH into it
-
Run code:
sudo apt-get update -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y Rasbian should have git already installed so this one is optional: sudo apt-get install git -y -
Create working folder:
sudo mkdir scripts cd scripts sudo git clone https://github.com/CoderFX/RPi-Setup.git cd RPi-Setup sudo chmod +x start.sh sudo ./start.sh
#Feel free to contribute!