Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlang81 committed Jun 23, 2024
1 parent a2fca95 commit 9e1fcd8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions _posts/2024-06-23-pi-hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ There are plenty of guides available for setting up a Raspberry Pi with Pi-hole,

→ The guide suggests a [Zero 2 W](https://www.raspberrypi.com/products/raspberry-pi-zero-2-w/) model, which works well for this project. However, you will likely not be able to `$ sudo apt full-upgrade` on this model without increasing the swap file size. The Zero 2 W only has 512MB of RAM, so the full upgrade will likely need to utilize swap to complete, and the default swap reservation is only 100MB. [This guide](https://pimylifeup.com/raspberry-pi-swap-file/) shows how to increase the swap file size:

1) Turn off swap: `sudo dphys-swapfile swapoff`
2) Edit the swap config file: `sudo nano /etc/dphys-swapfile`
3) Find `CONF_SWAPSIZE=100` and replace with e.g. `CONF_SWAPSIZE=2048` to set 2 GB of swap
4) Exit nano, with `CTRL` + `X`, `Y`, `ENTER`
5) Setup swap: `sudo dphys-swapfile setup`
6) Turn on swap: `sudo dphys-swapfile swapon`
7) Reboot `sudo reboot`
1) Turn off swap: `sudo dphys-swapfile swapoff`
2) Edit the swap config file: `sudo nano /etc/dphys-swapfile`
3) Find `CONF_SWAPSIZE=100` and replace with e.g. `CONF_SWAPSIZE=2048` to set 2 GB of swap
4) Exit nano, with `CTRL` + `X`, `Y`, `ENTER`
5) Setup swap: `sudo dphys-swapfile setup`
6) Turn on swap: `sudo dphys-swapfile swapon`
7) Reboot `sudo reboot`

The rest of the setup should be straightforward. You will need to be able to allocate a static IP for the Pi, but even ISP provided routers like the CR1000A Fios model that I have should allow this. If you have this router, the DNS lookup step is buried in the advanced settings. Look in Advanced -> Network Connections -> Broadband Connection (Ethernet) and click edit. Change the IPv4 DNS setting under WAN IP address to "Use the following IPv4 DNS Addresses" to the static IP for the Raspberry Pi for both addresses, or leave the second one blank[^1].

Expand Down

0 comments on commit 9e1fcd8

Please sign in to comment.