auto-start a program on boot

open a text document.

save it , onto the desktop as

Untitled 3then open terminal and type in (really important this)

sudo chmod 755 /home/pi/Desktop/

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

then right at the bottom add


then exit and save (ctlt x , y , return)

Untitled 4

this will now open this file every time the computers boots up.

to get it to do something open in text editor and type

sleep 2

pd /home/pi/Desktop/pdtest.pd

then save it

Untitled 4j

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

Untitled 3kk

Untitled 2kk

if we don’t want this to happen every time the pi boots up, rename the file to something else, this file can also be modified to open any application or process .