Some links in this post may be affiliate links. We may get paid if you buy something or take an action after clicking one of these, but without addictional costs for you compared to direct buying.
raspberry-pi-access-point-dietpi-featured-image

Using a Raspberry Pi as Access Point with DietPi

5
(4)

Last Updated on 23rd January 2025 by peppe8o

In this tutorial, I will show you a very easy way to use your Raspberry PI as an Access Point with DietPi.

DietPi is an alternative Raspberry PI OS maintained with a very small image size. More info about this OS can be found in my Install DietPi on Raspberry PI for Ultralight Alternative OS guide.

With this project, you will be able to transform a Raspberry Pi into an Access Point and add WiFi connectivity to old routers. There are several ways to accomplish this need, but DietPi has a very user-friendly procedure, so I decided to write it down to make the procedure available for beginners.

The idea is to realize what synthesized in the following picture:

RPI Access Point NTW schema

Our router will take internet connectivity from its connection, giving it to all ethernet clients. The Raspberry Pi, on the other side, will share this connectivity in its WiFi Lan created in the following procedure. So, the router will be connected with its WAN port to internet, while Raspberry Pi will be connected to one of router’s Ethernet ports.

Please remember that you will need a Raspberry PI computer model with ethernet ports.

What We Need

As usual, I suggest adding from now to your favourite e-commerce shopping cart all the needed hardware, so that at the end you will be able to evaluate overall costs and decide if to continue with the project or remove them from the shopping cart. So, hardware will be only:

raspberry-pi-5-model-b-board

Step-by-Step Guide

OS Installation

We need to start with the Operating System installation in our Raspberry PI. For this task please refer to my install DietPi on Raspberry PI tutorial, which already details all the required steps. Please note that you must skip step 2 (Wifi settings) because, in this case, our Raspberry PI will become an ethernet client and use the WiFi to give access to your home’s devices.

Access Point Software Setup

Once the Operating System installation is finished, we can go to the WiFi software setup. Enter the following command:

dietpi-software

Please select the “Browse Software” option as in the following picture) and press ENTER:

dietpi-software-browse-link

Scroll down the software list until you find the WiFi Hotspot option (as shown in the following picture). Select it with the SPACE bar from your keyboard then press ENTER:

dietpi-software-browse-wifi-hotspot-selected

The following screen will confirm that your system meets the requirements. Press ENTER again:

dietpi-software-browse-wifi-hotspot-confirm

The page will redirect you to the dietpi-software home. Go down to the “Install” option and press ENTER:

dietpi-software-browse-wifi-hotspot-install

The DietPi will automatically search for the required packages and it will ask you for a final confirmation before applying the installation changes. Move the selector to “Ok” and press enter:

dietpi-software-browse-wifi-hotspot-install-confirm

DietPi will start the installation and configuration process, that will end in a few minutes.

After you get back the prompt, you should be able to see the WiFi Hotspot in your home with SSID “DietPi-HotSpot” and password “dietpihotspot”.

Change the SSID and Password for Raspberry PI Access Point with DietPI

At this point, we can fine-tune the Access Point configuration, by customizing the SSID and password.

From the DietPi terminal, please run the dietpi-config tool by running the following command:

dietpi-config

From the home page, please select the “Network Options: Adapters” option and press enter:

dietpi-config-home-network-adapters-link

From the Adapters section, please select the WiFi (the line including the “WiFi Hotspot Mode” label) and press ENTER:

dietpi-config-network-adapters-wifi

On the resulting page, you can edit some important configurations such as the SSID, Key (WiFi password), and the Country Code according to your Region:

dietpi-config-wifi-settings

After customizing these settings, please select the “Apply” option and press ENTER:

dietpi-config-wifi-settings-apply

After these operations, you can exit from the dietpi-config tool by using the “Back” buttons.

Generating a QR Code for Automatic WiFi Configuration

As tip, I will show you how to quickly create a QR code that you can use with any device to automatically configure your WiFi clients.

To do this task, you need to install the qrencode tool:

apt install qrencode -y

Now, you can generate the QR code image with your own WiFi settings by using the following terminal command. Please remember to change the SSID and password with yours:

qrencode -o mywifi.png "WIFI:T:WPA;S:p8o-DietPi-HS;P:mypassword;;"

Now you will have a “mywifi.png” image file with the code, similar to the following:

mywifi-qrcode-example

You can download the file from DietPi in different ways, for example by installing the “OpenSSH” server in DietPi and reaching it from a remote PC with free SFTP clients like Filezilla.

What’s Next

Interested in what you can do with your Raspberry PI? Take a look at my Raspberry PI tutorials and subscribe to my newsletter!

Enjoy!

How useful was this post?

Click on a star to rate it anonymously!

Average rating 5 / 5. Vote count: 4

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

7 thoughts on “Using a Raspberry Pi as Access Point with DietPi”

  1. Hi,
    This sets an AP full mode, or an AP in bridge mode? I ask since i didn’t see you dealing with DHCP servers, DNSMasq, and all the other details that usually are delt with a full AP installation in Linux.

    1. Hi Dan. Honestly I don’t remember if DietPi Wifi Hotspot creates a new DHCP range valid inside the its new Wireless network. If so, it automatically installs all needed networking tools. I’m going to check next week because this one I’m in holidays far from home 🙂

  2. Hi, thanks for the tutorial! I have to ask, does this make a private network broadcast from the Pi or is it like a bridged/extended AP? For instance would it make a secure AP in a public Wifi like OpenWRT?

    1. Hi Mohamed,
      DietPI creates a new network for your devices and routes it from its WAN addess (your router wired interface) adding NAT service. You can add services to make your PI network secure and expand your services by simply installing them.

  3. Hi, is there a way to check if my wifi usb dongle is connected and working because I followed all instructions but I cant see the new network !!! Thanks a lot!

Leave a Comment

Your email address will not be published. Required fields are marked *

Subscribe my newsletter:
×