Turn A Raspberry Pi Into An Ad Blocker With A Single Command

Turn A Raspberry Pi Into An Ad Blocker With A Single Command

We’ve shown you how to turn a Raspberry Pi into a handy little ad blocker for all your devices before, but blogger Jacob Salmela simplified the process significantly. Now all you need to do is type one thing into the command line.

You’ll need a fresh install of Raspbian for this to work. Once you get it set up, type this command into the command line:

curl -s "https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/automated%20install/basic-install.sh" | bash

The command pulls an automated bash script from GitHub that installs all the necessary software and sets everything up. From there, just point your various devices to use the Raspberry Pi as a DNS server and you’re good to go. (As ever, we’ll remind you to use ad blockers responsibly and support media you enjoy.)

Instant Raspberry Pi Ad-Blocker [Jacob Salmela]

The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.