Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Raspberry Pi Server Essentials
Raspberry Pi Server Essentials
Raspberry Pi Server Essentials
Ebook277 pages1 hour

Raspberry Pi Server Essentials

Rating: 0 out of 5 stars

()

Read preview

About this ebook

This is an engaging, easy to follow guide for developing a wide range of server projects with Raspberry Pi

This book is targeted towards all Raspberry Pi enthusiasts who are interested in exploring the potential of Pi as a server. Even if you have no prior experience with the Raspberry Pi, you can pick up this book and develop a wide range of projects.
LanguageEnglish
Release dateFeb 10, 2014
ISBN9781783284702
Raspberry Pi Server Essentials

Related to Raspberry Pi Server Essentials

Related ebooks

Games & Activities For You

View More

Related articles

Reviews for Raspberry Pi Server Essentials

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Raspberry Pi Server Essentials - Piotr J Kula

    Table of Contents

    Raspberry Pi Server Essentials

    Credits

    About the Author

    About the Reviewers

    www.PacktPub.com

    Support files, eBooks, discount offers and more

    Why Subscribe?

    Free Access for Packt account holders

    Preface

    What this book covers

    What you need for this book

    Who this book is for

    Conventions

    Reader feedback

    Customer support

    Downloading the example code

    Errata

    Piracy

    Questions

    1. Getting Started with Raspberry Pi

    Hardware requirements

    Extra peripherals

    Essential peripherals

    Wireless USB network adapters

    USB hubs

    Keyboards and mice

    Useful peripherals

    Internet 3G dongles

    Sound cards

    IR receivers

    TV and radio receivers

    Webcams

    Multicard readers

    Alamode

    HDMI to VGA

    Fun peripherals

    Joysticks

    USB to SATA

    CAN bus

    Home automation

    USB missile launcher

    Fingerprint scanners

    Installing Raspbian on the Raspberry Pi

    Understanding the design of the Raspberry Pi

    Boot process

    Other capabilities

    Hardware limitations

    Network speeds

    USB bottlenecks

    Time

    Summary

    2. Preparing the Network

    Local Area Network (LAN)

    The eth0 port

    The wlan0 interface

    The lo interface

    Wireless configuration – Wi-Fi

    Recommended wireless adapters

    Setting up from the desktop

    Setting up from the console

    Using wicd-curses

    Static network address

    Testing and benchmarking your network

    Basic tests

    Advanced benchmarking tools

    Speedtest application

    Iperf

    Recommended bandwidth

    Internet configuration

    ISP packages

    Home packages

    Business packages

    Dynamic DNS

    Installing the client

    Dynamic DNS domain workaround

    Summary

    3. Configuring Extra Features

    Updating the Raspberry Pi

    Updating firmware

    Updating packages

    Outcomes

    Hardware watchdog

    Enabling the watchdog and daemon

    Testing the watchdog

    Enabling extra decoders

    Buying licenses

    MPEG-2

    VC-1

    Hardware monitoring

    Summary

    4. Using a Fast PHP Web Server and Database

    Working with nginx

    Installing nginx

    Configuring virtual hosts

    Installing PHP

    Installing a database

    Installing MySQL

    Installing SQLite3

    Nginx with custom modules

    Summary

    5. Setting Up a File Server

    Preparing the storage medium

    Listing the available drives

    Formatting a drive

    Mounting the drives

    Remounting a disk after reboot

    Accessing files

    FTP service

    Connecting with FileZilla

    Connecting with WinSCP

    Samba service

    Installing and configuring Samba

    Network shares

    AFP for Macintosh

    Installing and configuring

    Shares and Time Machine

    BitTorrent Sync

    Installing Sync

    Autostart

    Hardware RAID

    Configuration

    Massive storage

    Redundant storage

    Summary

    6. Setting Up the Game Servers

    Updating to Jessie

    Selective settings

    Games servers

    OpenTTD

    Installing OpenTTD

    Configuring OpenTTD

    Playing OpenTTD

    Freeciv

    Installing Freeciv

    Configuring Freeciv

    Playing Freeciv

    OpenArena

    Installing OpenArena

    Configuring OpenArena

    Playing OpenArena

    Minecraft

    Installing Java Hard-Float

    Installing the Minecraft server

    Configuring Minecraft

    Playing Minecraft

    Summary

    7. Bitcoins – Pools and Mining

    Installing Bitcoind

    Bitcoin wallet

    Creating a Bitcoin address

    Receiving Bitcoins

    Sending Bitcoins

    The value of Bitcoins

    Mining for Bitcoins

    Mining with ASICMiner

    Installing CGMiner

    Summary

    8. Streaming Live HD Video

    Streaming with GStreamer

    Streaming with FFmpeg

    Raspivid

    Compiling nginx-rtmp

    Configuring nginx

    Streaming video using the RTMP module

    Watching a video

    RTMP streams

    MPEG streams

    Other streams

    Summary

    9. Setting Up a Media Center

    Slideshows

    Using fbi

    Watching movies

    Using OMXPlayer

    Playing audio

    Using aplay

    Using OMXPlayer

    Using AirPlayer

    Using alsamixer

    Installing RaspBMC

    Enabling other codecs

    Configuring RaspBMC

    Wireless

    Media sources

    Using Add-ons

    AirPlay

    Enabling CEC

    Performance optimization

    Change the skin

    Overclocking

    NFS versus Samba

    Summary

    Index

    Raspberry Pi Server Essentials


    Raspberry Pi Server Essentials

    Copyright © 2014 Packt Publishing

    All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

    Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

    Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

    First published: February 2014

    Production Reference: 1030214

    Published by Packt Publishing Ltd.

    Livery Place

    35 Livery Street

    Birmingham B3 2PB, UK.

    ISBN 978-1-78328-469-6

    www.packtpub.com

    Cover Image by Piotr J. Kula (<info@piotrkula.com>)

    Credits

    Author

    Piotr J. Kula

    Reviewers

    Teemu Lätti

    Warren Myers

    Acquisition Editor

    Kunal Parikh

    Commissioning Editor

    Manasi Pandire

    Technical Editors

    Shubhangi Dhamgaye

    Nachiket Vartak

    Copy Editors

    Alisha Aranha

    Roshni Banerjee

    Gladson Monteiro

    Adithi Shetty

    Project Coordinator

    Sageer Parkar

    Proofreaders

    Maria Gould

    Paul Hindle

    Indexers

    Monica Ajmera Mehta

    Tejal Soni

    Graphics

    Ronak Dhruv

    Production Coordinator

    Shantanu Zagade

    Cover Work

    Shantanu Zagade

    About the Author

    Piotr J. Kula developed an interest in computers when he was six years old. He was introduced to the world of technology by his father who came from an electronics engineering background. Piotr has lived, studied, and gained experience in three countries. Today, he is a Microsoft Certified Professional and works with reputed companies offering complex software solutions. In his spare time, he enjoys working on electrical engineering projects and also enjoys doing some home improvement projects with his wife.

    I want to thank my wife Katarzyna Kula for always supporting me during my projects.

    About the Reviewers

    Teemu Lätti works as a software specialist for Elektrobit (http://elektrobit.com) in Kajaani, Finland. He has over 15 years of experience as a professional Java and C++ developer. He is specialized in embedded software on different platforms, for example, Raspberry Pi, Android, and Windows Phone. He has a wide experience in various software, from device drivers to user interfaces and web development. He hosts a private web page (http://cupla.net) and builds home automation experiments with Raspberry Pi and Arduino.

    Warren Myers is a Data Center Automation and Management Engineer with seven years of experience with the HP automation stack. He has an extensive background and interest in technical arenas. He started programming when he was 10, and has always strived to learn new things on a regular basis. He currently works for Avnet Services as a Solutions Architect in the Cloud & Automation Practice. He has also written Debugging and Supporting Software Systems (http://cnx.org/content/col11350), a freely available e-book.

    www.PacktPub.com

    Support files, eBooks, discount offers and more

    You might want to visit www.PacktPub.com for support files and downloads related to your book.

    Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at for more details.

    At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

    http://PacktLib.PacktPub.com

    Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books. 

    Why Subscribe?

    Fully searchable across every book published by Packt

    Copy and paste, print and bookmark content

    On demand and accessible via web browser

    Free Access for Packt account holders

    If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.

    Preface

    The purpose of this book is to get you started with the Raspberry Pi. We will try and cover many different topics to demonstrate the flexibility of the Raspberry Pi. The main goal of the book is to get you started on this project that you were just not so sure about.

    What this book covers

    Chapter 1, Getting Started with Raspberry Pi, will check the basic equipment that we need to use with this book. We will have to look into the other peripherals that we buy and

    Enjoying the preview?
    Page 1 of 1