Tag archive for: Raspbian Stretch

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 setup a Raspberry Pi web server with Raspbian Stretch Lite, Nginx, MariaDB and PHP as the LEMP stack

Raspberry Pi LEMP Linux Nginx MariaDB PHP

When you want to deploy a PHP application that you wrote, you can first deploy it on a Raspberry Pi. Once your PHP application gets enough traction, you can then port it over to a computer with more horsepower.

When your PHP application employs MySQL or MariaDB as the backing database, we can put it up on a LEMP stack. In this situation, HTTP requests will first be directed to the Nginx reverse proxy server. Whenever the request is made to a php application, Nginx will then pass it on to the PHP7 Fast CGI Process Manager (PHP FPM) for generating the HTTP response.

Given these points, this post provides the steps to setup a Raspberry Pi web server with Raspbian Stretch Lite, Nginx, MariaDB and PHP as the LEMP stack.

How to enable VNC server on Raspbian Stretch with raspi-config

When you have a VNC server enabled on your Raspbian Stretch, you will be able to access your Raspberry Pi from another computer. Furthermore, you will be able to use your Raspberry Pi from a graphical user interface.

Therefore, if you want to enable SSH server on your Raspbian Stretch but is not really comfortable with a command line interface, a VNC server is what you should enable instead.

In such a situation, you can use raspi-config to enable VNC server on Raspbian Stretch. Let see how we can do so.

How to configure locale settings of Raspbian Stretch with raspi-config

Locales are a framework to switch between multiple languages and allow users to use their language, country, characters, collation order and etc. Therefore, it is an important setting to configure before using your Raspberry Pi.

Given that, let us look at how we can configure locale settings of Raspbian Stretch with raspi-config.

How to connect your Raspberry Pi to a WiFi network with raspi-config in Raspbian Stretch

When you own a Raspberry Pi with in-built WiFi or an attached USB WiFi adapter, you will be able to connect it to a WiFi network.

Given that WiFi connectivity, you can use then your Raspberry Pi as a HTTP server and/or a HTTP client on the Internet without using a network cable.

When you have installed Raspbian Stretch on your Raspberry Pi, you can use raspi-config to connect your Raspberry Pi to a WiFi network. For this purpose, you can follow the steps mentioned in this post.

How to change the hostname of your Raspberry Pi via raspi-config in Raspbian Stretch

When you install Raspbian Stretch as the operating system for your Raspberry Pi, the default hostname is raspberrypi.

Since a Raspberry Pi is one of the things that programmers buy, we could deploy several at home.

When you have several Raspberry Pis deployed in your house, you may want them to be identified by hostnames.

So how can we change the hostname of our Raspberry Pi running Raspbian Stretch? This post shows how you can change the hostname of your Raspberry Pi via raspi-config in Raspbian Stretch.

How to change password of the current user in Raspbian Stretch using raspi-config

Especially when you enable SSH server on Raspbian Stretch, you should change the default password of the pi user.

When you want to change the default password of the current user in Raspbian Stretch, you can do it via raspi-config.

In case you need it, this post shows how to change password of the current user in Raspbian Stretch using raspi-config.

How to expand Raspbian Stretch file system via raspi-config

When you need more space for your existing Raspbian Stretch image, you need to rewrite it onto a larger microSD card. In order to use the additional storage space, you need to tell Raspbian Stretch to expand its file system.

In this situation, follow this post to expand Raspbian Stretch file system via raspi-config.