0%

Book Description

Over 25 recipes to build projects and applications for multiple platforms with Banana Pi

  • Design, develop, and customize real-world applications and projects rapidly and easily using Banana Pi
  • Quick solutions to the most common real-world problems on the amazing Banana Pi
  • Step-by-step recipes to help you experience the vast possibilities of the device by setting up interesting applications

In Detail

Banana Pi is a dual core single board microcomputer like Raspberry Pi but is much faster, more cost-effective, and performs more efficiently than Raspberry Pi.

Banana Pi Cookbook is a practical guide that starts with setting up Banana Pi and moves on to exploring the more advanced capabilities of the device. You will learn to build a decent Linux-based operating system that can resolve common server tasks (Samba, Web, DLNA) and multimedia challenges. Also, you will see how to use the GPIO opportunities by building simple but straightforward circuits.

By the end of this book, you will be an expert in using Banana Pi to deploy a variety of hardware and software applications.

What You Will Learn

  • Discover how to configure and maintain your Banana Pi device
  • Install Android and a Linux-based distribution onto Banana Pi
  • Attach external drives to your Banana Pi by using the USB or SATA interfaces
  • Share files between your Banana Pi and other devices either in your internal network or over the Internet
  • Connect remotely to your Banana Pi using SSH and VNC
  • Build simple electrical circuits and connect simple hardware elements such as LEDs, resistors, and buttons to the GPIO pins
  • Configure a multimedia center that is able to play high-definition content

Downloading the example code for this book You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Banana Pi Cookbook
    1. Table of Contents
    2. Banana Pi Cookbook
    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. Sections
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
      5. Conventions
      6. Reader feedback
      7. Customer support
        1. Downloading the example code
        2. Downloading the color images of this book
        3. Errata
        4. Piracy
        5. eBooks, discount offers, and more
        6. Questions
    8. 1. Installation and Setup
      1. Introduction
        1. Banana Pi Overview
        2. Operating systems for the Banana Pi
          1. Android
          2. Linux
      2. Downloading an operating system for the Banana Pi
        1. Getting ready
        2. How to do it…
        3. See also
      3. Setting up the SD card on Windows
        1. Getting ready
        2. How to do it…
          1. Writing an Android image to the SD card on Windows
          2. Writing a Linux distribution image to the SD card on Windows
        3. How it works…
        4. See also
      4. Setting up the SD card on Linux
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. See also
      5. Booting up and shutting down the Banana Pi
        1. Getting ready
        2. How to do it…
          1. Booting up
          2. Shutting down Android
          3. Shutting down Linux
        3. How it works…
        4. See also
    9. 2. Administration
      1. Introduction
      2. Determining the IP address and hostname
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
      3. Connecting via SSH on Windows using PuTTY
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
      4. Connecting via SSH on Unix-like systems
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
      5. User maintenance
        1. Getting ready
        2. How to do it…
          1. Adding a new user
          2. Setting a password for a user
          3. Deleting a user
        3. How it works…
        4. There's more…
        5. See also
      6. Searching, installing, and removing the software
        1. Getting ready
        2. How to do it…
          1. Searching for packages
          2. Installing a package
          3. Removing a package
        3. How it works…
        4. There's more…
        5. See also
      7. Updating the operating system
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
      8. Wireless network on the Banana Pro
        1. Getting ready
        2. How to do it…
          1. Loading the ap6210 module
          2. Configuring the wireless network with WiFi Config
          3. Configuring the wireless network manually
        3. How it works…
        4. There's more…
    10. 3. External Disks
      1. Introduction
      2. Mounting a USB drive
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
      3. Mounting an SSD or HDD via SATA
        1. Getting ready
        2. How to do it…
        3. How it works…
      4. Mounting via fstab
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
      5. Booting from an external disk
        1. Getting ready
        2. How to do it…
          1. Formatting the drive
          2. Copying the root filesystem and editing uEnv.txt
        3. How it works…
        4. See also
    11. 4. Networking
      1. Introduction
      2. Sharing files over the network via Samba
        1. Getting ready
        2. How to do it…
          1. Installing the Samba server
          2. Accessing the Samba share on Windows
          3. Accessing the Samba share on Linux manually
          4. Accessing the Samba share on Linux using fstab
        3. How it works…
        4. There's more…
        5. See also
      3. Setting up a web application
        1. Getting ready
        2. How to do it…
          1. Installing the Nginx web server
          2. Installing the PHP scripting language
          3. Installing the MySQL database server
          4. Installing WordPress
        3. How it works…
        4. There's more…
          1. Setting up PhpMyAdmin
          2. Other technologies
        5. See also
      4. Securing the Nginx web server using SSL
        1. Getting ready
        2. How to do it…
          1. Creating the certificate
          2. Configuring Nginx to use an SSL certificate
        3. How it works…
        4. There's more…
          1. Importing a self-signed certificate on Windows
          2. Importing a self-signed certificate on Linux
        5. See also
      5. Synchronizing files over the Internet
        1. Getting ready
        2. How to do it…
          1. Setting up a Dynamic DNS
          2. Updating the Dynamic DNS hostname
          3. Setting up a port forwarding
          4. Installing ownCloud
        3. How it works…
        4. There's more…
        5. See also
      6. Controlling the desktop remotely using VNC
        1. Getting ready
        2. How to do it…
          1. Installing the VNC server on the Banana Pi
          2. Installing and using a VNC client on Windows
          3. Installing and using a VNC client on Linux
        3. How it works…
        4. There's more…
          1. Adding a SSH tunnel for VNC in PuTTY
          2. Using an SSH tunnel for VNC on Linux
        5. See also
      7. Securing SSH using SSH keys
        1. Getting ready
        2. How to do it…
          1. Using SSH keys in PuTTY
          2. Using SSH keys on Linux
          3. Disabling the SSH password login on the Banana Pi
        3. How it works…
        4. See also
      8. Setting up a UPnP media server
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
    12. 5. Using the GPIO Pins
      1. Introduction
      2. Lighting up an LED using the gpio command
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
          1. The Banana Pi pin layout
          2. The Banana Pro pin layout
          3. Using a GPIO extension board
        5. See also
      3. Programming the LED
        1. Getting ready
        2. How to do it…
          1. Programming the LED with C
          2. Programming the LED with Python
        3. How it works…
          1. Explaining the C code
          2. Explaining the Python code
      4. Using the GPIO input with a pushbutton
        1. Getting ready
        2. How to do it…
          1. Preparing the circuit
          2. Programming the software
        3. How it works…
          1. Explaining the C code
        4. There's more…
        5. See also
    13. 6. Multimedia
      1. Introduction
      2. Configuring the audio device
        1. Getting ready
        2. How to do it…
          1. Configuring HDMI pass-through
          2. Configuring analog audio
          3. Testing the audio output
        3. How it works…
        4. There's more…
        5. See also
      3. Getting accelerated video playback
        1. Getting ready
        2. How to do it…
          1. Preparing the building of the required components
          2. Building and activating the hardware-accelerating components
          3. Installing and configuring MPlayer
          4. Installing and configuring VLC media player
        3. How it works…
        4. There's more…
        5. See also
      4. Setting up Kodi
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
      5. Setting up an infrared remote control using LIRC
        1. Getting ready
        2. How to do it…
          1. Configuring LIRC to recognize the remote control
          2. Controlling applications using the remote control
        3. How it works…
        4. There's more…
        5. See also
    14. Index
18.191.223.123