Building a Custom Retrogaming PC with RetroPie and Ubuntu Minimal

From LearnLinux.tv Wiki
Jump to navigationJump to search

Overview

In this video, Jay shows how to build a custom RetroPie installation, an an Ubuntu Minimal install with the intent for it to be a dedicated retro-gaming machine.

Relevant Links
Original Video

Install Ubuntu Minimal

Available for download here:

http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso

Consider opting for samba and openssh when asked to choose a list of features

Once logged into your new install, make sure you're up to date

sudo apt update && sudo apt dist-upgrade

Install prerequisites

sudo apt-get install -y git dialog unzip xmlstarlet

Create a directory for downloading the RetroPie setup script via git

mkdir git

Clone the RetroPie setup script repository

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

Change into the RetroPie-Setup directory and run the script

 cd Retropie-Setup
 sudo ./retropie_setup.sh

Choose the "basic install" option and wait, can take up to an hour or more

Install LightDM and Openbox

 sudo apt install lightdm lightdm-gtk-greeter openbox

If you have a proprietary video card, such as Nvidia, install the Ubuntu drivers helper tool

 sudo apt install ubuntu-drivers-common
 sudo ubuntu-drivers autoinstall

Add automatic login for your user

 sudo nano /etc/lightdm/lightdm.conf
 [SeatDefaults]
 autologin-user=jay
 autologin-user-timeout=0
 user-session=openbox

Add Samba configuration (optional)

 sudo apt install samba
 sudo nano /etc/samba/smb.conf
 [global]
 server string = Retropie Gaming Console
 workgroup = MYWORKGROUP
 security = user
 map to guest = Bad User
 name resolve order = bcast wins
 include = /etc/samba/smbshared.conf
 sudo nano /etc/samba/smbshared.conf
 [RetroPie]
 path = /home/<user>/RetroPie
 force user = <user>
 force group = <user>
 create mask = 0664
 force create mode = 0664
 directory mask = 0777
 force directory mode = 0777
 public = yes
 writable = yes

Note: Make sure that once RetroPie launches, go into the setup script and enable automatic login