4
votes
Accepted
How to run a program on boot, but not user login?
.bashrc runs on every interactive shell launch. - It does not run when the RPi is booted (unless you have "changed something").
If your app runs after booting, and before you launch an ...
3
votes
Accepted
I accidentally removed read, write and execute permissions from the root ("/") directory
This is an issue that cannot be corrected out of the running system. I would advise shutting down the Pi(1), removing the SD card and then attaching it via card-reader to a different computer running ...
3
votes
Python Script Instead of OS
You need to boot an OS in order to run python, you can get Raspbian to run your Python script on boot via cron.
3
votes
Accepted
can i be sure the eeprom configuration is the latest version?
This is a bit complicated, so please bear with me:
While "LATEST" (latest actually) now is a branch of the EEPROM firmware, it may not be in the sense that you mean. I'll explain that in ...
3
votes
Boot from one specific USB hard drive while using the raspi-config boot order set to USB boot first, SD second
On a Pi 4, it should be possible to boot from a device connected to USB-C (BCM-USB-MSD setting for BOOT_ORDER), which should ignore devices connected to regular USB ports. It's not a great option ...
3
votes
Accepted
launcher.sh behaves differently @reboot than calling with sh
This is a relative path:
envname/bin/activate
Presumably, when you use sh test.sh, your current working directory includes a subdirectory envname.
However, every directory not called envname could ...
2
votes
How to network boot Pi over WiFi
I ended up doing this in a roundabout fashion. I found an old WiFi router on eBay that cost basically nothing as it was obsolete, and set that up as a client on my wireless network. That gave me ...
2
votes
Raspberry Pi hdmi black screen (SSH works fine)
I had a similar problem. My first Raspberry Pi, brand new, would not boot. Went through all the hoops of not booting RPi4B 8GB to finally trip over this link:
https://github.com/raspberrypi/firmware/...
2
votes
Accepted
.service or crontab for shell script calling python-CLI app and/or python script failing
There are two possibilities that come to mind:
By using which python, you may have taken the incorrect path for the script that uses Python3. You will need to use the appropriate full path for Python ...
2
votes
Accepted
Python Script Instead of OS
Please read the answers to a duplicate question here
cron is the simplest:
open your crontab for editing:
crontab -e
add a job to your crontab by adding a line similar to this:
@reboot sleep 15; /...
2
votes
Accepted
Where is rngd started? How to pass a parameter?
Thanks to Dougie, I edited the file /etc/default/rng-tools-debian and added a line RNGDOPTIONS="-S 86400" (to give me a 1 day interval) followed by a sudo systemctl restart rng-tools.service ...
2
votes
Accepted
Replace files in /boot while running
I am not sure however that it is safe to replace the files in /boot while Raspbian is still running.
None of the files in the boot partition are used after the kernel has finished loading, so yes, ...
2
votes
System binaries fail with "Exec format error", apt-get fails with "117: Structure needs cleaning"
The system is currently still up
In what looks to be a completedly screwed sense. Trying to salvage this is probably a bad to impossible idea.
I'd guess this is the culprit, a non-standard entry in /...
1
vote
Trying to run a python program on boot - error file location?
Not sure how quickly you want the program to start after boot but I use the following code in a bash file to start a python3 daemon:
starttest.sh
sleep 10
nohup python3 -u /home/pi/bin/test.py > &...
1
vote
Accepted
Changed sd card disk signature in diskpart, now gets stuck booting
If you setup a Pi with SD reader you can use the following script to check consistency of a Raspbian/Raspberry Pi OS SD Card image in the reader.
#! /bin/bash
# 2021-02-10
# Check consistency of ...
1
vote
Accepted
How to change files on raspberry pi without starting it up
Requirements
Another computer running Linux OR another MicroSD card to boot the Raspberry Pi with.
MicroSD card reader
Steps
Shutdown the Raspberry Pi (Done!)
Pull out the boot media, in this case ...
1
vote
Where is rngd started? How to pass a parameter?
In general listing files which belong to a package usually helps finding its configs. If you have rngd installed, you can run dpkg -L rng-tools-debian, otherwise you can look at the package contents ...
1
vote
Connecting wlan1 to wifi at boot
You have 2 issues.
See Predictable Network Interface Names in How to set up networking/WiFi.
No modern distribution relies on default port enumeration because the port allocation is subject to a race ...
1
vote
Accepted
Connecting wlan1 to wifi at boot
Create a wpa_supplicant.conf for each interface:
wpa_supplicant-wlan0.conf
wpa_supplicant_wlan1.conf
1
vote
RaspberryPi Running Debian 11 Won't Boot Without Monitor
Here are a few things to try based on several threads that I found regarding video related Pi 4 boot issues.
Update the firmware in the eeprom but make sure you have backups of anything important and ...
1
vote
Raspberry Pi 4B script won't run without being plugged in to monitor
SOLVED:
I needed to force HDMI output. I did this by opening:
sudo nano /boot/config.txt
and uncommenting the line:
hdmi_force_hotplug=1
1
vote
Delay booting devices or booting the kernel
One thing that might help is switching off the USB things until you need them - however IIRC even USB Hubs that do properly support Per-Port Power Switching will tend to power up in the powered state. ...
1
vote
Python script runs in rc.local, but won't save file, Works from command line
rc.local has been deprecated for some time - here's one description explaining its current state. You shouldn't use rc.local because it's not supported any longer.
There are two common alternatives ...
1
vote
After I plug in the power, there's just a solid red LED with a single green flash
It seems unlikely to me that there is a direct answer to your question, as currently written. It seems likely to me that some trouble-shooting/trial-and-error will be required. Following are some ...
1
vote
How To make Raspberry Pi Hardware PWM off after startup
There are at least 4 libraries supporting hardware PWM; WiringPi (deprecated), pigpio (daemon), Pi.GPIO (python), pi-gpio (c).
All of these allow PWM to be started/stopped programatically at any time.
...
1
vote
How to enable ssh semi-headless (I have a keyboard but no monitor)
do you have a USB thumb drive?
flash raspberry pi lite version on USB thumb drive
create empty ssh file in first partition
remove SD card from Pi400
insert USB drive
boot
ssh into pi400
insert SD ...
1
vote
How to enable ssh semi-headless (I have a keyboard but no monitor)
If you are like OP and don't have an SD card reader and want to enable SSH because you don't (yet) have a video display:
Do the following:
Insert the MicroSD card with Raspian OS in the card slot
...
1
vote
Can I use Ubuntu 8.10 on a Raspberry Pi?
I'm pretty sure you won't be able to run a 2.6 kernel on a Pi without a major rewrite, which could even accidentally fix the vulnerability you're after.
If it doesn't have to be a kernel vulnerability,...
1
vote
Raspberry Pi Zero W taking 38 seconds to boot, how can I speed it up?
I'm using Crontab to....
A simpler (at least WRT solving the problem) approach would be to start it via systemd, giving you more control over what point in the boot process it happens. You may not ...
1
vote
Need to see the console boot messages, not the splash screen
I found it.
cmdline.txt is found in /boot/firmware .
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
boot × 1567raspbian × 376
boot-issues × 182
sd-card × 139
pi-3 × 111
usb × 94
python × 87
pi-4 × 87
gpio × 59
pi-2 × 53
pi-3b+ × 53
script × 47
ssh × 46
power × 40
hdmi × 39
raspbian-jessie × 39
kernel × 39
raspbian-stretch × 38
noobs × 37
bootloader × 36
networking × 35
ubuntu × 35
linux × 34
wifi × 32
pi-zero × 32