Tag archive for: Raspbian

How to host a static website on your Raspberry Pi with Nginx running on Raspbian Buster Lite

After you had understood HTML, CSS and JavaScript from The Web Developer Bootcamp, you can start to host a static website on an actual web server.

If you had been the kind of fan who buy newly-launched Raspberry Pis, then you may find some lying around the house collecting dust.

In this situation, why not use one of your Raspberry Pi to host something that you had just learnt?

Given that, let’s look at how you can host a static website on your Raspberry Pi with Nginx running on Raspbian Buster Lite.

Why buy the Raspberry Pi Zero W?

When you have seen the Raspberry Pi 4 with 4GB ram, you may wonder why should we even be bothered with the earlier versions.

If you have been following Seeed Studio, you may have heard that they had included Raspberry Pi Zero W in their product catalogue.

I welcome this move from Seeed Studio with open arms.

Since I live in Singapore, I will be able to shave hefty shipping costs getting the Pi Zero W from Seeed Studio instead of vendors from the west. If you are staying in countries that are nearer to Guangzhou, then the real cost of your Pi Zero W will be much closer to the 10 USD price tag.

But why buy the Raspberry Pi Zero W?

In case you are thinking of whether to trade 10-ish bucks for one, here are some reasons why you should have a look at the Raspberry Pi Zero W for your next Raspberry Pi project.

How to host a WordPress website on a Raspberry Pi with Raspbian Buster Lite and Nginx

If you are thinking of starting a blog about computer technology, then you can consider hosting a WordPress website on your Raspberry Pi.

Since Raspberry Pi is a capable machine that does not take up too much space and power, it is a good as a web server.

In addition, if you have an Internet subscription that does not block port 80 and 443, hosting a WordPress at home can be cost effective.

Given these points, let’s look at how we can host a WordPress website on a Raspberry Pi with Raspbian Buster and Nginx.

Installing Certbot on Raspbian Buster for obtaining Let’s Encrypt’s browser-trusted certificates for your Raspberry Pi server applications

Certbot + Raspbian logo

When you build Raspberry Pi server projects with Raspbian Buster, browser-trusted certificates can be needed.

Since the inception of Let’s Encrypt, many webmasters had been able to deploy web applications that encrypt communication channels with browser-trusted certificates.

Most importantly, Let’s Encrypt provide all the magic for free.

Let’s Encrypt certificates are automatically issued by software participating in the ACME protocol. Therefore, we will need to run such a software on a Raspberry Pi web server for serving HTTPS with browser-trusted certificates.

Given that, let’s see how we can install Certbot on Raspbian Buster.

How to setup Raspbian Buster Lite for Raspberry Pi server projects

When I did a review for Raspberry Pi 4 Model B, the idea of using the Pi 4 for server applications is clear.

Since Raspbian Buster Lite was released alongside the Pi 4, we can use it for new Raspberry Pi server projects.

If you are thinking of building Raspberry Pi server projects, then you may want to follow through this article to help you get started.

How to setup Raspbian Buster for your Raspberry Pi 4 Model B

Since the Raspberry pi 4 Model B comes with several nice upgrades, it is a single board computer that you may want to get.

After you got your Raspberry Pi 4 rig and microSD card, the next step will be to setup an operating system.

At this point in time, you may want to install one of the Raspbian Buster images that got released for the Pi 4.

With that in mind, read on to learn how to setup Raspbian Buster for your Raspberry Pi 4 Model B.

A review of the Raspberry Pi 4 Model B from a not-so-early adopter

When a single board computer has 4GB of RAM, you can use it as a capable IoT gateway or desktop computing. In addition to that, the Raspberry Pi 4 Model B maintains the same dimensions as its credit card sized predecessor, the Pi 3B+.

Although there are several single board computers which provided 4GB of ram, they are priced more than the US$55 price tag. Given that, the Raspberry Pi 4 Model 4 with 4GB of ram is a very attractive offering.

Raspberry Pi 4 Computer Model B 4GB edition in box

In case you are wondering whether you should buy the Raspberry Pi 4 Model B, read on for more perspectives.

How to prepare a virtual environment to run a gpiozero based project on Raspbian Stretch

When you use a virtual environment to run your application, you isolate the dependencies in its own container.

In such a situation, you can ensure that your application can run alongside other applications with incompatible dependencies.

Therefore, I always favour the use of virtual environment for running my Python applications.

With this in mind, this is a story about preparing a virtual environment to run a gpiozero based project on Raspbian Stretch.

How to host a static website on your Raspberry Pi Zero W with Raspbian Stretch Lite and Nginx web server

After you capture the Northern Lights with an entry level DSLR, you may want include them in your personal portfolio. Until you find the time to setup a content management system for your personal portfolio, you want to keep it as a static website.

At this point in time, you saw that Raspberry Pi Zero W and cover lying on the table. In addition to that, you have a spare micro USB charger that you used for charging your old Android phone.

Since you do not have any other use for these items, you decided to host your personal portfolio on that Raspberry Pi Zero W.

With this intention, this is how you can host a static website on your Raspberry Pi Zero W with Raspbian Stretch Lite and Nginx web server.