万本电子书0元读

万本电子书0元读

顶部广告

Raspberry Pi 2 Server Essentials电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Piotr J Kula

出  版  社:Packt Publishing

出版时间:2016-04-01

字       数:124.4万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Transform your Raspberry Pi into a multi-purpose web server that supports your entire multimedia world with this practical and accessible tutorial! About This Book Host websites, games, and even stream HD videos with the impressive power of Raspberry Pi 2 Get to grips with embedded programming by turning your Pi into the cloud server that can be used to power Internet of Things projects Make the Raspberry Pi 2 the center of your latest tech experiments and discover how it can manage and host resources Who This Book Is For Seeking inspiration for some new tech projectsWant to get more from your Raspberry PiThis book has been created especially for you! What You Will Learn Host your Raspberry Pi as a web server using the minimum power resources Connect your Pi to the Internet and perform network benchmarking Explore the cross-platform features of the Pi as you run Python, Node.JS, ASP.NET, and PHP all in one place Share files over the Internet using your Pi as a file server Turn your Pi into a game server, host and engage into playing Enjoy live HD video streaming and exclusive real-time text overlays In Detail There’s no end to what you can do with a Raspberry Pi – it makes a huge range of tech projects possible. This book shows you how to transform it into a multipurpose web server, able to store and manage resources that lets you build some truly innovative and impressive computing creations. You’ll learn how to use your Raspberry Pi 2 to host a website using a range of different languages, host a game server, store files, and run everything from a media center to a cloud network. If you want to take control of your technological world, start building your own server and find out what’s possible with the Raspberry Pi microcomputer. Begin by getting your Pi set up – follow each step as the book shows you how to prepare a network and configure the additional features that you’ll need to build your projects. Once you’ve done this you’ll dig a little deeper and set up your pi as a file server, making sure it’s built for speed using a range of different tools, including Python, Node.js and ASP.NET. Following this the book shows you how to extend your server to allow you to host games, and stream live HD video before customizing it even further to create a fully-fledged media center. It doesn’t stop there however – the book then dives into the exciting world of the Internet of Things (IoT). You’ll learn how to install Windows IoT onto your Raspberry Pi, the operating system that’s driving embedded software projects all around the world. Once you’ve done this you’ll be ready to explore IoT further, as the book shows you how to use your device to host a cloud network that can form the basis of a wider IoT project. Style and approach Packed with plenty of practical examples that walk you through a number of Raspberry Pi projects, this book is an accessible journey into embedded computing and Internet of Things.
目录展开

Raspberry Pi 2 Server Essentials

Table of Contents

Raspberry Pi 2 Server Essentials

Credits

About the Author

About the Reviewers

www.PacktPub.com

eBooks, discount offers, and more

Why subscribe?

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

Downloading the color images of this book

Errata

Piracy

Questions

1. Getting Started with the Raspberry Pi

Hardware requirements

Power supply

USB hub

SD cards

Extra peripherals

Essential peripherals

Useful peripherals

Internet 3G dongles

Audio recording

Other media add-ons

Fun peripherals

Installing Raspbian on the Raspberry Pi

Understanding the design of the Raspberry Pi

Boot process

Other capabilities

Hardware limitations

Network speeds

USB bottlenecks

Time

References

Summary

2. Preparing a Network

Local Area Network (LAN)

The eth0 port

The wlan0 interface

The loopback (LO) interface

A wireless configuration (Wi-Fi)

Recommended wireless adapters

Setting up from a desktop

Setting up from a console

Using wicd-curses

A static network address

Testing and benchmarking your network

Basic tests

Advanced benchmarking tools

A speedtest application

iPerf

Recommended bandwidth

Internet configurations

Home packages

Business packages

Dynamic DNS

Installing a client

The free Dynamic DNS domain workaround

Summary

3. Configuring Extra Features

Updating Raspberry Pi

Updating the firmware

Updating packages

Updating distribution

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 Fast Web Servers and Databases

Apache versus nginx versus Kestrel

Installing nginx

Configuring the nginx virtual hosts

Extra frameworks for nginx

Python API

Executing Python

Node.js

Installing Node.js

What is NPM

The Node.js server

.NET and ASP.MVC

Prerequisites for .NET 5

Installing DNVM, DNU and DNX

Installing DNX

Running the MVC website

MVC and nginx

Other .NET applications

Installing PHP

Installing a database

Installing MySQL

Installing phpMyAdmin

Installing SQLite

Summary

5. Setting Up the Raspberry Pi as a File Server

Connecting the external storage

Preparing the storage medium

Listing the available drives

Formatting a drive

Creating a EXT4 partition

Mounting the drives

Remounting a disk after reboot

Accessing files

The FTP service

Connecting with FileZilla

Connecting with WinSCP

The Samba service

Installing and configuring Samba

Network shares

AFP for Macintosh

Installing and configuring Netatalk

Shares and Time Machine

BitTorrent Sync

Installing BTSync 2

The hardware RAID

Configuration

Massive storage

Redundant storage

Summary

6. Setting Up Game Servers

Updating to Jessie

Selective settings

Game servers

OpenTTD

Installing OpenTTD

Configuring OpenTTD

Playing OpenTTD

Freeciv

Installing Freeciv

Configuring Freeciv

Playing Freeciv

OpenArena

Installing OpenArena

Configuring OpenArena

Playing OpenArena

Minecraft

Installing the Java Hard-Float

Installing the Minecraft server

Configuring Minecraft

Playing Minecraft

Summary

7. Streaming Live HD Video

Installing UV4L

Configuring the UV4L-RaspiCAM

Installing WebRTC

WebRTC streaming

Real time HTTP streaming

Web conferencing

Streaming the X desktop

Text overlay

Object detection and tracking

Removing the overlay watermark

The HUD sample

Using the overlay binary

Inline variables

Compiling the overlay code yourself

Summary

8. Setting Up the Pi as a Media Center Server

Slideshows

Using fbi

Playing videos

OMXPlayer for video playback

Playing audio

Aplay for audio playback

OMXPlayer for audio playback

Using AirPlayer

Using alsamixer

Installing OSMC

Configuring OSMC

Enabling other codecs

Wireless configuration

Media sources

Using add-ons

AirPlay

Enabling CEC and remotes

Performance optimization

Overclocking

Summary

9. Running Your Pi from a Battery's Power Source

Hardware requirements

Charging stations

Battery packs

Voltage regulator

Ohm's Law

Discharge curves

Discharge characteristics

Putting it all together

How long will it last?

Summary

10. Windows IoT Core

Getting started

Flashing IoT

Python for Linux or Windows 7 and 8

The first boot

Remote connections

Visual Studio (VS)

Installing Visual Studio 2015

The Hello World application

Deploying the application

Debugging

Breakpoints

Unhandled exceptions

Samples

Windows 10 IoT WebGUI

Setting up the startup app

Peripherals

Bluetooth

Wireless

Summary

11. Running Your ownCloud

Installation

Requirements

MySQL

nginx and PHP

Permissions

The first configuration

The admin configuration

The server admin

Installing apps

Calendar

Other apps

Daily functionality

The World Wide Access

Summary

12. The Internet of Things – Sensors in the Cloud

What is IoT?

Ohm's law

How much power?

Choosing sensors

Resistors, fuses, and diodes

Transistors

Integrated Circuit Packages

Putting it all together

Accurate data using Arduino

Building a weather station

Real-time embedded devices

The data communication

Real-time events

Analog inputs

Parts required

Storing data on the Cloud

Phant

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部