What I'm going to show you how to configure
- Raspberry Pi running the Raspbian OS
- Boot into emulationstation, a GUI frontend to RetroArch allowing you to select any emulators' games
- Use of xboxdrv to use an xbox controller to play with
- Automount of a windows shared drive where all your ROM's are stored
Prerequisites
Download the following:
Imaging tool
- Windows: Win32DiskImager
Operating system
- Raspbian. For this setup, I got: 2012-10-28-wheezy-raspbian.zip.torrent
Setup
- Insert your sd card into your computer. When it mounts, open up My Computer and find what drive letter it mounted as.
- Open Win32DiskImager
- Click the folder on the right, and select the 2012-10-28-wheezy-raspbian.img file.
- Make sure the device is the same drive letter as your sd card.
- Finally, click "Write."
- After it finishes, you can close Win32DiskImager, and remove your sd card.
Pre-Boot
- Insert your imaged sd card into your RaspberryPi
- Plug in an ethernet cable to provide internet access
- Plug in a usb keyboard (later connect via ssh)
- Power on your RaspberryPi
Boot
sudo raspi-config
- Set your memory split to 128 if you have Model A, and 256 if you have Model B
- Extend the root filesystem
- Enable the ssh server
- Exit and reboot
Note: For systems like the SNES, you may be required to overclock your Pi all the way to the highest setting or else you'll notice some performance issues. It's not recommended as it could reduce the lifetime of your device. Do so at your own risk, but just know it's an option for speed increase.
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y git vim dialog iotop python-software-properties xboxdrv
RetroPie
(Information taken from https://github.com/petrockblog/RetroPie-Setup)
cd
git clone --depth=0 git://github.com/petrockblog/RetroPie-Setup.git
cd RetroPie-Setup
chmod +x retropie_setup.sh
sudo ./retropie_setup.sh
- Select the first option to compile from source. This step will take 6-7 hours to complete.
- When it's finished, allow a reboot of the RaspberryPi.
Auto Log On
sudo vim /etc/inittab
Find the line that looks like:
1:2345:respawn:/sbin/getty 38400 tty1
And change it to be:
#1:2345:respawn:/sbin/getty 38400 tty1
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
Where "pi" is your username.
Execute the following key combinations to write the changes.
Esc
:wq
Enter
Configure Windows Share
- Go to your Windows Computer
- Add a new user called "pi" with a password of your choice.
- Create a folder called "roms"
- Inside of "roms" create two more folders. One called "nes" and the other "snes".
- Right click on the "roms" directory, and share it. Make sure the "pi" user has read/write access to the directory.
Automount the Windows Share on boot of Raspberry Pi
Back on the Raspberry Pi:sudo mkdir -p /media/roms
sudo vim /etc/fstab
At the end of the file, append the following:
//192.168.1.123/roms /media/roms cifs username=pi,password=PASSWORD 0 0
Where:
192.168.1.123 - is your servers IP address
roms - is the name of your shared folder
/media/roms - is the location on your raspberry pi where it will mount to
pi - is the windows users account with access to your shared folder
PASSWORD - is the pi user's password on the windows computer
Configure xboxdrv on boot
cd && mkdir xbox && cd xbox && touch mapping && touch load.sh && chmod +x load.sh && vim load.sh
Add the following text:
#!/bin/bash
cd /home/pi/xbox
xboxdrv --config /home/pi/xbox/mapping --silent &
Execute the following key combinations to write the changes.
Esc
:wq
Enter
vim mapping
Add the following text:
Execute the following key combinations to write the changes.
[xboxdrv]silent=truedeadzone=6000dpad-as-button=truetrigger-as-button=true[ui-axismap]x2=KEY_LEFT:KEY_RIGHTy2=KEY_UP:KEY_DOWNx1=KEY_LEFT:KEY_RIGHTy1=KEY_UP:KEY_DOWN[ui-buttonmap]a=KEY_Vb=KEY_Nx=KEY_By=KEY_M[ui-buttonmap]lb=KEY_ESCrb=KEY_F2[ui-buttonmap]lt=BTN_6rt=KEY_K[ui-buttonmap]dl=KEY_LEFTdr=KEY_RIGHTdu=KEY_UPdd=KEY_DOWN[ui-buttonmap]back=KEY_BACKSPACEstart=KEY_ENTER# EOF #
Execute the following key combinations to write the changes.
Esc
:wq
Enter
sudo vim /etc/rc.local
Before the final "exit 0", add the following line:
sudo /home/pi/xbox/load.sh
Execute the following key combinations to write the changes.
Esc
:wq
Enter
Configure NES and SNES Controller Layouts
cp /home/pi/RetroPie/configs/nes/retroarch.cfg /home/pi/RetroPie/configs/nes/retroarch.cfg.bak
cp /home/pi/RetroPie/configs/snes/retroarch.cfg /home/pi/RetroPie/configs/snes/retroarch.cfg.bak
vim /home/pi/RetroPie/configs/nes/retroarch.cfg
Your file should look like the following:# All settings made here will override the global settings for the current emulator coreinput_player1_joypad_index = "0"input_player1_a = "v"input_player1_b = "b"
Execute the following key combinations to write the changes.
Esc
:wq
Enter
vim /home/pi/RetroPie/configs/snes/retroarch.cfg
Your file should look like the following:# All settings made here will override the global settings for the current emulator coreinput_player1_joypad_index = "0"input_player1_a = "b"input_player1_b = "n"input_player1_x = "v"input_player1_y = "m"
Execute the following key combinations to write the changes.
Esc :wq Enter
Configure new ROM location
vim /home/pi/.emulationstation/es_systems.cfg
Navigate down to the Nintendo Entertainment System
Change:
PATH=/home/pi/RetroPie/roms/nes
to
PATH=/media/roms/nes
Navigate down to the Super Nintendo.
Change:
PATH=/home/pi/RetroPie/roms/snes
to
PATH=/media/roms/nes
Execute the following key combinations to write the changes.
Esc
:wq
Enter
Configure EmulationStation to load on Boot
sudo raspi-config
Choose the option that starts EmulationStation on Boot
Let it reboot.
Retro Gaming offers you the chance to return to your past and share your thought about retro video-games. If you love retro games then this page is for you. Share you comments and thoughts will all retro gaming lovers - http://retrogamingblog2015.blogspot.co.uk
ReplyDelete