Book Image

Beaglebone Media Center

By : David Lewin
Book Image

Beaglebone Media Center

By: David Lewin

Overview of this book

Table of Contents (15 chapters)
BeagleBone Media Center
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
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...