#RetroConsole Instruction Manual V5 V5

#RetroConsole
Instruction Manual V5
V5
What You Will Get: Systems
MAME
NeoGeo
Sega
Master
System
Sega
Megadri
ve
Nintend
o
Entertai
nment
System
PC
Playstat
Engine / ion 1
Turbo
Grafx 16
Amiga
Atari
2600
Doom
Final
Burn
Alpha
Game
Game
Boy
Boy
Advance Color
Game
Gear
ScummV Super
M
Nintend
o
Entertai
nment
System
Intellivis
ion
Sinclair
ZX
Spectru
m
Z
Machine
emulato
r
What You Will Get: Emulators
UAE4All
RetroArch
Osmose
GnGeo
GenesisGX
(list continues to grow)
Osmose
DGEN
Fuse
Frotz
How to install, The Retro PI Script:

The RetroPie Setup script: An auto-installer script that should make the
install easy.

Pre made image:http://blog.petrockblock.com/retropie/retropie-downloads/

We will be using the terminal and nano text editor to complete the setup.

You should be using the most current version of Raspbian
What You Need:

A Raspberry Pi (256 MB or 512MB).

4 GB SD card or larger

USB keyboard

Internet Connection (to dl image, script)

TV/monitor, AV/HDMI cables, power supply

A Windows/Mac/Linux computer

Flash drive, to transfer your ROMs
Initialization Script For RetroArch On The
Raspberry Pi
Note: If you get an error, update wheezy. You may also need to update apt-get:
sudo raspi-config (update)
apt-get update
Select The First Option:
Binaries-based installation: This way of installation will download per-compiled versions of
RetroArch, various cores, Emulation Station, and SNESDev. In comparison to the second way of
installation this is much faster. Even though the binaries will be updated from time to time, a
disadvantage is that you probably will not have the most recent versions of the programs.
The default selection will install the
complete set of packages
Overclock Without Voiding Warranty
sudo raspi-config
Select "overclock," and reboot your Raspberry Pi. This enables a dynamic
overclocking that will automatically drop back down to 700MHz in case the
Raspberry Pi gets too hot.
Note: When you are in here you might want to expand your
partition”expand_rootfs”.
Add Roms To Correct Folders

NOTE: The install does not come with roms, you will have to supply your own

Example: Copy NES roms to RetroPie/roms/nes

I DO NOT PROVIDE ACCESS TO ROMS....
Emulation Station : Front End GUI
Auto run Emulation Station on boot &
Samba setup

cd RetroPie-Setup

sudo ./retropie_setup.sh

Go through the options. You will find boot from here

When you are in here do your self a favor and enable\download samba. This
will allow you to transfer additional roms from your computer using your local
network.
XBOX 360 Controller Setup (wired)

Sudo apt-get install xbox drv

Sudo nano /etc/rc.local,

xboxdrv –-triger-as-button--id 0 –-led 2 –-deadzone 4000 –silent & sleep 1

cd ~/RetroPie/emulators/RetroArch/tools

Then you have to configure the controller

./retroarch-joyconfig -o p1.cfg -p 1 -j 0

After this you will get a cfg files to add to your default RetroPie/configs/all/retroarch.cfg config file:

sudo cat p*.cfg >> ~/RetroPie/configs/all/retroarch.cfg
XBOX 360 Controller (Exit Emulator)
RetroPie> configs> all
Back in the retroarch.cfg add these lines to the bottom of your config and change “X”
“y” to you preference. Remember to save the change.
input_enable_hotkey_btn = "X"
input_exit_emulator_btn = "Y"
You will need to check the retroarch.cfg file to identify the buttons you want to use here.
Obviously you don’t want to exit games using the usual controller buttons – instead, you
should be looking for the ones that relate to the buttons in the centre of the controller,
perhaps labelled “back” or “select”.
NES Controller Full Mapping Same Method
Exit, Save, and Load NES Controller
save and load state from NES controller & exit emulator
input_enable_hotkey_btn = 8
input_save_state_btn = 1
input_enable_hotkey_btn = 8
input_load_state_btn = 2
input_enable_hotkey_btn = “9”
input_exit_emulator_btn = “8”
Custom Splash
To change the splash screen that came installed with the RetroPie Setup Script.
You need to copy your custom splash screen image to /etc/splashscreen.png
Custom Splash Video With Music
edit /boot/cmdline.txt file:
sudo nano /boot/cmdline.txt
Add quiet
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline
rootwait quiet
Press ctrl-x, type y to confirm save, then press enter and return to the terminal.
Copy your video to your Raspberry Pi
create a script that will run omxplayer on bootup.
sudo nano /etc/init.d/asplashscreen
case "$1" in
start|"")
do_start
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
# No-op
;;
status)
exit 0
;;
*)
echo "Usage: asplashscreen [start|stop]" >&2
exit 3
;;
esac
Custom Splash Video With Music
:
Press ctrl-x, andsave
make file executable
sudo chmod a+x /etc/init.d/asplashscreen
activate
sudo insserv /etc/init.d/asplashscreen
Custom Splash Video With Music
#! /bin/sh
### BEGIN INIT INFO
# Provides: asplashscreen
# Required-Start:
# Required-Stop:
# Should-Start: # Default-Start: S
# Default-Stop:
# Short-Description: Show custom splashscreen
# Description: Show custom splashscreen
### END INIT INFO
do_start () {
omxplayer /home/pi/video.mov & exit 0
}
Reboot and wait
LedBorg Setup (Because lights are cool)
mkdir ~/ledborg-setup
cd ~/ledborg-setup
wget -O setup.zip http://www.piborg.org/downloads/ledborg/raspbian-2013-0910-rev2.zip
unzip setup.zip
chmod +x install.sh
./install.sh
Set boot color: echo "RGB" > /home/pi/ledborg_bootcolour
LedBorg Setup Sequence.sh
Flashing Lights On Boot
CD
wget -O sequence.sh http://www.piborg.org/downloads/ledborg/sequence.sh.txt
chmod +x sequence.sh
~/sequence.sh
Open the cron task list in the default text editor:
crontab -e
Add a line at the bottom to run a task at startup:
@reboot /home/pi/sequence.sh
Save the file and exit the text editor.
Pianobar Part1 (Pandora via terminal)
sudo apt-get install pianobar
wget http://pexpect.sourceforge.net/pexpect-2.3.tar.gz
tar xzf pexpect-2.3.tar.gz
cd pexpect-2.3
sudo python ./setup.py install
cd ..
sudo rm -r pexpect-2.3
sudo apt-get install git
git clone https://github.com/adafruit/Python-WiFi-Radio
git clone https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code
Finally, link some of the latter libraries into the radio software directory:
cd Python-WiFi-Radio
ln -s ../Adafruit-Raspberry-Pi-Python-Code/Adafruit_CharLCDPlate/*.py .
sudo nano /etc/modules
Add these two lines to the end of the file:
i2c-bcm2708
i2c-dev
Pianobar Part 2
cd
mkdir -p .config/pianobar
cd .config/pianobar
ln -s ../../Python-WiFi-Radio/config .
user = YOUR_EMAIL_ADDRESS
password = YOUR_PASSWORD
Also Add this line to the bottom of the page:btls_fingerprint = 2D0AFDAFA16F4B5C0A43F3CB1D4752F9535507C0
To play Music inside the emulator you need too SSH to your pi and launch Pianobar. (For now, working on it)
You will also have to configure the volume settings back in the config file to maximize volume over game volume
I recommend setting your volume setting to -0. (This will still allow in game sounds to be heard and very faint 8bit music).
I am working on a solution to drop to a terminal from the xbox controller home button. Compared to f4 on the keyboard.
To manually launch the Pianob, plug in a keyboard press f4 and type pianobar. (This will drop you out of Emulationstation)
If anyone has any information on getting this to work inside RetroPie other than via ssh using a controller, please contact me at
[email protected]
Shairport\Airplay install
Air Play
sudo apt-get install git libao-dev libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl avahi-utils libmodule-build-perl
P
Let this process run for a little while. When it's complete, we need to install an update so Shairport will work with iOS 6 (you can skip this step if you're
not on or plan to upgrade iOS 6):P
iOS module
git clone https://github.com/njh/perl-net-sdp.git perl-net-sdp
cd perl-net-sdp
perl Build.PL
sudo ./Build
sudo ./Build test
sudo ./Build install
cd ..
P
Shairport install. from your home directory:
git clone https://github.com/hendrikw82/shairport.git
cd shairport
make
P
run Shairport:
./shairport.pl -a NickMooreRetroConsole
Air Play
The command starts Shairport named "NickMooreRetroConsole" (change it to whatever you want)
load on boot:
cd shairport
make install
cp shairport.init.sample /etc/init.d/shairport
cd /etc/init.d
chmod a+x shairport
update-rc.d shairport defaults
P
add Shairport as a launch item
sudo nano shairport
This loads up Shairport file we need to edit. Look through the file for the "DAEMON_ARGS" line, and change it so it looks like this:
DAEMON_ARGS="-w $PIDFILE -a NickMooreRetroConsole"
P
Save the file (Ctrl+X). Shairport should launch on startup.
Bash Terminal Screen
Create this file: /home/pi/.bash_profile
Sudo nano /home/pi/.bash_profile
Copy and paste below text.
let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)"
let secs=$((${upSeconds}%60))
let mins=$((${upSeconds}/60%60))
let hours=$((${upSeconds}/3600%24))
let days=$((${upSeconds}/86400))
UPTIME=`printf "%d days, %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs"`
# get the load averages
read one five fifteen rest < /proc/loadavg
echo "$(tput setaf 2)
.~~. .~~. `date +"%A, %e %B %Y, %r"`
'. \ ' ' / .' `uname -srmo`$(tput setaf 1)
.~ .~~~..~.
: .~.'~'.~. : $(tput setaf 3)`df -h | grep Filesystem`$(tput setaf 1)
~ ( ) ( ) ~ $(tput setaf 7)`df -h|grep rootfs`$(tput setaf 1)
( : '~'.~.'~' : ) Uptime.............: ${UPTIME}
~ .~
~. ~ Memory.............: `cat /proc/meminfo | grep MemFree | awk {'print $2'}`kB (Free) / `cat /proc/meminfo | grep
MemTotal | awk {'print $2'}`kB (Total)$(tput setaf 7)
( $(tput setaf 4) | | $(tput setaf 7) ) $(tput setaf 1) Running Processes..: `ps ax | wc -l | tr -d " "`$(tput setaf 7)
'~
~' $(tput setaf 1) IP Addresses.......: `/sbin/ifconfig wlan0 | /bin/grep "inet addr" | /usr/bin/cut -d ":" -f 2 | /usr/bin/cut
-d " " -f 1` and `wget -q -O - http://icanhazip.com/ | tail`$(tput setaf 7)
*--~-~--*
$(tput sgr0)"
The Results: My Build Pictures
kənˈsōl/
Video: https://vimeo.com/83638021
My Build: Cost

RPi B $35
www.mcmelectronics.com/

Ledborg (lights) $12*2

Heat Sinks $20 www.mcmelectronics.com/

Hub $15 http://www.walmart.com

Wifi adapter $12 www.mcmelectronics.com/

16Gb SD (class 10)

Custom case $60 http://www.raspberry-pi-case.net/

Power Adapter $10 www.mcmelectronics.com/

Retro usb NES controller $17 Retro Gaming Store Level 1 Dublin Ohio
www.piborg.com/ledborg
Notes & Links:

BE SURE TO USE A CLASS 10 SD CARD. Boot times are 3x faster over class 4 and
this will ensure that you avoid in game lag.

Mac users may want to install Netatalk, which makes the RPi appear in the
finder sidebar and can simplify transferring files to and from the system: sudo
apt-get install netatalk

www.nicholasmoore.net (my blog)

http://blog.petrockblock.com/retropie/ (Project documentation)

https://github.com/petrockblog/RetroPie-Setup/wiki/Setting-up-the-XBox360-controller
(Xbox controller setup)

Emulation Station was created by Aloshi (www.Aloshi.com)

Retro Pie was created by PetRockBlock (www.PetRockBlock.com)