In this chapter, we are going to set up both live and recorded video streaming, using a web-based application. What this means for the user is that they can access either their recorded videos or a live stream from their home IP video camera, from their smartphone, or their tablet while being logged on to their home network.
In order to do this, we have to install some additional software on our BeagleBone. The instructions explained in this chapter are based on an excellent tutorial from HowtoForge:
https://www.howtoforge.com/installing-lighttpd-with-php5-php-fpm-and-mysql-support-on-debian-wheezy
The first package that we are going to install is called MySQL5.
To do this, we enter the following command into a terminal (or SSH) window:
apt-get install mysql-server mysql-client
Once the software has finished installing, the first thing we have to do is set up a root user password.
In the terminal window, enter p
. The following message will appear in the window, as shown in the following screenshot:
New password for the MySQL "root" user:
You will then be asked to repeat the password with the following message, as shown here:
Repeat password for the MySQL "root" user:
That's it; we are done with MySQL for now.