Software setup

Before we start connecting all the things together in our Raspberry Pi Zero W board, we have to burn a new SD card with the appropriate image. So, download the Pi Music Box zip from the official website in the following link: http://www.pimusicbox.com/. Now, you need to install this software in your SD card so use dd tool or anything else that you are familiar with depending on your operating system and perform the following steps:

  1. Insert the SD card in your Raspberry Pi Zero W board. In case you are using an external Wi-Fi Dongle (for any reason), you might consider to edit the config settings.ini file. The location of the file is in the SD card that you just wrote. Assuming that your board is equipped with Wi-Fi and bluetooth, you will skip the previous step, but for anyone out there that prefers the hard way or has Raspberry Pi Zero board (which is quite similar), he will have to edit the username and password of the Wi-Fi settings.
  2. Next, you need to provide internet access to your Raspberry Pi Zero W.
  3. We need to find the IP address of the Raspberry Pi Zero W board. After that, we have to ssh to that IP address at port 22 and you will be prompted to insert username and password. Type the default username and password since you haven't changed them and you should be in the Pi by now.
  4. Assuming that it is all set, try and open up a browser and go to the following address: http://musicbox.local.

If for any reason you have troubles with the preceding steps, you will need to use the IP of the Raspberry Pi. Remember that you learned how to get and find this IP in the previous chapters. If you have your Pi connected to a screen, you can find the IP from the command line by typing the following command:

ifconfig  

Once connected in your browser, you should be presented with a screen like the one shown in the following screenshot:

Now, it is important to understand that we will be streaming this over the local network and not the internet. Streaming or connecting devices over the internet requires more actions to set this up. We will not go through all this stuff in this chapter. Remember to update and upgrade your system when installing the latest Raspberry Pi distribution. You can update your system by typing the following command:

sudo apt-get update  

You can upgrade with all the latest packages using the following command:

sudo apt-get upgrade  

At this point, you should have the latest system that can connect to your speaker and play your favorite music.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.216.36