Now that we've covered the basics, let's get started with installing Pi‑hole.
In this section, we'll start out installing the Raspberry Pi OS.
Then we'll install the Pi‑hole software and then demo all of this.
We'll start out by downloading the operating system for Raspberry Pi.
If you bought a Raspberry Pi kit that included a microSD card,
you probably already have it installed on the card.
If you didn't, don't worry.
I'll walk you through installing the OS on a brand‑new SD card.
The Raspberry Pi project made this really simple as well.
You can download the Raspberry Pi Imager from their website.
It works on all major operating systems.
Once installed,
insert your microSD card into your computer and follow the
steps to install it and you're done.
Here's a short video showing what it looks like.
You choose the operating system you want to install,
then the storage to install it on, and click WRITE.
It will ask you to confirm, and then it will start writing to the card.
This takes a couple of minutes, so I'll fast forward the video a little bit.
After writing to the card, a short verification process will run.
You can skip this step,
but I recommend you don't just to make sure everything installed correctly,
and then you're done.
Next,
we're going to put our newly written SD card into our
Raspberry Pi and connect it to a monitor,
keyboard, mouse, Ethernet cable connected to our router,
and lastly, a power supply.
Connect the power last because there is not an on switch on the Raspberry Pi,
so this will boot the Pi up.
You'll see something start up and a setup wizard.
Follow the instructions, and you'll be set.
We've covered this in other Pluralsight courses, so check out one of those.
Now that we have the operating system installed,
we're going to do a couple of housekeeping items.
Open up a terminal,
and we are going to enable SSH so that we can
connect remotely to our Raspberry Pi.
Do this and type in sudo service ssh start.
Now that we've done that, we can install Pi‑hole from the command line.
Type in this curl command and hit Enter.
Basically,
this runs a curl command and downloads the latest version
of Pi‑hole and starts the installer.
The next part is pretty simple to follow.
If you're going to be installing Pi‑hole in a Docker container,
go to the GitHub official Docker Pi‑hole site. Copy
docker‑compose.yml file and run docker‑compose up ‑d. Then follow the
Pi‑hole install prompts just like we're going to hear