To further expand on the question and the replies:
If you need to automate a startup script indeed rc.local is not the right way to do it. Not even a cron. A systemd service is preferable and you can set up dependencies. In your case the script should not start until networking is ready. Waiting for an arbitrary number of seconds is wasteful and does not ...
rc.local is run as root.
This is only the start of your problems.
You should NOT use rc.local on systemd - there must be hundreds of posts on this site discussing the issue. I will not waste time on the problems with the script you are trying to run.
To make matters worse you are using an obsolete OS, which makes it even harder for anyone to help.
I ended up solving this by soldering in diodes in the usb cable.
I wanted to run a dual HDD USB RAID NAS but the boot failure (back powering issue) got me flummuxed for a bit. Didn't want to use try usb hub (party for speed reasons - hdd would be connected through two usb hub chips inc onboard one). I used the split power cables from ebay - feeding the non-...
I'm answering this because this was one of the first results on Google and I had the same problem.
Windows has great difficulty reading a SD card after the raspberry Pi installed files on it. My SD Card had 2 partitions, the first one only being 61MB, the second one was 26GB. Next to that, there was almost 1GB unallocated.
Windows can only see the first ...
What I've got is a script that runs every three minutes using a line in crontab
*/3 * * * * /home/dougie/dnso.sh
This ugly bash script gets my public IP address using the OpenDNS service then drives the No-IP updater. It logs every IP address when it changes (I've got a record of 303 addresses since 8th Jan 2015). You'd need to kickstart it with echo "192....
This is more a general Linux question as NO-IP clearly document their api and have full install details for the Linux client at this page
Personally I would check your router to see if that does an update - lots of them do and you need to be in the set-up to set the port forwarding.
Once you have followed these instructions, then their support states:
To keep your installation up to date you should do system upgrades from time to time with sudo apt update && sudo apt full-upgrade. If you have done this, then you should always backup the SD Card together with the SSD storage. With an upgrade it is likely that also the kernel is upgraded together with its modules. The kernel is stored at the SD Card,...
Given that I don't need anything else graphical in the system (bars, background images, screensavers, etc), is it possible to turn all default launched app that consume graphical resources off and, consequently, run only my graphical script automatically at boot?
This implies that your script is doing all graphical issues by itself and you do not even need ...
As you already noted, running commands at bootup is done with a service on a modern operating system using systemd. Together with its built-in networking systemd-networkd it is very easy to setup routing with network address translation (NAT), as you want.
How to setup this you can look at How to make Raspberry Pi 4 as “WIFI” -> “Ethernet” adaptor. Just ...
Yes, the SD card is only used to read data while the pi is booting.
Rather than back up the SD card, you could take a copy of the tweaked cmdline.txt used to mount your USB drive, or just write down the partition id you used.
If you follow the guide you will have the SD mounted as /boot or /boot/firmware, which allows the SD card to be written for kernel / ...
There are several ways to accomplish this. One way is to put "it" in rc.local, but that's hardly ever the best way to do it. Using systemd is the new way, and perhaps the best way to do it, but not the simplest way. Using cron is a third way, and that is what we shall try here.
Be forewarned: I usually try these things on my Pi before I put them in an ...
Your Question is unclear - do you have a Pi3B or a Pi3b+?
The Pi3b+ can be booted from USB.
The Pi3b can be booted from USB only after it is enabled (which requires SD Card).
There's three ways modules get loaded
With a device tree (for something like a RTC module)
When the kernel detects a new USB device being connected.
A list of modules to can be specified in: /etc/modules or /etc/modules-load.d/modules.conf which is just a pointer to /etc/modules
The parameters for modules and modules to blacklist are in /etc/modprobe.d
Try plugin your display to the other port. I spent an hour to figure out that my display was not on the primary display port and the secondary port was showing rainbow. Switched my display to primary port i.e. next to the power input and it came up :-)
Raspbian is installed on two partitions: a fat32 boot partition for kernel and firmware and an ext4 partition for the root filesystem. To disable password authentication and only use public/private keys you always have to modify files on the ext4 filesystem at least one time. The ext4 filesystem is not readable by MS Windows or by iOS without additional ...
You have found why you should not use /etc/rc.local anymore. It has limitations due to Compatibility with SysV. We have seen many problems here on this site using it. Following the recommendation of the developers from systemd you should avoid using it. The right way nowadays is to use a systemd unit file to start a service.
With your requirement we have to ...
By default there is no need to do anything. As documented in Boot options in config.txt for option kernel you will find:
kernel is the alternative filename on the boot partition to use when loading the kernel. The default value on the Pi 1, Pi Zero, and Compute Module is kernel.img, and on the Pi 2, Pi 3, and Compute Module 3 it is kernel7.img. On the Pi4,...
Thanks for the help, but it is cured. It would appear that i had some sort of connectivity problem with my internet provider ?? Fortunately I have a mobile internet as well ( for our holiday stays), and it connected and updated straight away on that, and now is working fine on my household connection,, ( I was being told I didn’t have a secure connection ) , ...
when you turn on your pi the daemons and automatic services start.
If you want something to run each time someone logs in you would put that command in the .profile file in ur home directory. there is a different file for commands tht should run each time you turn it on. you can also use chrontab to time commands that should run only at certain times or ...
My hostapd2.6 also failed to start on raspbian stretch, just adding it to crontab will works.
@reboot sleep 60 && /usr/sbin/hostapd -B /etc/hostapd/hostapd.conf
Or the sleep might not be needed in your situation
@reboot /usr/sbin/hostapd -B /etc/hostapd/hostapd.conf
Well I found another solution:
add the following line to the end of /...
Look like @point-rpi was deprecated.
Now it's a property in /home/pi/.config/lxpanel/LXDE-pi/panels/panel for default user
Change it to point_at_menu=0 to disable pointing at menu on startup.
Credits to https://www.raspberrypi.org/forums/viewtopic.php?t=248530#p1590287