Book Image

Raspberry Pi Media Center

By : Sam Nazarko
Book Image

Raspberry Pi Media Center

By: Sam Nazarko

Overview of this book

<p>Low-cost and high-performing, with a massively diverse range of uses and applications, the Raspberry Pi is set to revolutionize the way we think about computing and programming. Using it as a Media Center allows everyone to have a low-cost device that is always on, attached to their TV. <br /><br />Imagine controlling your TV with your smartphone, dynamically streaming content that you have on various devices across your home, as and when you want. Raspberry Pi Media Center will show you how to configure the complete experience using readily available and accessible tools, so that you too will soon be enjoying your media from the comfort of your own sofa. <br /><br />With this practical guide, you’ll discover how you can transform your Raspberry Pi into a powerful media center. Using Raspbmc (based on the XBMC distribution), you'll be shown how you can deploy and configure your own media center, including coverage of all the essentials from controlling your device with a TV remote or smartphone, to the creation and customization of your very own media library (including the conversion of any existing collection). You'll even be able to stream multimedia from your devices or directly from the Internet!</p>
Table of Contents (17 chapters)

Installing MySQL


It's best to install MySQL on the same system we'll be serving files from. This makes sense as we'll need both the file server and the database server to be online to play content, so we may as well confine these services to one system.

Installing on Linux

The MySQL package can be fetched via your distribution's default repositories, as follows:

  1. First, we need to fetch the packages using our distribution's package manager as follows:

    • On Debian/Linux Mint or Ubuntu systems, we can do this with the following command:

      sudo apt-get install mysql-server
      
    • On Redhat, CentOS, and Fedora systems, we can do this with the following command:

      sudo yum install mysql-server
      
  2. Now, we need to allow remote access to the MySQL database service. We can do that with the following command:

    sed -i /etc/mysql/my.cnf -e 's/bind-address/#bind-address/'
    
  3. We now need to restart the MySQL service, which can be done with the following command:

    sudo service mysql restart
    

Installing on Mac OS X

The MySQL package...