Skip to content

Installation guide

Medet Kassymov edited this page Apr 19, 2021 · 4 revisions

wiringPi

Usually, wiringPi is pre-installed with standard Raspbian systems. To check this, run the following command in Terminal:

dpkg -s wiringpi

If it is not present, install it using:

sudo apt-get install wiringPi

For detailed instruction, visit this page.

nginx

To install nginx run the following command in Terminal:

sudo apt-get install nginx

Then, start the server with:

sudo /etc/init.d/nginx start

By default, NGINX puts a test HTML file in the web folder. This default web page is served when you browse to http://localhost/ on the board itself, or RPi's IP address from another computer on the network. To find the RPi's IP address, type hostname -I in the Terminal.

NGINX defaults its web page location to /var/www/html on Raspberry Pi OS. Navigate to this folder and edit or replace index.nginx-debian.html as you like. You can confirm the default page location at /etc/nginx/sites-available on the line which starts with 'root', should you need to.

For more information, visit RaspberryPi's documentation page.

CMake

To install CMake, run the following command in Terminal:

sudo apt-get install cmake

git

To install git, run:

apt-get install git

SPI

Enable the SPI interface. This is needed for the data communication between MCP3008 ADC and Raspberry Pi. This will allow RPi board to read data from analog sensors.

sudo raspi-config

This will launch the raspi-config utility.

There, select “Interfacing Options”. Highlight the “SPI” option and activate “Select”.

After activating "Yes" and rebooting RPi, the interface will be enabled.

FastCGI

In Terminal, run:

apt-get install libfcgi-dev
apt-get install libcurl4-openssl-dev

For more instruction, visit author's Github repository.

Clone this wiki locally