56tvmao: How-to instructions you can trust. PC Guides How to Install RetroPie on Raspberry Pi and Build a Retro Gaming Console

How to Install RetroPie on Raspberry Pi and Build a Retro Gaming Console

If you’re craving a retro gaming session, you can transform your Raspberry Pi into a vintage gaming rig by installing RetroPie, one of the most popular and versatile retro gaming platforms that supports a vast array of classic systems from SNES and Atari to Sega and PlayStation.

Content

What You’ll Need

To build your retro gaming console, you’ll need:

  • Raspberry Pi: A Raspberry Pi 5 is the best choice for the smoothest performance across all supported emulators, though a Pi 4 works great too. A Pi 3 can also work but is suited mostly for 8-bit and 16-bit era systems like NES and SNES.
  • MicroSD Card: The card should have at least 32 GB of storage space for the operating system and your games. Of course, you can also store games on an external hard drive or USB flash drive, for example.
  • Power Supply: An official or compatible Raspberry Pi USB-C power supply rated for your Pi model (5V/5A for Pi 5, 5V/3A for Pi 4).
  • Video Cable: A micro HDMI to HDMI cable for Pi 5/4 and a standard HDMI cable for Pi 3.
  • Display: Any HDMI-compatible monitor or TV.
  • Input Devices: A USB keyboard and mouse for initial setup. I also strongly recommend you get a gaming controller for the best retro-gaming experience.
  • Optional but Recommended: A Raspberry Pi case with proper ventilation and heatsinks for better thermal performance.

Once you’ve gathered all these components, you’re ready to start building your retro gaming system!

Installing RetroPie on Raspberry Pi OS

Before installing RetroPie, you’ll need to set up Raspberry Pi OS (formerly known as Raspbian) on your microSD card. Raspberry Pi OS is the official operating system for Raspberry Pi and provides the most stable foundation for RetroPie.

Follow our detailed guide on how to set up Raspberry Pi OS on your Raspberry Pi to get started with the installation. Once you have Raspberry Pi OS up and running, you can install RetroPie by following these steps:

Open a Terminal window from the Raspberry Pi OS desktop. First thing to do is to make sure your system is up-to-date:

sudo apt update && sudo apt upgrade -y

Install git so you can download the RetroPie setup script (it usually comes pre-installed with Raspberry Pi OS):

sudo apt-get install git

Clone the RetroPie setup script from the official GitHub repository. This will download all the necessary files to your Raspberry Pi:

git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git

You can then navigate to the RetroPie-Setup directory, make the setup script executable, and run it with sudo permissions:

cd RetroPie-Setup
chmod +x retropie_setup.sh
sudo ./retropie_setup.sh

When the RetroPie Setup script launches, select Basic Install from the main menu and confirm with Yes when prompted. This will install all the core packages required to run RetroPie, including various emulators and EmulationStation, the frontend interface you’ll use to browse and launch your games.

Once the installation completes (which may take 30-60 minutes depending on your Raspberry Pi model and internet connection), you can launch EmulationStation by typing:

emulationstation

This will start the RetroPie interface where you can configure your controllers and add games to your retro gaming system. If you want EmulationStation to launch automatically when your Raspberry Pi boots up, you can enable this option from the RetroPie Configuration menu.

Configuring Your Controller

When you first launch EmulationStation, you’ll need to set up your gaming controller. When the welcome screen appears, connect your controller to your Raspberry Pi using a USB cable if it’s not already connected. For wireless controllers, make sure they’re properly paired via Bluetooth first.

Press and hold any button on your controller, and EmulationStation will automatically detect it. You’ll then be guided through mapping each button on your controller. The system will ask you to press specific buttons one at a time – if your controller doesn’t have a particular button, just hold down any button to skip that input.

One of the most important steps is configuring the Hotkey button, which works like a modifier key for special commands. It’s recommended to set this to the Select button or a button you won’t frequently use during gameplay, such as the PS button or Xbox Guide button. When combined with other buttons, the Hotkey enables important functions:

  • Hotkey + Start: Exit game
  • Hotkey + Right Shoulder: Save game state
  • Hotkey + Left Shoulder: Load game state
  • Hotkey + X: Access the RetroArch menu
  • Hotkey + B: Reset game

After completing the controller configuration, your RetroPie system will be ready for gaming. You can always reconfigure your controller later by pressing Start in EmulationStation and selecting Configure Input, or add additional controllers by following the same process.

Adding Games to RetroPie

To play games on your RetroPie system, you’ll need to add ROM files, which are digital copies of game cartridges or discs. For legal and ethical reasons, you should only use ROMs of games you own or those that are freely available. Several websites offer homebrew games and public domain ROMs that are legal to download and play.

The Internet Archive hosts a collection of classic PC games that are now freely available. For arcade games, MAMEDev provides a selection of legitimate free ROMs that work with RetroPie. You can also find many excellent homebrew games created by the retro gaming community that are free to download and play.

Once you have your ROM files, you’ll need to transfer them to your RetroPie system. The ROMs should be placed in specific folders based on their console type. Navigate to the “~/RetroPie/roms” directory, where you’ll find separate folders for each gaming system (like snes for Super Nintendo games or nes for Nintendo Entertainment System games). Place your ROMs in the appropriate folder:

For Super Nintendo games

/home/pi/RetroPie/roms/snes/

For Nintendo Entertainment

/home/pi/RetroPie/roms/nes/

For Sega Genesis/Mega Drive games

/home/pi/RetroPie/roms/megadrive/

After adding new ROMs, restart EmulationStation or press Start and select Quit -> Restart EmulationStation for the new games to appear in your library. To play a game, simply navigate to the desired console section and select your game using the controller.

Optimizing RetroPie Performance

After setting up RetroPie, you can improve its performance by modifying the config.txt file, which is a system configuration file that controls various hardware settings on your Raspberry Pi. The location of this file depends on your Raspberry Pi OS version – on newer systems it’s located at “/boot/firmware/config.txt”, while on older versions you’ll find it at “/boot/config.txt”. You can access it by typing either:

For newer Pi OS versions:

sudo nano /boot/firmware/config.txt

For older Pi OS versions

sudo nano /boot/config.txt

For better gaming performance, especially when running demanding games, you can adjust settings like arm_freq to increase CPU speed and over_voltage_delta to provide additional stability. For a detailed guide on safely pushing your Raspberry Pi’s performance limits, check out our comprehensive tutorial on how to overclock your Raspberry Pi.

If you notice black bars around your screen, you can fix this by adding:

disable_overscan=1

and

overscan_scale=1

For better audio through HDMI, particularly if you’re using a monitor or TV with built-in speakers, add:

hdmi_drive=2

After making any changes to config.txt, save the file by pressing Ctrl + X, then Y to confirm, and finally Enter. You’ll need to restart your Raspberry Pi for these changes to take effect.

While using a Raspberry Pi for retro gaming offers a dedicated, optimized experience, it’s worth noting that you’re not limited to this setup alone – you can also enjoy classic PlayStation games on your Mac or run retro games directly on Windows if you prefer using your existing computer for gaming.

Images and screenshots by Jessica Thornsby and David Morelo.


David Morelo
Staff Writer

David Morelo is a professional content writer in the technology niche, covering everything from consumer products to emerging technologies and their cross-industry application. His interest in technology started at an early age and has only grown stronger over the years.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.
By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time. Subscribe

Related Post