Having spent most of my weekend trying to figure out unsuccessfully how to launch my bash script after boot by means of
crontab -e / @reboot, I have shifted to systemd method to launch the script after boot.
Just for the sake of curiosity of those that may be interested on this option, the server configuration file that I have prepared is the following one:
This website: link has a few ways to potentially speed up your pi :). In case the link ever breaks, here are a few methods:
Connect a Reliable Power Supply
Use a Lightweight Operating System (like Risc OS or Diet Pi)
Remove all unecessary programs (libreoffice, sonicpi, Thonny Pi, etc...)
Overclock your Raspberry Pi
Use a ...
You can reinstall snap-store by running sudo apt update then sudo apt install --reinstall snapd That will reinstall. If you have pi-apps, (I showed you how to install in this answer Unable to install Snap-Store on Rpi-4b ) You can select the snap-store app (shown how in the answer) and click the "install" button. It will ask you if you want to ...
You can use https://downloads.raspberrypi.org/raspios_armhf/images/ to find all releases of Raspberry Pi OS (Older OS in http://downloads.raspberrypi.org/raspbian/archive/)
These have .info files which describe the contents.
Download the file then use the "Other" option of Raspberry Pi imager to install it.
NOTE you really should have a backup of ...
Note: For future reference, http://downloads.raspberrypi.org/ is the website with many Raspberry Pi related images.
If you do not want the 64 bit version of Raspbian Buster, the link for Raspbian Buster is: http://downloads.raspberrypi.org/raspios_armhf/images/. Click on the folder of the version of Raspberry Pi OS you want. (Do not pick the last one on the ...
You mentioned that the contents of the myscript.sh file are :
sudo python3 pagekite.py 80 furball.pagekite.me
I suggest that you also add full paths for all the above, including python.
sudo /usr/bin/python3 <full pagekite.py path>/pagekite.py 80 <full furball.pagekite.me path>/furball.pagekite.me
At any case, run also ...
To answer your headline question: How to run a script (pointing to a python file) with root permission at startup in Raspberry Pi OS?:
I don't know what you tried because your question is unclear to me, but if root privileges are required to run a script at start/boot on RPi, here's how to do that:
$ sudo crontab -e
This will present the root crontab in ...
Your first approach may not work because
bash is not fully qualified and cron's path may not include /usr/bin
-X is not a valid bash option.
there may be a permission problem preventing cron from accessing your script
The network may not be up yet when the job is executed. You could try to delay it a little bit with bash -c 'sleep 60 && /home/...
https://downloads.raspberrypi.org/raspios_armhf/images/ contains releases
Older OS in http://downloads.raspberrypi.org/raspbian/archive/
These have .info files.
Not sure that there is a changelog for updates, although the git of the repositories would have this.
Try installing snap-store with pi-apps.
You install pi-apps by running wget -qO- https://raw.githubusercontent.com/Botspot/pi-apps/master/install | bash in a terminal. You also can directly get it from github here. https://github.com/Botspot/pi-apps After that, you need to launch pi-apps by running pi-apps in a teminal. Then, click on the 'all apps' ...
It turns out that I was using the "Legacy" driver ("Original non-GL desktop driver"), which is the default in my Raspberry Pi OS install.
To solve the low frame rate problem, run raspi-config in the terminal. In raspi-config's menu, select "Advanced Options", followed by "GL Driver", then select "GL (Fake KMS) ...
One GUI tool which is able to change disk labels is gparted. You may have to install it before use (sudo apt install gparted), then it can be accessed via the start menu. Open it, select the device and partiton you need, and click on "Label File System":
Don't forget to click "Apply" before you quit. Unlike in Windows, partition managers ...
After some digging, it appears that wpa_supplicant.service should be disabled as it was preventing wpa_cli from connecting to wlan0.
sudo systemctl disable wpa_supplicant
I was able to connect.