Hot answers tagged

46 votes
Accepted

Setting up a Raspberry Pi as an access point - the easy way

━━━ Setting up an access point ━━━ We are talking about an access point together with an ethernet port eth0. If you want an access point together with a wlan0 client connection to another wifi network ...
user avatar
  • 39.6k
22 votes

Auto login in Jessie. How?

Enter the command sudo raspi-config. Scroll down to Boot Options and select Console Autologin. Then exit the configuration menu and reboot.
user avatar
  • 6,185
15 votes
Accepted

How to correctly restart wpa_supplicant debug with networkd-systemd?

First to shine a light on this mish/mash of different commands. On Raspbian there are three concurrent network environments installed: old style debian networking with ifupdown is configured in etc/...
user avatar
  • 39.6k
14 votes
Accepted

How can I delay the startup of systemd services until the datetime is set (no RTC on the Raspberry Pi)

The actual feature was added to systemd in https://github.com/systemd/systemd/pull/8494 which is included in version 239 See docs in [1]: systemd-time-wait-sync is a system service that delays the ...
user avatar
  • 256
13 votes
Accepted

Force IPv4 address

Raspbian Jessie no longer has a file called /etc/sysctl.d -- it's now a folder of the same name. According to the read-me file in the same folder, README.sysctl, it basically says that any .conf file ...
user avatar
  • 382
11 votes

How can I delay the startup of systemd services until the datetime is set (no RTC on the Raspberry Pi)

UPDATE: Please note the answer from @jarondl. There is a new systemd-time-wait-sync service that we can use since Raspbian Buster. To syncronize with the time service there is a special time-sync....
user avatar
  • 39.6k
10 votes
Accepted

How to setup an unprotected Ad Hoc (IBSS) Network and if possible with WPA encryption?

There are mainly three setups to have a peer to peer network: unprotected ad-hoc interface by configuring the WiFi device unprotected ad-hoc interface using wpa_supplicant (Recommended) Only with ...
user avatar
  • 39.6k
9 votes
Accepted

How to set custom NTP servers in recent raspbian (Stretch) systems?

Edit /etc/systemd/timesyncd.conf , especially the second line [Time] NTP=your.servername.goes.here FallbackNTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.org #...
user avatar
  • 6,015
9 votes
Accepted

Automatically Create Hotspot if no Network is Available

The following can also easily be installed from a github repository that I created here . First we need to change over completely to systemd (which might be the future anyway), as Ingo has explained ...
user avatar
  • 1,079
7 votes

disable dhcpcd.service for static ip?

Although this question is a year old, it popped up in my Google search results, after I acquired a Raspberry Pi 4. I don't believe the other answers addressed the question, even though their results ...
user avatar
  • 171
7 votes

Setting up a Raspberry Pi as an access point - the easy way

An even EASIER way of setting up a Raspberry Pi as an AP is to use the pi-ap Github repo which automates configuration of a Pi 3B+/4 into an AP. Connect the Pi to a free port in your Internet-...
user avatar
  • 1,559
6 votes
Accepted

Does Stretch Lite support systemd?

Yes, the Lite version of Raspbain 9 "Stretch" uses systemd just like 8 "Jessie". Also I highly recomend using systemd over other options.
user avatar
  • 2,622
6 votes

Raspberry Pi4 systemctl suspend or systemctl hibernated not supported?

Raspbian kernel is built without CONFIG_HIBERNATION which is needed to provide the necessary interfaces for systemctl. You will have to build a custom kernel to enable those interfaces. You will also ...
user avatar
6 votes

Wireguard "Unknown device type" "Protocol not supported"

According to a comment on r/Wireguard, this error is caused by having the wrong kernel headers: dkms packages (wireguard-dkms this time) need kernel headers for current kernel you have loaded (uname -...
user avatar
  • 278
5 votes
Accepted

Raspbian Jessie: What do "service --status-all" and "systemctl list-units --type=service" show?

These are for SysV compatibility, which traditionally has been the most widespread init system used on GNU/Linux since its inception. I believe SysV scripts also have a degree of compatibility with ...
user avatar
  • 55.8k
5 votes
Accepted

Essential parts for booting the Raspberry Pi 2

What do I need to sucessfully boot my Raspberry Pi 2 until the init system is loaded? I think I need only the files on the boot partition, because /sbin/init is a symlink to e.g. systemd. /sbin/init ...
user avatar
  • 55.8k
5 votes

How to start OpenVPN at boot on Raspbian Jessie

TL;DR: In /etc/openvpn/ your configs must end in .conf and not .ovpn! Environment I'm about to make some bold claims that are specific to... pi@raspberrypi:~ $ uname -a && lsb_release -a Linux ...
user avatar
5 votes

Force IPv4 address

sudo nano /etc/sysctl.conf append the following lines to turn off ipv6: net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 run sudo sysctl -...
user avatar
5 votes

Upgrading systemd version on raspberry pi 3

Yes, It Is Possible While the current version of systemd in Raspbian Stable (Jessie) is 215-17+deb8u7, there are ways to get newer versions. Testing Repository (Stretch), Unstable Repository (Sid) ...
user avatar
  • 1,786
5 votes
Accepted

Clarification about the boot process (systemd / init)

It's still systemd that handles the old-style init scripts, using systemd-sysv-generator: systemd-sysv-generator is a generator that creates wrapper .service units for SysV init[1] scripts in /etc/...
user avatar
  • 6,178
5 votes
Accepted

How to avoid fsck at boot timing out

If you do not want to take the risk of corrupting your SD Card by disabling fsck on startup you can use your first suggestion: "lengthening the timeout" on starting services. With systemd you can ...
user avatar
  • 39.6k
5 votes

Schedule power off with systemd

First of all: you are running Raspbian Stretch but tagged the question with pi-4. This is not possible. A Raspberry Pi 4B can only run Raspbian Buster. Your timer Unit looks good and should do. But ...
user avatar
  • 39.6k
4 votes
Accepted

Access denied when starting systemd service

Init services run as root. Do not include sudo in service files run by init, regardless of whether it is SysV or systemd. I would try [but please see comments, this is a bit personal preference]: [...
user avatar
  • 55.8k
4 votes
Accepted

sudo: systemctl: command not found

It sounds like you must be using Debian Wheezy, which is not based on systemd. If possible, upgrading the OS to Debian Jessie is recommended, which is based on systemd.
user avatar
4 votes
Accepted

How do I trigger periodic remote shooting on a DSLR using a Raspberry Pi e.g. for time lapse (shutter timer), group pictures or self portraits

Use gphoto2 to trigger continuous periodic capture This solution uses gphoto2 to remote control the DSLR and converts a Raspberry Pi to an intervalometer. It sets up the continuous capture as a ...
user avatar
  • 313
4 votes
Accepted

Why won't my systemd execute?

I don't know what you want to achieve but as you can read in man systemd: systemd is a system and service manager for Linux operating systems. When run as first process on boot (as PID 1), it acts ...
user avatar
  • 39.6k
4 votes
Accepted

How to fix the systemd file permissions?

You'll need to add a working directory to your unit file as the Pi user won't have write access to put cmdfile.txt into the root of the volume (or whereever systemd roots itself). in your Unit file ...
user avatar
  • 978
4 votes
Accepted

Make ifplugd available with systemd

ifplugd is running as daemon so we have to use a systemd service to manage it. I will only use the daemon program /usr/sbin/ifplugd without the management scripts from Debian. Tested with Raspberry Pi ...
user avatar
  • 39.6k
4 votes
Accepted

Raspbian Buster - Keep network interface down on boot

There a different ways you could achieve what you want. Method 1 – use systemd-networkd If you want to use systemd just follow step 1 and step 3 of this tutorial. Just omit this command systemctl ...
user avatar
  • 1,079

Only top scored, non community-wiki answers of a minimum length are eligible