Retropie_Setup_x86 (UNOFFICIAL)
GIST NOT BEING WORKED ON ANYMORE
NOTE: [vim|nano|ed|emacs]
means editor of your choice.
<username>
means you put your actual username
1.) Install Ubuntu Server
You need a window manager to pick up contoller support. Finally figured that one out thanks to This. So openbox will be installed.
2.) sudo apt-get install -y git dialog unzip xmlstarlet xinit xorg* pulseaudio openbox xterm
3.) git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git
4.) cd RetroPie-Setup
5.) sudo ./retropie_setup.sh
6.) Select Basic Install, then once done just EXIT the menu. Do not reboot
7.) [vim|nano|ed|emacs] ~/.xinitrc
then add exec openbox-session
8.) mkdir ~/.config/openbox
9.) [vim|nano|ed|emacs] ~/.config/openbox/autostart
then add xterm -fullscreen emulationstation
to the autostart file. If you keep it just emulationstation without using xterm it will work, but if you launch anything within ES it will just quit to openbox
10.) sudo visudo
change %sudo ALL=(ALL:ALL) ALL
to %sudo ALL=(ALL) NOPASSWD:ALL
11.) sudo [vim|nano|ed|emacs] /etc/default/grub
Edit this line -> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
12.) sudo update-grub
NOTE: I had to use sudo systemctl edit getty@tty1
to make and override.conf file in 20.04
IF (Using 20.04):
13.) sudo systemctl edit getty@tty1
Add this to line 1 -> ExecStart=
Add this to line 2 -> ExecStart=-/sbin/agetty --noclear --autologin <username> %I $TERM
Add this to line 3 -> Type=idle
14.) echo "pgrep 'tmux|startx' || exec startx" >> ~/.bash_profile
15.) Reboot
Else (Possibly on 19.10)
13.) sudo [vim|nano|ed|emacs] /etc/systemd/system/getty.target.wants/getty@tty1.service
Edit ExecStart
to look like this -> ExecStart=-/sbin/agetty --noclear --autologin <username> %I $TERM
14.) echo "pgrep 'tmux|startx' || startx" >> ~/.bash_profile
15.) Reboot
First off what I have tried in QEMU for videos devices. Only using my laptop currently for testing. Will try my Desktop when I get a chance. I have tired Virtio with 3D acceleration on, but had some odd artifcates on screen (Sonic 2 on picodrive I tested). However, when I changed to QXL. There was a much smoother experience. With a bit smaller screen size by default.
Secondly, audio sounds... just okay I guess. I just tested HDA (ICH6) Does sound off though. It could also be my laptop speakers. I will try out with headphones and also will test AC97 and ICH9 soon see if there is better preformance.
What needs to be fix (Only for QEMU)
1.) Keyboard detection (Might just be xserver-xorg-input-all that needs to be install)
2.) Change virtual screen size (xrander does not work, runs but no change to resolution)
3.) Better performance with virtio and 3d acceleration, for now QXL works best.
4.) Audio can be spotty. SNES seems to work fine. Genesis/Megadrive seems to need some help. Although, switching to QXL seemed to help a lot.
Based off of https://retropie.org.uk/forum/topic/12037/building-on-ubuntu-server-16-04 & https://retropie.org.uk/docs/Debian/