Hands-On Guide: Connecting a Raspberry Pi Running Node.js to AWS IoT Core

In this hands-on guide, we will install Node.js on a Raspberry Pi 3 Model B+ and then connect our device to the AWS IoT Core service. This service connects to the Amazon Web Services (AWS) platform by using the MQTT publish-subscribe-based messaging protocol and lets your device communicate with other services on the platform.

Continue reading “Hands-On Guide: Connecting a Raspberry Pi Running Node.js to AWS IoT Core”

Creating a Script to Update Multiple Raspberry Pi Devices

Out of habit, whenever I turn on my laptop, I open five instances of PuTTY and connect to each of my Raspberry Pi devices. Then, I check for updates on each by running sudo apt-get update and sudo apt-get dist-upgrade. Over the Golden Week holiday, I thought, “Why don’t I create a script that runs the update commands across all five devices?” Continue reading “Creating a Script to Update Multiple Raspberry Pi Devices”

Implementing HTTPS Security Policies on a Web Server

This is a follow-up to Securing a Server by Installing a TLS/SSL Certificate Obtained via Let’s Encrypt.

After obtaining a TLS/SSL certificate for this website, the next step was to apply specific policies and measures to further protect it from malicious activity. I used the website-scanning tool Observatory by Mozilla to see where I could improve security on my website. Continue reading “Implementing HTTPS Security Policies on a Web Server”

Understanding Blockchain-Based, Decentralized Cloud Storage

Blockchain, an increasingly popular technology that can be used in a range of industries, is essentially a decentralized peer-to-peer system that connects to create complete sets of data. Nodes within a blockchain reside on servers that run on various operating systems and computers of varying levels of power. Aside from verifying transactions for cryptocurrencies such as Bitcoin and Ethereum, blockchain technology can be used as a decentralized cloud storage solution. Continue reading “Understanding Blockchain-Based, Decentralized Cloud Storage”

Installing a TLS/SSL Certificate Obtained via Let’s Encrypt

Server administrators need to take appropriate measures to secure the contents stored on a server and to protect information being transmitted to it. Currently, the common way to secure the connection between a client and a server is to install a TLS/SSL certificate on the server. Continue reading “Installing a TLS/SSL Certificate Obtained via Let’s Encrypt”

Automatically Backing Up a Raspberry Pi to Another Raspberry Pi

Update (July 8, 2018): Because of ongoing issues with Déjà Dup not automatically backing up the compressed .zip files, I no longer recommend using it as a backup solution.

After installing the LEMP stack to run WordPress, I searched for a solution to back up the contents of my server. There are many ways to back up a Raspberry Pi, so I needed to find the most practical method and not just the one I felt was the safest option. Continue reading “Automatically Backing Up a Raspberry Pi to Another Raspberry Pi”

Choosing Nginx over Apache

In an earlier post, I noted that I am running my WordPress installations on the LEMP (Linux, Nginx, MariaDB/MySQL, PHP) stack. I chose Nginx as the web server to run not only WordPress but also simple websites and apps over more commonly used Apache because Nginx is known as a lightweight alternative that can handle heavy traffic. Continue reading “Choosing Nginx over Apache”