Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Beaglebone Media Center

You're reading from  Beaglebone Media Center

Product type Book
Published in Jan 2015
Publisher
ISBN-13 9781784399993
Pages 164 pages
Edition 1st Edition
Languages
Author (1):
David Lewin David Lewin
Profile icon David Lewin

Table of Contents (15) Chapters

BeagleBone Media Center
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Transforming Your BeagleBone Black into a Media Server Media Management, Shares, and Social Activities Examples of Real-world Situations Getting Your Own Video and Feeds Building Your Media Player Illuminate Your Imagination with Your Own Projects Troubleshooting and Tricks to Improve Your Server Ideas to Improve Your Server Index

Diving into the software


We have set up the hardware that will be used along this chapter. Now, let's develop our application to give it some life.

Example 1 – our first client server application

Assuming that you retrieved the whole project in your local directory, simply go to the server_1 directory and open matrixServer.py.

Installing the requirements

Looking at the code parts, some prerequisites must be followed for both the server and client sides.

For the server, you can use the following command:

sudo pip install twisted

Alternatively, you can use the following line:

Install python-twisted

For the client part, you'll need to install the Python environment according to your operating system from https://www.python.org/downloads/.

The code that we'll use here is compatible with both the 2.7 and 3 versions.

Additionally, you'll need a twisted matrix, which you can retrieve with this command:

pip install twisted

Alternatively, you can obtain the one for your operating system from https://twistedmatrix...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}