O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Raspberry Pi Server Essentials

Book Description

If you want to use Raspberry Pi as a server, this is the book that makes it all possible. Covering a wide range of projects ? from network storage to a game server ? you'll learn in easy, engaging steps.

In Detail

Raspberry Pi makes a good server that facilitates you with eminently achievable to the massively ambitious ideas. It is a capable computer that can perform tasks that involve spreadsheets, word processing, and games. It also plays high-definition video. If you are looking for a way to set up a low cost web server, primarily to be used as a testing environment or to store files, then Raspberry Pi is perfect for you.

This book demonstrates Raspberry Pi's ability to perform tasks that a mini computer would, in an efficient manner using a minimum number of power resources. You can connect your Raspberry Pi to the Internet at home to share files, host multi-player games, or even host a website.

Starting with the pre-requisites and installation of Pi, you will learn how to setup Pi as a web server with MySQL. This book progresses with building Pi as a file server and knowing about using the various file transfer protocols. It also guides you to install Bitcoin/ Litecoin and set up Bitcoin wallet. You will learn how to stream a webcam to watch movies in HD or camera module.

Complete your journey by learning how to use Pi as a game server by using basic console commands to get graphical content

What You Will Learn

  • Use Raspberry Pi as a low cost network storage device
  • Configure a webserver using PHP and work with databases
  • Host multi-player games by using Pi as a game server to get graphical content
  • Share files and use hardware RAID on the Pi
  • Mine Bitcoins and make your own digital currency
  • Turn your Raspberry Pi into a media server to stream media to your network
  • Enable extra features such as installing a wireless adapter, enabling the hardware watchdog, and updating and upgrading the distro

Table of Contents

  1. Raspberry Pi Server Essentials
    1. Table of Contents
    2. Raspberry Pi Server Essentials
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Getting Started with Raspberry Pi
      1. Hardware requirements
      2. Extra peripherals
        1. Essential peripherals
          1. Wireless USB network adapters
          2. USB hubs
          3. Keyboards and mice
        2. Useful peripherals
          1. Internet 3G dongles
          2. Sound cards
          3. IR receivers
          4. TV and radio receivers
          5. Webcams
          6. Multicard readers
          7. Alamode
          8. HDMI to VGA
        3. Fun peripherals
          1. Joysticks
          2. USB to SATA
          3. CAN bus
          4. Home automation
          5. USB missile launcher
          6. Fingerprint scanners
      3. Installing Raspbian on the Raspberry Pi
      4. Understanding the design of the Raspberry Pi
        1. Boot process
        2. Other capabilities
        3. Hardware limitations
          1. Network speeds
          2. USB bottlenecks
          3. Time
      5. Summary
    9. 2. Preparing the Network
      1. Local Area Network (LAN)
        1. The eth0 port
        2. The wlan0 interface
        3. The lo interface
      2. Wireless configuration – Wi-Fi
        1. Recommended wireless adapters
        2. Setting up from the desktop
        3. Setting up from the console
        4. Using wicd-curses
      3. Static network address
      4. Testing and benchmarking your network
        1. Basic tests
        2. Advanced benchmarking tools
          1. Speedtest application
          2. Iperf
        3. Recommended bandwidth
      5. Internet configuration
        1. ISP packages
          1. Home packages
          2. Business packages
        2. Dynamic DNS
          1. Installing the client
          2. Dynamic DNS domain workaround
      6. Summary
    10. 3. Configuring Extra Features
      1. Updating the Raspberry Pi
        1. Updating firmware
        2. Updating packages
        3. Outcomes
      2. Hardware watchdog
        1. Enabling the watchdog and daemon
        2. Testing the watchdog
      3. Enabling extra decoders
        1. Buying licenses
        2. MPEG-2
        3. VC-1
      4. Hardware monitoring
      5. Summary
    11. 4. Using a Fast PHP Web Server and Database
      1. Working with nginx
        1. Installing nginx
        2. Configuring virtual hosts
        3. Installing PHP
      2. Installing a database
        1. Installing MySQL
        2. Installing SQLite3
      3. Nginx with custom modules
      4. Summary
    12. 5. Setting Up a File Server
      1. Preparing the storage medium
        1. Listing the available drives
        2. Formatting a drive
        3. Mounting the drives
        4. Remounting a disk after reboot
      2. Accessing files
        1. FTP service
          1. Connecting with FileZilla
          2. Connecting with WinSCP
        2. Samba service
          1. Installing and configuring Samba
          2. Network shares
        3. AFP for Macintosh
          1. Installing and configuring
          2. Shares and Time Machine
        4. BitTorrent Sync
          1. Installing Sync
          2. Autostart
      3. Hardware RAID
        1. Configuration
          1. Massive storage
          2. Redundant storage
      4. Summary
    13. 6. Setting Up the Game Servers
      1. Updating to Jessie
        1. Selective settings
      2. Games servers
        1. OpenTTD
          1. Installing OpenTTD
          2. Configuring OpenTTD
          3. Playing OpenTTD
        2. Freeciv
          1. Installing Freeciv
          2. Configuring Freeciv
          3. Playing Freeciv
        3. OpenArena
          1. Installing OpenArena
          2. Configuring OpenArena
          3. Playing OpenArena
        4. Minecraft
          1. Installing Java Hard-Float
          2. Installing the Minecraft server
          3. Configuring Minecraft
          4. Playing Minecraft
      3. Summary
    14. 7. Bitcoins – Pools and Mining
      1. Installing Bitcoind
        1. Bitcoin wallet
        2. Creating a Bitcoin address
          1. Receiving Bitcoins
          2. Sending Bitcoins
          3. The value of Bitcoins
      2. Mining for Bitcoins
        1. Mining with ASICMiner
        2. Installing CGMiner
      3. Summary
    15. 8. Streaming Live HD Video
      1. Streaming with GStreamer
      2. Streaming with FFmpeg
      3. Raspivid
      4. Compiling nginx-rtmp
        1. Configuring nginx
        2. Streaming video using the RTMP module
      5. Watching a video
        1. RTMP streams
        2. MPEG streams
        3. Other streams
      6. Summary
    16. 9. Setting Up a Media Center
      1. Slideshows
        1. Using fbi
      2. Watching movies
        1. Using OMXPlayer
      3. Playing audio
        1. Using aplay
        2. Using OMXPlayer
        3. Using AirPlayer
        4. Using alsamixer
      4. Installing RaspBMC
        1. Enabling other codecs
        2. Configuring RaspBMC
          1. Wireless
          2. Media sources
          3. Using Add-ons
          4. AirPlay
          5. Enabling CEC
        3. Performance optimization
          1. Change the skin
          2. Overclocking
          3. NFS versus Samba
      5. Summary
    17. Index