Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7521

Raspberry Pi OS • making things happen at startup

$
0
0
I have things that need to happen every time I reboot. one is:

Code:

sudo pigpiod
to permit the use of piscope, which I use constantly

another is to run:

Code:

sudo systemctl stop serial-getty@ttyS0.servicesudo systemctl disable serial-getty@ttyS0.servicesudo gpsd /dev/serial0 -F /var/run/gpsd.sock
to be able to read GPS output on the serial port.

I tried:
sudo systemctl mask serial-getty@ttyS0.service
which somehow took out piscope

I tried putting sudo pigpiod in etc/rc.local. no effect.

Is there a way make things happen every time? a shell script that works on boot? if so, do I need sudo in front of all commands?

Statistics: Posted by Operator J — Sun Aug 24, 2025 6:15 pm



Viewing all articles
Browse latest Browse all 7521

Trending Articles