open a text document.
save it , onto the desktop as
then open terminal and type in (really important this)
sudo chmod 755 /home/pi/Desktop/startup.sh
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
then right at the bottom add
then exit and save (ctlt x , y , return)
this will now open this file every time the computers boots up.
to get it to do something open startup.sh in text editor and type
then save it
now if we test this by opening this file by double clicking then choosing Execute
it waits for 2 seconds, then opens Pd with the patch pdtest.pd, which is found at /home/pi/Desktop/pdtest.pd
if we don’t want this to happen every time the pi boots up, rename the startip.sh file to something else, this file can also be modified to open any application or process .