I know this issue is old, but I have been trying to figure out how to get a python script to load using the LXDE-pi/autostart file, and I made it slightly easy on myself to start by creating a /startup dir and a startup.sh that runs all the stuff Iwant to open at startup. I was trying to run one of my scripts that does not have a GUI yet and just runs in the terminal. I was trying to get it to open using the lsterminal --command="python3.7 -c '/startup/scripts/server.py; read'" and it wasnt doing
I know this issue is old, but I have been trying to figure out how to get a python script to load using the LXDE-pi/autostart file, and I made it slightly easy on myself to start by creating a /startup dir and a startup.sh that runs all the stuff Iwant to open at startup. I was trying to run one of my scripts that does not have a GUI yet and just runs in the terminal. I was trying to get it to open using the lsterminal --command="python3.7 -c '/startup/scripts/server.py; read'" and it wasnt doing
On Thursday, 18 June 2020 at 12:15:31 UTC+2,
kol...@bintegratedtech.com wrote:
I know this issue is old, but I have been trying to figure out how
to get a python script to load using the LXDE-pi/autostart file [...]
I have the same issue. Help is appreciated!
What still works in Raspberry Pi OS is to put startup scripts in >/etc/rc.local
On Wed, 7 Jul 2021 14:25:07 +0200, "A. Dumas"
declaimed the following:
What still works in Raspberry Pi OS is to put startup scripts in
/etc/rc.local
I'd probably avoid any /etc/rc.* since they should be symlinked [...]
On Wed, 7 Jul 2021 14:25:07 +0200, "A. Dumas"
<alexandre@dumas.fr.invalid>
declaimed the following:
intoWhat still works in Raspberry Pi OS is to put startup scripts in >>/etc/rc.localI'd probably avoid any /etc/rc.* since they should be symlinked
the various run-levels, with both startup and shutdown scripts/options
as run-levels change.
crontab using an @boot specification for "time to run", and maybe with
a shell delay to ensure system is stable
Sysop: | deepend |
---|---|
Location: | Calgary, Alberta |
Users: | 264 |
Nodes: | 10 (0 / 10) |
Uptime: | 31:10:59 |
Calls: | 2,002 |
Files: | 4,428 |
D/L today: |
18 files (8,990K bytes) |
Messages: | 410,048 |