My personal notes regarding my work on RPi4 (4GB RAM)
- Working with Intel Realsense D455
- Headless install Ubuntu Server 18.04 on Pi
Bash command to run a script every 2 seconds, forever:
while sleep 2; do (./script.sh &) ; done
Running any script on linux on startup by enabling rc.local:
sudo systemctl enable rc-local
(Python) For installing opencv directly use my shell script(opencv.sh) in this repo. After making it executable, Run using-
./opencv.sh
Add the following lines at end of rc.local file:
sudo python script1.py &
sudo python script2.py &
echo "Running scripts in parallel"
wait # Waiting until both scripts finish
echo "Script done running"
exit 0