Ingo
  • Member for 3 years, 11 months
  • Last seen more than a week ago
  • Germany
Running a Python script at startup
9 votes

2020 Update: Nowadays modern Linux distributions, including Raspbian, use systemd instead of old style SysV as init system. For downstream compatibility SysV is only emulated by systemd but will lose ...

View answer
Raspberry Pi 3 not lirc not running/working
Accepted answer
9 votes

Update 2019-06-14: Please note that the infrared device has recently changed from lirc-rpi to gpio-ir. As confirmed by @Pascal in his comment the setup also works with the new device name. Here is ...

View answer
Netbooting multiple "workers" RPi from a "master" RPi
Accepted answer
9 votes

Here is a solution with netbooting using sytemd-networkd. Network booting works only for the wired adapter. Booting over wireless LAN is not supported 1. It is also important that there is already ...

View answer
How to install Raspbian Stretch on Raspberry Pi 4?
8 votes

You cannot install Raspbian Stretch on a Raspberry Pi 4B. The RPi 4B does not support it as you can read in the release notes in section from 2019-06-20. A RPi 4B is only supported by Raspbian Buster.

View answer
Install base Raspbian from repository, not using an image
8 votes

━━━ Setup using a Linux computer with intel processor ━━━ This installation uses another computer with an intel processor. If you want to run the installation on a Raspberry Pi then look at the other ...

View answer
Switch between wifi client and access point without reboot
Accepted answer
7 votes

Access point and client mode are both running as services so we should use systemd-networkd to switch off one service and switch on the other. With its options we are able to do it without rebooting. ...

View answer
Connect Android smartphone with Wi-Fi Direct to a Raspberry Pi
Accepted answer
7 votes

I have tested this with some different smart phones using Android 4.0, Android 6.0, Android 6.0.1 and Android 10, but mainly used the last one. I cannot give all examples so I will only use a ...

View answer
How to bridge an access point with a remote network by Wireguard? (with the use of systemd-networkd)
7 votes

You like to replace the OpenVPN server from my example (1) with Wireguard as shown on the schema in the question. You also want to have a bridged virtual private network to have both remote private ...

View answer
What file instructs the wpa_supplicant.conf to move from boot partition?
Accepted answer
7 votes

As Dirk and Ghanima stated in their answers, the service may be overwritten by future updates/upgrades of the system. But systemd has a mechanism to avoid this. You can use a drop in file. An update/...

View answer
How do I start and stop the on board wireless access point?
Accepted answer
7 votes

I assume you are using Raspbian and you have setup the access point with hostapd. To switch the access point this commands should do: rpi ~$ sudo systemctl stop hostapd.service rpi ~$ sudo systemctl ...

View answer
Access point as WiFi router/repeater, optional with bridge
7 votes

This answer is not thought for setup. For setup look at the other answer to this question starting with Setup wifi repeater. This is mainly for troubleshooting and to show how it works with detailed ...

View answer
How do I make the OS reset itself every time it boots up?
7 votes

The idea is to use a read only file system as you have it on a LiveCD together with a union filesystem. (quote [1]) Generally speaking, a union filesystem combines multiple filesystems into a ...

View answer
Building a 'Packet squirrel" using Raspberry Pi
Accepted answer
6 votes

To make a man in the middle attacker with a Raspberry Pi 3B(+) or 4B is very simple. You will use an additional USB/ethernet dongle so you have a second wired interface eth1 available. Now just bridge ...

View answer
Will these command sufficiently to connect 2 raspberry pi together?
Accepted answer
6 votes

i wonder if tested on these steps on actual raspberry pi, will it work or i still need to configure some steps in between? If you use the default Raspberry Pi OS on both RasPis and connect them wired ...

View answer
Does the Raspberry Pi 4 with 8 GB RAM require a 64-bit Linux?
6 votes

Does the 8GB model strictly need 64 bit? No, you can use the default Raspberry Pi OS based on Buster, which is a 32 bit operating system. The only restriction is that a running program cannot address ...

View answer
Using a Raspberry Pi 4 (or alternative) for Gigabit speed test, can it handle the bandwidth?
6 votes

Yes, the Raspberry Pi 4B can handle 1 GBit transfer rate on the wired connection. Other versions of the Raspberry Pi cannot support it because of limitations by the hardware. I have just tested it ...

View answer
How to change host name before first boot?
Accepted answer
6 votes

To translate the script from Milliways in his answer, change the name in /etc/hostname as you already have done and add or change the entry 127.0.1.1 raspberrypi in /etc/hosts to the new hostname.

View answer
What step am I missing in my installation schema for Raspberry Pi OS on my headless RPI 1 to enable encryption?
6 votes

As far as I understand you want to have an encrypted storage for the complete operating system that can only be started if you enter a password to boot it. Please note that this only protects against ...

View answer
How to make an image file from scratch
Accepted answer
6 votes

It is possible to create an empty image for a Raspberry Pi. Then you can copy an operating system with a boot and root partition to it and boot. To fill the empty image you can use any usable file ...

View answer
How to automatically rerun python script if error occurs
Accepted answer
6 votes

You can run the script as service using systemd. Just create a Unit file with: rpi ~$ sudo systemctl --force --full edit myscript.service In the empty editor insert these statements, save them and ...

View answer
Raspberry Pi as OpenVPN Access Point
Accepted answer
6 votes

I don't know something about AWS VPC. But because it seems to be only a routing problem I will use openVPN for reference. For routing it should not be make a big difference. I will try to be as ...

View answer
RPI3 Raspbian Stretch regular connection on wlan0 AP on wlan1
Accepted answer
6 votes

Update: I have found that it is better to use wlan0 as interface for the access point and wlan1 as client up-link. But this other way around does not answer the question. So I have made a new question ...

View answer
Cannot connect to PiVPN Server from WAN but can connect through LAN
Accepted answer
6 votes

Info: To have a simple openvpn server installation for reference look at Simple openVPN with static keys. The first idea seeing the picture was that you confused WAN- and LAN-address. But lets look ...

View answer
I want to run a Python 3 script on startup and in an endless loop on my Raspberry Pi
6 votes

Your script is a typical use of a service. Usually a service is started once and then it is running in background until it is stopped by the service manager. The service manager can restart a script ...

View answer
Is there a Raspbian package that installs `setfacl`?
Accepted answer
6 votes

The package you need to install is acl from the default Raspbian repository. I don't know what operating system and/or repositories you are using with installed Ansible but on my default Raspbian ...

View answer
How to open port without setting router in Raspberry Pi 3 B+? Port 25565
Accepted answer
6 votes

A Minecraft server uses port 25565 by default. The Minecraft server itself is a program that runs on a computer. The computer has an ip address, maybe 192.168.10.11, but there are running many ...

View answer
"bin/bash: bad interpreter: No such file or directory" when running shell script
Accepted answer
6 votes

A script is running without its interpreter when it is made executable and contains a shebang at the very first line. Because your script is running I assume that's the case with your script. But the ...

View answer
Service failing to wait for internet connection
Accepted answer
6 votes

network-online.target is a static unit. You can check it with: rpi ~$ systemctl list-unit-files network-online.target UNIT FILE STATE network-online.target static 1 unit files listed. ...

View answer
Raspberry Pi 3 Model B+ Stable Red Light When Powered Up
6 votes

Seems there is no problem at all with your Raspberry Pi. A constant red light, the PWR led, indicates that your raspi is properly powered up. With a bad power supply it would flash below 4,63 V. So ...

View answer
cannot mount the 2nd partition of a raspbian image in ubuntu 17.10.1
Accepted answer
6 votes

There are mainly two reasons for the error message: 1. The partition is not of type ext2, ext3, ext4 2. You don't match the starting sector of the partition You don't need to create a /dev/loop0 ...

View answer
1
2
3 4 5
49