Getting the environment variables supplied to your Cloud Foundry application with Python 3 Flask

When I was trying to build a Python 3 Flask application on Cloud Foundry, I wanted to quickly check the environment variables that Cloud Foundry will supply to my application.

As a result of that, I created a Python 3 Flask application that will probe the environment variables that it receives from Cloud Foundry.

This post lists the files that constitute that Python 3 Flask application.

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.