WEBVTT

00:00:01.030 --> 00:00:04.090
Now that we've covered the basics, let's get started with installing Pi‑hole.

00:00:04.090 --> 00:00:07.700
In this section, we'll start out installing the Raspberry Pi OS.

00:00:07.700 --> 00:00:11.210
Then we'll install the Pi‑hole software and then demo all of this.

00:00:12.120 --> 00:00:15.210
We'll start out by downloading the operating system for Raspberry Pi.

00:00:15.690 --> 00:00:18.650
If you bought a Raspberry Pi kit that included a microSD card,

00:00:18.830 --> 00:00:20.700
you probably already have it installed on the card.

00:00:21.470 --> 00:00:22.640
If you didn't, don't worry.

00:00:23.030 --> 00:00:25.850
I'll walk you through installing the OS on a brand‑new SD card.

00:00:27.000 --> 00:00:29.610
The Raspberry Pi project made this really simple as well.

00:00:29.920 --> 00:00:32.509
You can download the Raspberry Pi Imager from their website.

00:00:32.810 --> 00:00:34.740
It works on all major operating systems.

00:00:35.200 --> 00:00:36.170
Once installed,

00:00:36.300 --> 00:00:39.000
insert your microSD card into your computer and follow the

00:00:39.000 --> 00:00:40.740
steps to install it and you're done.

00:00:41.990 --> 00:00:43.980
Here's a short video showing what it looks like.

00:00:43.980 --> 00:00:47.140
You choose the operating system you want to install,

00:00:47.690 --> 00:00:50.800
then the storage to install it on, and click WRITE.

00:00:51.790 --> 00:00:55.560
It will ask you to confirm, and then it will start writing to the card.

00:00:56.060 --> 00:00:59.100
This takes a couple of minutes, so I'll fast forward the video a little bit.

00:00:59.100 --> 00:01:04.030
After writing to the card, a short verification process will run.

00:01:04.030 --> 00:01:05.820
You can skip this step,

00:01:06.020 --> 00:01:09.010
but I recommend you don't just to make sure everything installed correctly,

00:01:09.490 --> 00:01:10.310
and then you're done.

00:01:13.100 --> 00:01:13.710
Next,

00:01:13.830 --> 00:01:16.050
we're going to put our newly written SD card into our

00:01:16.050 --> 00:01:18.440
Raspberry Pi and connect it to a monitor,

00:01:18.450 --> 00:01:21.680
keyboard, mouse, Ethernet cable connected to our router,

00:01:21.680 --> 00:01:23.200
and lastly, a power supply.

00:01:23.200 --> 00:01:27.200
Connect the power last because there is not an on switch on the Raspberry Pi,

00:01:27.200 --> 00:01:28.900
so this will boot the Pi up.

00:01:28.900 --> 00:01:31.920
You'll see something start up and a setup wizard.

00:01:31.920 --> 00:01:34.550
Follow the instructions, and you'll be set.

00:01:34.790 --> 00:01:37.720
We've covered this in other Pluralsight courses, so check out one of those.

00:01:37.720 --> 00:01:40.280
Now that we have the operating system installed,

00:01:40.430 --> 00:01:42.280
we're going to do a couple of housekeeping items.

00:01:42.280 --> 00:01:43.960
Open up a terminal,

00:01:44.000 --> 00:01:46.080
and we are going to enable SSH so that we can

00:01:46.080 --> 00:01:48.230
connect remotely to our Raspberry Pi.

00:01:49.320 --> 00:01:52.340
Do this and type in sudo service ssh start.

00:01:52.340 --> 00:01:55.650
Now that we've done that, we can install Pi‑hole from the command line.

00:01:55.910 --> 00:01:58.260
Type in this curl command and hit Enter.

00:01:58.260 --> 00:01:59.510
Basically,

00:01:59.610 --> 00:02:01.780
this runs a curl command and downloads the latest version

00:02:01.780 --> 00:02:03.490
of Pi‑hole and starts the installer.

00:02:03.880 --> 00:02:05.570
The next part is pretty simple to follow.

00:02:06.040 --> 00:02:08.780
If you're going to be installing Pi‑hole in a Docker container,

00:02:09.090 --> 00:02:13.570
go to the GitHub official Docker Pi‑hole site. Copy

00:02:13.570 --> 00:02:18.850
docker‑compose.yml file and run docker‑compose up ‑d. Then follow the

00:02:18.850 --> 00:02:21.250
Pi‑hole install prompts just like we're going to hear
