48 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 ...
Ingo's user avatar
  • 42.1k
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.
Patrick Cook's user avatar
  • 6,365
18 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/...
Ingo's user avatar
  • 42.1k
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 ...
jarondl's 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 ...
Jim's user avatar
  • 392
12 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 ...
Ingo's user avatar
  • 42.1k
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....
Ingo's user avatar
  • 42.1k
10 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 ...
Prevok's user avatar
  • 201
10 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 ...
jake's user avatar
  • 1,347
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 #...
flakeshake's user avatar
  • 6,235
9 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 ...
Ingo's user avatar
  • 42.1k
7 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 -...
AlexOnLinux's user avatar
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-...
F1Linux's user avatar
  • 1,667
7 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 ...
Dmitry Grigoryev's user avatar
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.
kwasmich's user avatar
  • 2,702
6 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/...
Aurora0001's user avatar
  • 6,308
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 -...
ki9's user avatar
  • 295
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 ...
Bruno Bronosky's user avatar
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 ...
goldilocks's user avatar
  • 58.9k
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) ...
Hydraxan14's user avatar
  • 1,836
5 votes

How to avoid fsck at boot timing out

Like many other activities, booting is now controlled by systemd processes. I suspect that there is a way to give fsck additional time to complete, but I don't know enough about that to advise. ...
Seamus's user avatar
  • 22k
5 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 ...
jake's user avatar
  • 1,347
5 votes

Allow non-root user to set system time

I suggest you allow the command to be issued with sudo. This would remind the user that they are using a privileged command. sudo visudo then add the following line to the end of the file ...
joan's user avatar
  • 71.1k
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 ...
Ingo's user avatar
  • 42.1k
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.
Mark Stosberg's user avatar
4 votes

Speed up Raspbian boot

Lets approach this problem another way : systemd allows starting units in parallel. You actually don't care when every unit is finished. What you care about is when your unit starts , and how much ...
flakeshake's user avatar
  • 6,235
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 ...
Pierre F's 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 ...
Ingo's user avatar
  • 42.1k
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 ...
tobyd's user avatar
  • 988

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