Created
November 14, 2020 11:59
-
-
Save daviesian/21d06b97b9b87385088434ddec29c345 to your computer and use it in GitHub Desktop.
Custom systemd service to run ~/boot.sh when Raspberry Pi boots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
Installing Numpy: