

Now we will do need the two referenced configuration files, of course.

This is much nicer than doing stuff such as starting wpa_supplicant yourself.

This takes advantage of the hostapd and wpa-conf directives provided through hostapd’s /etc/network/if-pre-up.d/hostapd and wpa_supplicant’s /etc/network/if-pre-up.d/wpasupplicant and /etc/network/if-up.d/wpasupplicant helpers. Now for the actual IP setup in /etc/network/interfaces: So remember this rule if you have to debug things and try deleting it if it causes trouble. This rule is generated by /lib/udev/write_net_rules and while I don’t know how to keep it from doing so, it doesn’t really hurt unless you try to ifup interfaces yourself, then you might get a client interface named as sta1 and things won’t work. Here’s the relevant iw list output for the iwlwifi driver and the Intel Wireless 7265 adapter built into my Notebook (PCI vendor ID 8086, PCI product ID 095a): The following examples were not conducted on the Pi itself but on my Notebook with openSUSE Tumbleweed and Linux kernel 4.4. Whether a certain Wifi hardware and driver combo supports virtual interfaces and in which configurations can be found out by looking at iw list output. Running both an access point and a client configuration on the same network adapter requires support for so-called virtual interfaces. Turns out that there are two obstacles to achieve this goal: This is rather easy to do with two USB wifi adapters - but with the Pi Zero we’ll have to do with a single one! Thus I want the Pi to be an access point AND maintain a Wifi client connection at the same time. Instead I want to login onto the Pi via Wifi while still having Internet connectivity even when not at home. Circuitbeard’s one or Richard Hawthorn’s one, but actually I don’t want to carry around a USB keyboard, especially if I have no HDMI-capable display around at all times. Now there are solutions to stack a USB hub onto the Pi Zero, eg.

“A USB hub” may sound like a natural choice but if you’re like me, you’ll want to carry the gadget around a bit and minimize the number of accessories. In this scenario you’ll probably think twice about what you connect to that port. This comes at a cost, however, with only one micro USB port available for peripherals of any kind. The Raspberry Pi Zero captivates with its small dimensions.
