So you finally have your RetroPie setup and working. That’s great! but then you realise that things are just a little.. too quiet?!
Let’s add some killer background music to this little rig.
Here I will guide you through the process to add music to Retropie.
This post assumes one thing.. that your RetroPie is running on a Raspberry Pi.
Once you download and run the script by following the 5 commands you will not only add background music with the ability to turn it on and off from the config menu, but I added some extra functionality too.
We can also select an option to:
- start playing the music automatically when the Pi boots up, or not
- we can continue to play the music over the top of games
- and we can also hide some of the more, shall we say less appropriate music for when the kids get a chance to experience this excellent little gaming box (GTA “Joyride” by Da Shootaz anyone? ;).
With all these settings available to us, we’re gonna need a way to see what’s been switched on or off!
For this I created an “info” script, that when executed from Emulation Station front-end config menu, will display what our current state is with our music options.
Are you ready? ..Let’s do this!
SSH Into The Pi (For Beginner's)
The easiest way to follow along with this guide would be to SSH in to your Raspberry Pi as you can simply copy the commands/text over from this post and paste them into the terminal. To paste text into the terminal, use CTRL + SHIFT + V.
Fire up a linux terminal (or what ever system you are rocking) on your PC/laptop and run the command:
ssh [email protected]_address
where ip_address is your RetroPie’s IP Address. It will most likely start with 192.168. It can be found in the config menu of your Pi or by pressing F4 on a keyboard and running the command:
If you get the response “connection refused” then we may need to turn on the SSH service. To do this we need to get to a terminal on the Pi by pressing F4 on a keyboard. Now run the command:
sudo touch /boot/ssh
enter the password if prompted (default password is: raspberry)
then reboot the Pi with the command:
When the RetroPie boot’s up again we can then try and SSH in to it again. You may need to check the IP address as it may have changed.
If you get a crazy warning that starts with the following:
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
then copy and paste the line that starts with “ssh-keygen -f ” but add the word sudo at the beginning, and run it.
Type the word “yes” if prompted and enter the RetroPie password if your asked to do so.
Hopefully you’re now greeted with the RetroPie ‘message of the day’ and I’m now assuming you have an SSH session!
Automated With 5 Commands
Tested on Retropie version 4.5.1
This automated method should have music playing on your RetroPie in just a few minutes!
Make sure you have an internet connection and press the ‘F4’ key on your keyboard to bring up a bash terminal or follow the SSH guide above.
Now we need to download the file. Enter the following command into the terminal:
Next we need to uncompress the file with the following command:
tar -xvzf music_setup.tar.gz
Once the file is uncompressed, we need to move in to the “music_setup” directory with the next command:
Now we need to make the setup script executable:
chmod +x setup.sh
And finally, run the script:
When the script starts we can hit the “s” key and then ‘Enter’. Wait for the script to finish running and then reboot. That’s it!
If you want to show or hide some menu items that appear in the Retropie settings screen then just run the script once again and choose the “m” option.
My aim for this post was to get you to add music to Retropie on a Raspberry Pi using just 5 commands.
If you’re comfortable with working in the shell then this small project shouldn’t be a problem for you.
However if you’re not that comfortable with working in a linux shell then this would make an excellent little project to carry out.
Not to mention that it’s fun! and you will have cool background music over that RetroPie when you’re done 🙂
If you would like some more tips on how you could improve your RetroPie setup then check out my other post “ULTIMATE RetroPie Guide: Tips For Beginner’s“.
New To Linux?
In 2020 I’ll be focused on creating linux tutorials for beginner’s!
These won’t be just some random posts though. I will be covering the Linux Professional Institute 1 (LPIC1) certification!
A world wide recognised certification that covers all the basics of Linux Administration!
Ideal for retropie/raspberry pi users.