Chapter 2. Installing and Configuring Multimedia Server Software

This chapter will serve as an installation guide for the software that will be used to store streamed videos and to serve up both the audio and video files to any device on the network, either BB or computers or tablets/phones. However, first some "housekeeping" needs to be done to the packages that were installed in the last chapter. For this, we will do the following:

  • Set up the BeagleBone to have a static IP.
  • Start the VNC server as soon as the BeagleBone is powered on.
  • Set the time and date to their proper values and to automatically update via NTP time servers.
  • After the housekeeping, download and set up Samba for the BeagleBone. Samba is going to be used because it is easy to configure and maintain. This will be used to load the MP3 files into their proper shared directory and for the video streaming to store the video files for playback later.
  • Download and set up the DLNA server software for the BeagleBone. This will allow the audio and video files to be browsed and served to other devices on the network.

Setting up a static IP on the BeagleBone

First, display the contents of the /etc/network/interfaces file. Run the following command:

cat /etc/network/interfaces

If the board is configured to use DHCP services (the default configuration), dhcp appears at the end of the following line:

iface eth0 inet dhcp

If the board is configured to use static IP settings, static appears at the end of the line instead of dhcp.

The following screenshot shows the output of the cat /etc/network/interfaces command:

Setting up a static IP on the BeagleBone

Now, create a backup of the /etc/network/interfaces file by running the following command:

sudo cp /etc/network/interfaces /etc/network/interfaces.backup

Now, edit the interfaces file with nano, as follows:

iface eth0 inet dhcp

Change the preceding command line to this:

iface eth0 inet static
Setting up a static IP on the BeagleBone

Now, enter the following command in the terminal:

ifconfig

On the command line, you will see something similar to what is shown in the following screenshot:

Setting up a static IP on the BeagleBone
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.33.235