Skip to content

Instantly share code, notes, and snippets.

@daviesian
Created November 14, 2020 11:59
Show Gist options
  • Save daviesian/21d06b97b9b87385088434ddec29c345 to your computer and use it in GitHub Desktop.
Save daviesian/21d06b97b9b87385088434ddec29c345 to your computer and use it in GitHub Desktop.
Custom systemd service to run ~/boot.sh when Raspberry Pi boots
sudo nano /lib/systemd/system/custom-boot.service
```
[Unit]
Description=Custom Boot Script Service
After=multi-user.target
[Service]
Type=idle
ExecStart=/bin/bash /home/pi/boot.sh
[Install]
WantedBy=multi-user.target
```
sudo chmod 644 /lib/systemd/system/custom-boot.service
sudo systemctl daemon-reload
sudo systemctl enable custom-boot.service
@daviesian
Copy link
Author

Installing Numpy:

sudo apt install libatlas3-base
sudo pip3 install numpy

@daviesian
Copy link
Author

Installing pillow:

sudo apt install -y libjpeg-dev zlib1g-dev libfreetype6-dev liblcms1-dev libopenjp2-7 libtiff5 python3-pip
sudo pip3 install pillow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment