Building The Raspberry Pi: Securing the Raspberry Pi

Raspberry PiThis post is part of the series on building my new Raspberry Pi; this series is a sub-series of the Adventures with a Raspberry Pi.

The official Raspberry Pi site has details on how to secure the Raspberry Pi. The page covers the following:

  1. Change your default password
  2. Change your username
  3. Make sudo require a password
  4. Ensure you have the latest security fixes
  5. Improve SSH security
  6. Use key-based authentication
  7. Install a firewall
  8. Installing fail2ban

I’d recommend taking a read through the page and enacting at least some of the above.

Adventures With A Raspberry Pi

Adventures With A Raspberry Pi
Building The Raspberry Pi: CanaKit Raspberry Pi 3 B+ Complete Starter Kit
Building The Raspberry Pi: Raspberry Pi Build
Building The Raspberry Pi: Install Operating System
Building The Raspberry Pi: First Run
Building The Raspberry Pi: System Configuration Tool
Building The Raspberry Pi: Enable SSH For Remote Access
Building The Raspberry Pi: Securing the Raspberry Pi
Building The Raspberry Pi: Conclusion
Installing Pi-hole On A Raspberry Pi: What is Pi-hole?
Installing Pi-hole On A Raspberry Pi: Install Pi-hole
Installing Pi-hole On A Raspberry Pi: Change Pi-hole Admin Password
Installing Pi-hole On A Raspberry Pi: Configure Network to use Pi-hole
Using Pi-hole On A Raspberry Pi: Blocked Adverts
Using Pi-hole On A Raspberry Pi: Admin Interface
Using Pi-hole On A Raspberry Pi: Disabling Pi-hole
Using Pi-hole On A Raspberry Pi: Whitelisting a Site
Using Pi-hole On A Raspberry Pi: Update Blocklists
Using Pi-hole On A Raspberry Pi: Maintain Blocklists
Using Pi-hole On A Raspberry Pi: Change DNS Servers
Using Pi-hole On A Raspberry Pi: Connecting With SSH
Using Pi-hole On A Raspberry Pi: Updating the Pi-hole
Using Pi-hole On A Raspberry Pi: Conclusion
What Else Can I Use It For?
Prepare New SD Card For Raspberry Pi OS: Download SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Install SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Format SD Card
Prepare New SD Card For Raspberry Pi OS: Download NOOBS
Prepare New SD Card For Raspberry Pi OS: Copy Files To The SD Card
Prepare New SD Card For Raspberry Pi OS: Conclusion
Installing Pi-hole On A Raspberry Pi: Changing the IP Address
Raspberry PI Update Fails
Check Version of OS on Raspberry Pi
How to Update the OS on a Raspberry Pi

Building The Raspberry Pi: Enable SSH For Remote Access

Raspberry PiThis post is part of the series on building my new Raspberry Pi; this series is a sub-series of the Adventures with a Raspberry Pi.

By default the Raspbian Lite ships with SSH disabled; this means the PI can only be accessed with a monitor and keyboard connected.

However, enabling SSH is straightforward. Log into your Raspberry PI and type the following command to launch the Raspberry PI Configuration:

sudo raspi-config

Select Interfacing Options, scroll down and select SSH. Choose Yes to enable SSH and then click OK.

Choose Finish to close the configuration tool. The Raspberry Pi will now be available for SSH access.

Adventures With A Raspberry Pi

Adventures With A Raspberry Pi
Building The Raspberry Pi: CanaKit Raspberry Pi 3 B+ Complete Starter Kit
Building The Raspberry Pi: Raspberry Pi Build
Building The Raspberry Pi: Install Operating System
Building The Raspberry Pi: First Run
Building The Raspberry Pi: System Configuration Tool
Building The Raspberry Pi: Enable SSH For Remote Access
Building The Raspberry Pi: Securing the Raspberry Pi
Building The Raspberry Pi: Conclusion
Installing Pi-hole On A Raspberry Pi: What is Pi-hole?
Installing Pi-hole On A Raspberry Pi: Install Pi-hole
Installing Pi-hole On A Raspberry Pi: Change Pi-hole Admin Password
Installing Pi-hole On A Raspberry Pi: Configure Network to use Pi-hole
Using Pi-hole On A Raspberry Pi: Blocked Adverts
Using Pi-hole On A Raspberry Pi: Admin Interface
Using Pi-hole On A Raspberry Pi: Disabling Pi-hole
Using Pi-hole On A Raspberry Pi: Whitelisting a Site
Using Pi-hole On A Raspberry Pi: Update Blocklists
Using Pi-hole On A Raspberry Pi: Maintain Blocklists
Using Pi-hole On A Raspberry Pi: Change DNS Servers
Using Pi-hole On A Raspberry Pi: Connecting With SSH
Using Pi-hole On A Raspberry Pi: Updating the Pi-hole
Using Pi-hole On A Raspberry Pi: Conclusion
What Else Can I Use It For?
Prepare New SD Card For Raspberry Pi OS: Download SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Install SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Format SD Card
Prepare New SD Card For Raspberry Pi OS: Download NOOBS
Prepare New SD Card For Raspberry Pi OS: Copy Files To The SD Card
Prepare New SD Card For Raspberry Pi OS: Conclusion
Installing Pi-hole On A Raspberry Pi: Changing the IP Address
Raspberry PI Update Fails
Check Version of OS on Raspberry Pi
How to Update the OS on a Raspberry Pi

Building The Raspberry Pi: System Configuration Tool

Raspberry PiThis post is part of the series on building my new Raspberry Pi; this series is a sub-series of the Adventures with a Raspberry Pi.

The first time you start the Raspberry Pi, it will automatically load the System Configuration Tool; this is where you can change a number of settings like the password, language or network settings.

I’m going to run throuhg the settings I changed, starting with option 1; change the user password:

Raspberry Pi Software Configuration Tool menu with Change User Password selected

Continue reading “Building The Raspberry Pi: System Configuration Tool”

Building The Raspberry Pi: First Run

Raspberry PiThis post is part of the series on building my new Raspberry Pi; this series is a sub-series of the Adventures with a Raspberry Pi.

When you start the Raspberry Pi for the first time, the new Raspbian Lite OS will start and progress to the logon prompt.

The default logon credentials for the Raspbian OSes are:

  • Username = pi
  • Password = raspberry

After logging in I would very strongly recommend that the password be reset which you can do in the System Configuration Tool. I’ll cover this tool in the next post.

Adventures With A Raspberry Pi

Adventures With A Raspberry Pi
Building The Raspberry Pi: CanaKit Raspberry Pi 3 B+ Complete Starter Kit
Building The Raspberry Pi: Raspberry Pi Build
Building The Raspberry Pi: Install Operating System
Building The Raspberry Pi: First Run
Building The Raspberry Pi: System Configuration Tool
Building The Raspberry Pi: Enable SSH For Remote Access
Building The Raspberry Pi: Securing the Raspberry Pi
Building The Raspberry Pi: Conclusion
Installing Pi-hole On A Raspberry Pi: What is Pi-hole?
Installing Pi-hole On A Raspberry Pi: Install Pi-hole
Installing Pi-hole On A Raspberry Pi: Change Pi-hole Admin Password
Installing Pi-hole On A Raspberry Pi: Configure Network to use Pi-hole
Using Pi-hole On A Raspberry Pi: Blocked Adverts
Using Pi-hole On A Raspberry Pi: Admin Interface
Using Pi-hole On A Raspberry Pi: Disabling Pi-hole
Using Pi-hole On A Raspberry Pi: Whitelisting a Site
Using Pi-hole On A Raspberry Pi: Update Blocklists
Using Pi-hole On A Raspberry Pi: Maintain Blocklists
Using Pi-hole On A Raspberry Pi: Change DNS Servers
Using Pi-hole On A Raspberry Pi: Connecting With SSH
Using Pi-hole On A Raspberry Pi: Updating the Pi-hole
Using Pi-hole On A Raspberry Pi: Conclusion
What Else Can I Use It For?
Prepare New SD Card For Raspberry Pi OS: Download SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Install SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Format SD Card
Prepare New SD Card For Raspberry Pi OS: Download NOOBS
Prepare New SD Card For Raspberry Pi OS: Copy Files To The SD Card
Prepare New SD Card For Raspberry Pi OS: Conclusion
Installing Pi-hole On A Raspberry Pi: Changing the IP Address
Raspberry PI Update Fails
Check Version of OS on Raspberry Pi
How to Update the OS on a Raspberry Pi

Building The Raspberry Pi: Install Operating System

Raspberry PiThis post is part of the series on building my new Raspberry Pi; this series is a sub-series of the Adventures with a Raspberry Pi.

With the Raspberry Pi built it is time to install the operating system.

The SD Card which arrives in the starter kit from Canakit is already loaded with NOOBS, which is an easy operating system installer which contains Raspbian and LibreELEC; it also provides a selection of alternative operating systems which are then downloaded from the internet and installed.

As I will be using the Raspberry Pi as a Pi-Hole, I will be using Raspbian Lite.

Start the Raspberry Pi and wait for NOOBS to start. Scroll down and mark the box next to Raspbian Lite and then click the Install button on the toolbar:

NOOBS with Raspbian Lite selected

Continue reading “Building The Raspberry Pi: Install Operating System”

Building The Raspberry Pi: Raspberry Pi Build

Raspberry PiThis post is part of the series on building my new Raspberry Pi; this series is a sub-series of the Adventures with a Raspberry Pi.

The build of the Raspberry PI kit is easily the easiest computer build I’ve done.

The starter kit from Canakit is contained within a small box (the separate SD Card in the photo was bought in addition to the one which arrived in the box):

Canakit Raspberry Pi box

Continue reading “Building The Raspberry Pi: Raspberry Pi Build”

Building The Raspberry Pi: CanaKit Raspberry Pi 3 B+ Complete Starter Kit

Raspberry PiThis post is part of the series on building my new Raspberry Pi; this series is a sub-series of the Adventures with a Raspberry Pi.

I have no prior experience dealing with the Raspberry PI, so I went the easy route and bought a starter kit from Amazon:

CanaKit Raspberry Pi 3 B+ (B Plus) Complete Starter Kit - UK Edition (32 GB Samsung EVO+)

This starter kit includes everything necessary for a working Raspberry PI and includes the most recent version of the Raspberry Pi itself. It includes the following:

  • Raspberry Pi 3 Model B+ (B Plus) with 1.4GHz 64-bit quad-core ARMv8 CPU (BCM2837B0)
  • 1 GB LPDDR2 SDRAM
  • On-board WiFi and Bluetooth Connectivity
  • 32 GB Samsung EVO+ Micro SD Card (Class 10) pre-loaded with NOOBS
  • USB MicroSD Card Reader
  • CanaKit 2.5A Micro USB Power Supply (UK) with Noise Filter
  • Premium Raspberry Pi 3 Case
  • High Quality HDMI Cable with CEC support (6-foot cable)
  • Set of 2 Aluminum Heat Sinks
  • GPIO Quick Reference Card
  • CanaKit Full Colour Quick-Start Guide

in the next post, I’ll be assembling the Raspberry Pi.

Adventures With A Raspberry Pi

Adventures With A Raspberry Pi
Building The Raspberry Pi: CanaKit Raspberry Pi 3 B+ Complete Starter Kit
Building The Raspberry Pi: Raspberry Pi Build
Building The Raspberry Pi: Install Operating System
Building The Raspberry Pi: First Run
Building The Raspberry Pi: System Configuration Tool
Building The Raspberry Pi: Enable SSH For Remote Access
Building The Raspberry Pi: Securing the Raspberry Pi
Building The Raspberry Pi: Conclusion
Installing Pi-hole On A Raspberry Pi: What is Pi-hole?
Installing Pi-hole On A Raspberry Pi: Install Pi-hole
Installing Pi-hole On A Raspberry Pi: Change Pi-hole Admin Password
Installing Pi-hole On A Raspberry Pi: Configure Network to use Pi-hole
Using Pi-hole On A Raspberry Pi: Blocked Adverts
Using Pi-hole On A Raspberry Pi: Admin Interface
Using Pi-hole On A Raspberry Pi: Disabling Pi-hole
Using Pi-hole On A Raspberry Pi: Whitelisting a Site
Using Pi-hole On A Raspberry Pi: Update Blocklists
Using Pi-hole On A Raspberry Pi: Maintain Blocklists
Using Pi-hole On A Raspberry Pi: Change DNS Servers
Using Pi-hole On A Raspberry Pi: Connecting With SSH
Using Pi-hole On A Raspberry Pi: Updating the Pi-hole
Using Pi-hole On A Raspberry Pi: Conclusion
What Else Can I Use It For?
Prepare New SD Card For Raspberry Pi OS: Download SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Install SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Format SD Card
Prepare New SD Card For Raspberry Pi OS: Download NOOBS
Prepare New SD Card For Raspberry Pi OS: Copy Files To The SD Card
Prepare New SD Card For Raspberry Pi OS: Conclusion
Installing Pi-hole On A Raspberry Pi: Changing the IP Address
Raspberry PI Update Fails
Check Version of OS on Raspberry Pi
How to Update the OS on a Raspberry Pi

Building The Raspberry Pi: Series Index

Raspberry PiThis series is a sub-series of the Adventures with a Raspberry Pi, which I am going to take a look at the building of my new Raspberry Pi.

If you’re reading this post on azurecurve, this index will automatically update, otherwise you need to check back to the original post.

Continue reading “Building The Raspberry Pi: Series Index”

Adventures With A Raspberry Pi: Series Index

Raspberry PiI’ve looked at the Raspberry Pi a number of times over the years, but never bought one as I both lacked a convincing use case and have virtually zero experience with non-Windows operating systems. However, more recently, I have reached my limit with how intrusive online adverts have become and have finally bought a Raspberry Pi and installed Pi-Hole.

I have a number of posts about my adventures with a Raspberry PI in which I am going to be looking at how to assemble and install the Raspberry PI as well as my experiences with Pi-Hole and probably some other software.

If you’re reading this post on azurecurve, this index will automatically update, otherwise you need to check back to the original post.

Continue reading “Adventures With A Raspberry Pi: Series Index”