Emulation on Ubuntu

From Emulation General Wiki
Jump to: navigation, search

THE GNU/LINUX GUIDE OF EMULATION: *buntu Edition[edit]

Important! Like the title says, this guide covers Ubuntu and its derivatives. While you may have lesser or equal success with distributions that use APT (Ubuntu's packaging tool), where there could be relevant information in your case, this guide is not to be used for distributions that use Pacman or YUM. We can't guarantee that repositories here will work with Debian and Ubuntu-based Puppy (like Tahr), but we're not saying it's not possible. Give it a try, and it could work if you know what you're doing. However, distributions like Arch and Fedora use completely different packaging tools, and thus are obviously guaranteed not to work. Don't give up, though; you can find the same emulators for your distribution somewhere else, either in their official or user-curated repos, or by compiling them from source.

Info for newfriends[edit]

Possibly the biggest difference between Windows and Ubuntu (and perhaps, GNU/Linux in general) is the way that programs are handled. On Windows, getting software requires the developer to package an installer (or a portable build for flash drives and the like) that you have to get from their website. They may also have to bundle dependencies (like the Visual C++ Runtime) or link you to their location if a license prevents that. If your software is closer to open-source, this is very different; either they have a repository that holds their own packages, someone has set one up for them, or they integrate their packages in the defaults (although this is very rare).

These "repositories" can be thought of like app stores. You use a package manager (either graphically or terminally) to search for programs in the repositories, from which you can install, update and uninstall them. It's really cool.

Your Linux distribution comes with repositories already configured so you can get a lot of the main programs immediately, but there are risks with the emulators in particular; repositories aren't focused on having every emulator, and in many cases when they do, they don't have newer versions. This isn't necessarily their fault though; especially with bigger distributions, repositories can be stuffed with loads of software that gets constant updates, so to get them tested and updated takes quite a bit of time. Rather than using the defaults, we'll add more repositories made by users or developers themselves that contain the latest versions of these emulators. Once these repositories are added, you will be able to install the emulators like with any other program, and update them with the rest of your machine.

While this can seem exciting, keep in mind that some emulators aren't available on repositories, and many good ones aren't on Linux at all, so you may need to use different methods to get them. But don't worry; this will be explained later.

Adding new repositories[edit]

Note: If you ever rely on a tutorial that says to type apt-get, you can use apt instead. There generally isn't a difference.
Another note: Pay attention to where sudo is used. That's the equivalent to running a Windows program as an administrator. If you're ever suspicious about any command you're told to type, you can type man (command) short for manual and it will tell you what that program does. E.g. man apt will tell you what apt does. To quit the documentation, just press q.

Terminal[edit]

To add a new repository from the terminal, just type in this command:

sudo add-apt-repository ppa:user/ppa-name

...where the ppa:user/ppa-name are the ones you'll find in the table for the repository you want to add. After you add all the repos you want, you'll run the next command to tell apt to refresh the list:

sudo apt update

Once that's done you will have all the packages from those repos available to install.

Graphical[edit]

To add a new repository from the GUI, install synaptic (or make sure it's installed) by typing in this command from the terminal:

sudo apt install synaptic

This program will be a lot of help. Once you have it installed you can choose to organize packages by source and see all the repos you already have available.

Select Settings > Repositories, and from the new window, select Other Software > Add...

deb http://ppa.launchpad.net/ppa:user/ppa-name/ubuntu xenial main

Where instead of xenial for 16.04, you type trusty for 14.04, zesty for 17.04, and artful for 17.10.

You can then see what emulators you have with each repos, and can now install the ones you want.

Repositories List[edit]

The "Type" column categorizes repositories by update frequency. Software in the Testing branches usually get updates as often as possible (even daily), while software in the Stable branches are only as recent as the versions are, and usually get updates between a few months.

If a desired emulator isn't found here, you can find more repositories by searching around for "(emulator) launchpad ppa". Check that they have packages for your Ubuntu version (they usually go by the version's name), as some PPAs can be abandoned.

Emulator/Project ppa:user/ppa-name Type Latest Emulator Version Supported Ubuntu Versions ARM[N 1]
RetroArch
(libretro)
ppa:libretro/testing Testing 1.6.7 14.04,16.04,17.04[N 2]
ppa:libretro/stable Stable 1.6.7 14.04,16.04,17.04[N 2]
VBA-M ppa:sergio-br2/vbam-trunk Stable 2.0.0~beta3-r201708302237-8b2e8f8-19 16.04
PCSX2 ppa:gregory-hainaut/pcsx2.official.ppa Stable 1.4.0 14.04,15.04,15.10,16.04,16.10,17.04
ppa:pcsx2-team/pcsx2-daily Testing 1.5.0~git201708300943 14.04,15.04,16.04,17.04,17.10
MAME ppa:c.falco/mame Stable 0.189 16.04,17.04
ppa:c.falco/alpha[N 3] Testing N/A[N 4] N/A
Dolphin ppa:dolphin-emu/ppa Stable/Testing 5.0+git-r201708290042-1705d15-32 16.04,17.04 ✓(arm64)
PCSX-Reloaded ppa:rebuntu16/pcsx-reloaded-svn+unofficial Stable/Testing 1.9.94+git2017.02.28-16.13-1~ppa 16.04,16.10,17.04
PPSSPP ppa:ppsspp/testing Testing 1.4.1-r201708311123-42cb559-72 14.04,16.04,17.04
ppa:ppsspp/stable Stable 1.4.1-r201705240041-e776eff-72 14.04,16.04,16.10,17.04
ScummVM Official Site (.deb)[N 5] Stable 1.9.0 16,04,16.10[N 6]
higan PlayDeb[N 7] Stable 104 16.04,17.04
Gens PlayDeb[N 7] Stable 2.15.5 Any (12.04-17.04)
Reicast ppa:dmcoles/ppa Stable 7~rc+b478~22 16.04,16.10,17.04
DeSmuME ppa:random-stuff/ppa Stable 0.9.11+r1~4 12.04,14.04,15.04,15.10,16.04,16.10[N 6]
Mupen64Plus Testing 2.5-7+r630~7 14.04,15.04,15.10,16.04[N 8]
PokeMini Stable 0.60 14.04,15.04,15.10,16.04,16.10,17.04
Gambatte Stable 0.5.0 r577 (git) 12.04,14.04,15.04,15.10,16.04,16.10,17.04
Supermodel Stable 0.3a~WIP+r624~22 14.04,16.04,17.04
mGBA Testing 0.6.0-r201708130001-86d0941-11 14.04,16.04,17.04
Snes9x Stable 1.54.1-r201708171802-f76df76-3 14.04,16.04,17.04
Mednafen
FCEUX
ZSNES
Other older emulators not listed
Official Ubuntu repos Varies[N 9] Varies Varies Varies
  1. These repositories have packages compiled for ARM architectures, and could work with HP Hardfloat, odroid, Raspberry Pi 2, etc.
  2. 2.0 2.1 Core availability may vary between Ubuntu versions.
  3. Some MAME builds may also appear in ppa:c.falco/trashbin.
  4. This repository is unused as of August 30, 2017.
  5. ScummVM's website provides raw Debian packages (.deb) which can be installed with tools like gdebi.
  6. 6.0 6.1 This package is in the official repository for Ubuntu 17.04.
  7. 7.0 7.1 PlayDeb is not a PPA and must use different commands to add their repository. See their how to install section for more information.
  8. This package is in the official repository for Ubuntu 16.10 and newer.
  9. Only updated once per Ubuntu version.

Links[edit]