Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Building Networks and Servers using Beaglebone
Building Networks and Servers using Beaglebone

Building Networks and Servers using Beaglebone: Set up and configure a local area network and file server by building your own home-based multimedia server

Arrow left icon
Profile Icon William Pretty Profile Icon Glenn Vander Veer
Arrow right icon
₹799 ₹1608.99
eBook May 2015 110 pages 1st Edition
eBook
₹799 ₹1608.99
Paperback
₹2010.99
Subscription
Free Trial
Renews at ₹800p/m
Arrow left icon
Profile Icon William Pretty Profile Icon Glenn Vander Veer
Arrow right icon
₹799 ₹1608.99
eBook May 2015 110 pages 1st Edition
eBook
₹799 ₹1608.99
Paperback
₹2010.99
Subscription
Free Trial
Renews at ₹800p/m
eBook
₹799 ₹1608.99
Paperback
₹2010.99
Subscription
Free Trial
Renews at ₹800p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Building Networks and Servers using Beaglebone

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...

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

Starting the VNC server

To start the VNC server after booting and logging in, we just SSH to the multimedia server and enter the following command:

tightvncserver

The terminal will display the following response:

Starting the VNC server

You can now access the multimedia server's desktop from your PC or Mac.

Installing NTP

Every time the board is powered, the clock is reset. This can be inconvenient when using a source code repository; therefore, the Network Time Protocol (NTP) will be installed and set up so that the board updates to the current time and date on power up. To install NTP, run the following command:

sudo apt-get install ntp

Here's the output of the NTP install command:

Installing NTP

Setting the local time zone

Once NTP is installed, a local time server should be set to offload the requests from global time servers. This is done by editing the /etc/ntp.conf file and replacing one or more of the default servers with a local time server that can be found via a web search. The following is an example ntp.conf...

Installing and configuring Samba

Samba is a very convenient application to have running for a home media server, as it allows easy access to files from other computers on the local network. Here, Samba is configured to be used with authentication and authorization. In other words, a username and password must be used in order to access Samba's shared folders from any network connection. In order to access the folders, they will be mapped to a local drive on the non-BeagleBone system. Then, the Samba share will appear as a local drive on the non-BeagleBone system, even though it is actually a folder on the BeagleBone. On the Windows operating system, this is easily accomplished by the map network drive option. This option is available by right-clicking on the shared folder in a File Explorer window.

To install samba, use the following command:

sudo apt-get install samba

Sometimes, there are extra packages that need to be installed in addition to the package you want to install. After...

Installing the DLNA server

Digital Living Network Alliance (DLNA), which is a group of organizations that have created an industry-wide standard, enables all DLNA devices to share media over a home network. Once a device is connected to a DLNA server, media content can be accessed with minimum hassle so that movies, music, or digital photos are available to be played on game consoles, tablets, mobile phones, and televisions.

This content will be loaded by remote machines using the Samba shares that have been mapped as part of their filesystem. Once the network and server is set up, content can be added and viewed at anytime, anywhere on the local network.

Now, the DLNA server will be installed with the following command:

sudo apt-get install minidlna

Installing the DLNA server will have extra packages that need to be installed in addition to the package you want to install. After reading the details of these packages, select y to continue, as shown in the following screenshot:

Installing the DLNA server

Once the server...

Summary

In this chapter, the BeagleBone was set up to update the time and date via NTP. It was also configured to automatically start the VNC server so that an external keyboard, mouse, and display will not be needed to control the BeagleBone. Next, Samba was installed to allow access to the yet to be connected Raid array, and a DLNA server was installed in order to serve up audio, video, and pictures to the properly authenticated user.

In the next chapter, we will talk about the software needed to secure the network from any unauthorized use.

Left arrow icon Right arrow icon

Description

If you are a developer with BeagleBone experience and want to learn how to use it to set up a network and file server, then this book is ideal for you. To make the most of this book, you should be comfortable with the Linux operating system and know how to install software from the Internet, but you do not have to be a network guru.

Who is this book for?

If you are a developer with BeagleBone experience and want to learn how to use it to set up a network and file server, then this book is ideal for you. To make the most of this book, you should be comfortable with the Linux operating system and know how to install software from the Internet, but you do not have to be a network guru.

What you will learn

  • Install and configure the latest Debian image onto your BeagleBone
  • Set up simple file services and multimedia sharing services
  • Monitor your network traffic to ensure highspeed streaming
  • Build and utilize a RAID storage system
  • Stream live video action from your BeagleBone
  • Make your multimedia server wireless by setting up a DHCP WiFi Server

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 28, 2015
Length: 110 pages
Edition : 1st
Language : English
ISBN-13 : 9781784399986
Category :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : May 28, 2015
Length: 110 pages
Edition : 1st
Language : English
ISBN-13 : 9781784399986
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
₹800 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
₹4500 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick icon Exclusive print discounts
₹5000 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 9,310.97
Building Networks and Servers using Beaglebone
₹2010.99
BeagleBone Black Cookbook
₹3649.99
Mastering Beaglebone Robotics
₹3649.99
Total 9,310.97 Stars icon
Banner background image

Table of Contents

7 Chapters
1. Installing Debian onto Your BeagleBone Black Chevron down icon Chevron up icon
2. Installing and Configuring Multimedia Server Software Chevron down icon Chevron up icon
3. Installing and Configuring Network Monitoring Software Chevron down icon Chevron up icon
4. Installing and Setting Up a BeagleBone RAID System Chevron down icon Chevron up icon
5. Streaming Videos Chevron down icon Chevron up icon
6. Setting Up a Wireless Access Point Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.