Turning the Pi into a Wi-Fi hotspot

Let's say you're out in the field with a couple of fellow agents and you want to quickly put up a network for your computers, maybe even share an Internet connection together; your Pi equipped with a Wi-Fi dongle (or with just a Pi 3 with the built-in Wi-Fi) can easily be made into a makeshift access point.

Before setting up your wireless hotspot, ensure you have set up a static IP on your Pi, as per the previous section, then follow these steps to set up your hotspot:

  1. First install the required software with the following command:
    pi@raspberrypi ~ $ sudo apt-get install hostapd bridge-
        utils
    
  2. Next we need to prevent Raspbian from interfering with the Wi-Fi interface. Open up /etc/network/interfaces for editing: ...

Get Raspberry Pi for Secret Agents - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.