eXoDos Collection v6.04 Linux Patch retroexo@gmail.com ======================================================= ------------------------------------------------------- Contents ------------------------------------------------------- Description.......................................Sec01 Changes to 6.04 Linux Patch.......................Sec02 Front-End.........................................Sec03 Setup.............................................Sec04 Steam Deck Specifics..............................Sec05 Emulators.........................................Sec06 Playing the Games.................................Sec07 Creating Desktop Shortcuts........................Sec08 Running Updates...................................Sec09 Current & Future Volumes..........................Sec10 Troubleshooting...................................Sec11 Development Tools.................................Sec12 Contact & Thanks..................................Sec13 Merging eXo Packs.................................Sec14 ------------------------------------------------------- Description Sec01 ------------------------------------------------------- This is the Linux patch for eXoDOS Version 6.04! Please read this document carefully for installation instructions. All 7,666 DOS games has been configured with launchers and install scripts to be playable in Linux with exogui, the official Linux frontend. Every corner of the collection has been thoroughly analyzed like never before with careful attention to detail to ensure feature parity with the Windows version. This has been a monumental effort. The eXoDOS 6 Linux conversion is over 5 times more complex than the eXoDOS 5 one. The games have been configured to run in special bundled versions of DOSBox, 86Box, or ScummVM, depending on the needs. Officially supported distributions include: - Arch / Manjaro Linux / SteamOS - Fedora - Ubuntu (and Ubuntu-based distributions) - Nearly any x86_64 Linux distribution with flatpak support ARM computers and devices, such as the Raspberry Pi 5, are not supported at this time. Note that macOS is also unsupported at this time. And until we have a volunteer to add macOS support to the frontend, it is unlikely to become a priority. ------------------------------------------------------- Changes to 6.04 Linux Patch Sec02 ------------------------------------------------------- • Launch scripts directly from any file-manager: Files ending in the *.command extension can be launched directly from any file manager. Revamped dependency installer with update support: For many distributions, sudo access is no longer needed. Improved compatibility: The eXoDOS Linux patch will now run on virtually any x86_64 distro with flatpak support, including the Steam Deck. Improved frontend: The exogui frontend is now feature packed with full support for extras, filters, images, playlists, and videos. Improved backend: The backend has been completely revamped to include all eXoDOS 6 features. • Bug Squash: Hundreds of previously broken games have been fixed after thorough testing. ------------------------------------------------------- Front-End Sec03 ------------------------------------------------------- Two members of our Discord, jelcynek and Colin, have done fantastic work building out the now official Linux frontend, exogui, which is a fork of Flashpoint Launcher. At this point, exogui has reached near feature-parity with the LaunchBox options used by eXoDOS. After the main eXoDOS setup has been completed, running exogui.command will start the frontend. The eXoDOS setup also gives an option to add a desktop shortcut. The website for exogui can be found at: https://github.com/margorski/exodos-launcher/ At this time, we looking for more volunteers to help in the development of the exogui frontend. If someone is interested, please reach out in the #linux_port_for_nerds channel of our Discord. We are also interested in someone willing to develop a macOS port of it. Electron / Node.js development proficiency required. ------------------------------------------------------- Setup Sec04 ------------------------------------------------------- ---STEP ONE--- Placing the files The eXoDOS 6.04 Linux Patch must be used in conjunction with either the full or lite version of eXoDOS 6.04. Make sure your torrent client downloads the eXoDOS 6.04 Linux Patch to the exact same location as the main eXoDOS 6.04 torrent. If you would also like the Media Pack add-on, make sure your torrent client has also downloaded the Media Pack to the exact same location as the main eXoDOS 6.04 torrent. ---STEP TWO--- Installing the system dependencies The next step is to install the software needed to run the collection. The install_dependencies.command script will run you through a guided setup to do this. NOTE: If you are using Thunar or XFCE, you will first need to enable running shell files as executables. See the FAQ section for details. In your file manager, double-click on install_dependencies.command to start the dependency installer. If you are asked whether you want to execute the file, click yes. If you are using Nautilus or Gnome and are not given this option, right click the file and select Run as Program. Note that this step will need to be done on any Linux computer that has not previously ran eXoDOS 6, even if the full setup has already been completed on a portable drive. Also note that the flatpaks are installed at a user level. As such, other users will need to run the dependency installer separately as well. You will be prompted with a guided setup that gives the following options: [P]roceed with installation [D]ownload the latest setup [R]emove all installed eXo packages [A]bort installation The "[D]ownload the latest setup" option will only grab the newest version of the eXo Dependency Installer, not eXoDOS itself. This may be useful if there is a problem with the dependency installer or if new flatpaks are needed. If the dependency installer is updated, it should be reran to launch the new version. To proceed with installing the dependencies, choose "[P]roceed with installation" and follow the on-screen instructions. ---STEP THREE--- Running the eXoDOS Setup The final step is to run the eXoDOS Setup. In your file manager, double-click on the "Setup eXoDOS.command" file to start the setup, and then follow the on-screen instructions. If you are asked whether you want to execute the file, click yes. If you are using Nautilus or Gnome and are not given this option, right click the file and select Run as Program. The setup file will check for required files and warn you if any are missing. It will also check for files from the Media Pack Add-On. This will unpack the required eXoDOS files, including the LaunchBox/exogui assets and the games front end assets/configs to run the collection. It will make the collection work on both Windows and Linux computers. It is important to run the setup and not extract any files manually. Not only are the files location sensitive, but the setup makes some changes to them. The eXoDOS Setup will give you the opportunity to customize your set. This includes the option to remove Adult games from the exogui and LaunchBox menu. This removes games with sex or nudity from the LaunchBox XML file. This does not remove violent games. Please make use of the ratings category in exogui if you would like to filter the games further. You will also be prompted as to if you would like your global defaults to be Fullscreen or Windowed and whether or not you would like to default to Aspect Ratio On or Off. Once it is complete, run exogui to dive right in. The eXoDOS collection can be run from any directory, as all launch files are designed to use relative paths to each other. Note, however, if you choose to add a desktop shortcut to exogui and then later move eXoDOS to a new location, you will need to run the eXoDOS Updater to update the shortcut to point to the new location. The eXoDOS Updater will allow you to reconfigure all of the installation options instead of running through the entire setup process again. ------------------------------------------------------- Steam Deck Specifics Sec05 ------------------------------------------------------- There are additional steps that are necessary to setup eXoDOS on the Steam Deck. This section covers the basics. Connect external hardware: Having an external mouse and keyboard will make setting things up much easier. If you have a USB-C dock, you can connect it directly to the Steam Deck to use an external mouse, keyboard, and monitor. If not, Valve sells an official Steam Deck Docking Station that works in the same way. You may alternatively connect an external mouse and keyboard via bluetooth. There are several small foldable keyboards with built-in touchpads, and while these do not provide the same experience as a full sized mouse and keyboard, they work great considering their portability. To connect a bluetooth device, do the following: 1.) Turn on the steam deck and press the Steam button. 2.) In the left-hand pane that appears, select Settings, and then Bluetooth. 3.) Use the toggle switch to turn bluetooth on. 4.) Follow the instructions for your external device to enter it into pairing mode. 5.) Wait for the device to show up on the Steam Deck under "Available to Pair," and then select it to pair. Enter Desktop mode and download eXoDOS: To setup eXoDOS on the Steam Deck, it is necessary to enter desktop mode. To do this, do the following: 1.) Go to your home screen on the Steam Deck, and then press the Steam button. On the left-hane pane that appears, select Power. 2.) Press "Switch to Desktop." 3.) Close the "Welcome to KDE Plasma" window. 4.) On the bottom left of the screen, click on the Firefox icon in the taskbar. Then click install in the window that pops up. After the installation completes, you may close the window. 5.) On the bottom left of the screen, click on the Discover icon in the taskbar. In the window that pops up, search for Transmission, and install it. 6.) Open a Firefox window, go to www.retro-exo.com, click on the computer image, and then eXoDOS. 7.) Due to space constrains on the Steam Deck, you will likely want to download the eXoDOS Lite torrent. 8.) Open the downloaded torrent file with Transmission. Note that you may need to move the window to click "I Agree" on a user agreement dialog. 9.) Download the torrent contents to a location of your choice, such as your home directory. 10.) Download the torrent for the eXoDOS Linux Patch in the same way, making sure its contents are downloaded to the exact same location as eXoDOS. 11.) MEDIA PACK: You may also download the Media Pack add-on torrent. If you choose to do so, its contents should also be downloaded to the exact same location as eXoDOS. 12.) Now, follow the instructions described in section 4. Adding exogui to Steam: 1.) Open Steam from Desktop Mode. 2.) On the bottom-left part of the main Steam window, press "+ Add a Game", and select "Add a Non-Steam Game..." from the pop-up menu. 3.) An "Add Non-Steam Game" dialog will pop up. On the bottom-left of it, press the "Browse..." button. 4.) A "Pick game to add" dialog window will appear. In it, navigate to the root directory of your eXoDOS collection. (e.g. /home/deck/eXoDOS/) 5.) Open the filter drop-down list and select "All Files." 6.) Select "exogui.command" from the file list, and then press the Open button at the bottom right. 7.) This will return you to the "Add Non-Steam Game" window with the exogui.command Program selected. 8.) Press the "Add Selected Programs" button at the bottom of the window. 9.) Navigate to the Library tab of the main Steam window. 10.) Select exogui.command in the left-hand pane. 11.) Press on the gear icon on the far right of the window below the exogui.command title. Then select Properties from the pop-up menu. 12.) A configuration pop-up window will appear with a shortcut pane currently selected. 13.) Press on the empty icon thumbnail below "Shortcut." 13.) A "Choose Icon" pop-up window will appear. In it, navigate to the eXo/util directory of your eXoDOS collection. 14.) Select the exodos.png file, and then press the Open button at the bottom right of the window. 15.) This will return you to the configuration window that has the Shortcut pane selected. 16.) In the Shortcut pane, to the right of the icon thumbnail, press on the textbox that says "exogui.command," and rename it to eXoDOS. 17.) Press the X at the top right of the configuration window to close it and return to the main Steam window. 18.) eXoDOS should be selected in the left-hand pane. In the right-hand pane, right click above the word "eXoDOS." 19.) In the pop-up menu, select Set Custom Background. 20.) In the file selection dialog window, navigate to the eXo/util directory of your eXoDOS collection. 21.) Select exodosvi_cover.jpg, and press the Open button at the bottom right of the window. 22.) In the right-hand pane of the Library tab, right-click on the eXoDOS entry, and from the pop-up menu, select "Manage > Select Custom Artwork." 23.) In the selection window, ensure the filter is set to "All Files (*)," and navigate to the eXo/util directory of your eXoDOS collection. 24.) Select the exodos_logo.png file. 25.) You may now close the Steam Window and return to Gaming Mode. The next steps will be done from there. Opening exogui from Gaming Mode: 1.) Press the Steam button. 2.) Select Library on the left-hand pane. 3.) Select the "NON-STEAM" tab at the top. 4.) Select eXoDOS, and press Play. After doing this, eXoDOS will appear on your home screen under "Recent Games." Configuring touchscreen support: 1.) Open exogui from Gaming Mode. 2.) Press the Steam button. 3.) On the touch screen, press "Controller settings." 4.) If it's still showing a diagram of a controller, press "Controller settings" at the bottom. 5.) Under "Current Button Layout", select "Edit Layout". 6.) On the left-hand pane, select "Action Sets." 7.) Press the gear icon next to Default, and select "Add Always-On command." 8.) Then, next to Always On Command, press on "Add command" button. 9.) At the top of the newly displayed page, select "SYSTEM." Then below that, press "Touchscreen Native Support." 10.) Now go back, and exit out of everything, returning to exogui. Touchscreen support will now work correctly. Making the on-screen keyboard always accessible: 1.) Open exogui from Gaming Mode. 2.) Press the Steam button. 3.) On the touch screen, press "Controller settings." 4.) If it's still showing a diagram of a controller, press "Controller settings" at the bottom. 5.) Under QUICK SETTINGS, press the toggle to "Enable Back Grip Buttons." 6.) From the touch screen, press on a back grip button you would like to use for displaying the on-screen keyboard. If you are right-handed, L4 may be a good choice. If you are left-handed, R4 may be preferable. 7.) At the top of the newly displayed page, select "SYSTEM." Then below that, press "Show Keyboard." 8.) Now go back, and exit out of everything, returning to exogui. The on-screen keyboard will be displayed while the backgrip button of your choice is held down. Adding eXoDOS games as separate entries in Steam: The same procedure to add exogui to Steam can be tweaked to add eXoDOS games as separate entries in Steam. Instead of adding the "exogui.command" file as a non-Steam game, add the command file for launching the game of your choice. Command files to launch specific games can be found in the following locations: eXo/eXoDOS/!dos//.command This will allow you to set a controller profile for specific to just that game. ------------------------------------------------------- Emulators Sec06 ------------------------------------------------------- This collection uses DOSBox, ScummVM, 86Box, GZDoom, and Frotz to play the games. Most of these are installed as flatpaks, although some programs are AppImages. Multiple versions of DOSBox are used to make these games playable. SVN Daum and a few other variants of DOSBox are launched through Wine. Some games also use Wine for Windows tools that help them run. In total, no more than 25 games use Wine at all. If you would like to run a flatpak from the eXoDOS collection independently, you may initiate it with one of the following commands: flatpak run com.retro_exo.abiword flatpak run com.retro_exo.aria2c flatpak run com.retro_exo.dosbox-074r3-1 flatpak run com.retro_exo.dosbox-ece-r4301 flatpak run com.retro_exo.dosbox-ece-r4358 flatpak run com.retro_exo.dosbox-ece-r4482 flatpak run com.retro_exo.dosbox-gridc-4-3-1 flatpak run com.retro_exo.dosbox-staging-081-2 flatpak run com.retro_exo.dosbox-staging-082-0 flatpak run com.retro_exo.dosbox-x-08220 flatpak run com.retro_exo.dosbox-x-20240701 flatpak run com.retro_exo.falkon flatpak run com.retro_exo.gnumeric flatpak run com.retro_exo.gzdoom-4-11-3 flatpak run com.retro_exo.mcomix flatpak run com.retro_exo.mpv flatpak run com.retro_exo.okular flatpak run com.retro_exo.scummvm-2-2-0 flatpak run com.retro_exo.scummvm-2-3-0-git15811-gf97bfb7ce1 flatpak run com.retro_exo.vlc flatpak run com.retro_exo.wine Note that nothing is exported from these flatpaks to prevent them from being added to application menus or overriding existing file associations. 86Box is extracted as an AppImage to the eXo/emulators/86Box directory. The version of DOSBox used by each game in Linux is defined in the eXo/util/dosbox_linux.txt file. For the alternate launcher, the eXo/util/alt_dosbox_linux.txt file defines which version of DOSBox is used. Before editing the above files, keep in mind that different variants of DOSBox format their conf files in different ways. If you create custom flatpaks, note that the ones bundled with eXoDOS are built with "filesystem=host" to ensure game files can be accessed regardless of their location. ------------------------------------------------------- Playing the Games Sec07 ------------------------------------------------------- After downloading the collection, installing the dependencies with "install_dependencies.command", and running "Setup eXoDOS.command", simply run the exogui.command file. You will be presented with a list of all included games. The first time you attempt to run a game it will ask if you want to install it. Subsequent runs will directly launch the game. Initial install may take some time depending on the size (a few of these games are upwards of 8 CDs!). During install you will be prompted to choose whether or not to enforce aspect ratio, full screen or windowed mode, and if you would like to apply a scaler. Scalers can smooth pixels, making older pixelated games look a bit more modern. The default setting is normal2x. If you run the install file a second time, it will ask if you would like to un-install the game. Choosing "yes" will erase the installed files from your disk, but keep the original ZIP file. You will be given an option to keep your saved games. If you choose not to un-install the game you will get the chance to choose full screen or windowed again and another opportunity to change the scaler. To launch a game or its setup from exogui, click on the game to select it, and then click on the 'Install', 'Play', or 'Setup' button in the right-hand pane. ------------------------------------------------------- Creating Desktop Shortcuts Sec08 ------------------------------------------------------- If you would like to create a desktop shortcut to a specific game, open a plain text editor, such as gedit or kate, and create a file with the .desktop extension and the following contents, making changes to the Exec, Icon, and Name lines as appropriate: [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Terminal=false Exec="/home/username/eXoDOS/eXo/eXoDOS/!dos/mi1/Secret of Monkey Island, The (1990).command" Icon=/usr/share/icons/Some Monkey Island Icon.png Name[EN_US]=Secret of Monkey Island Name=Secret of Monkey Island ------------------------------------------------------- Updating the Collection Sec09 ------------------------------------------------------- Note that the update option in install_dependencies.command only updates the dependency installer, not the actual games. To update all other aspects of the eXoDOS collection from exogui, select the eXoDOS entry in your games list and launch eXoDOS Updater from the Additional Resources section of the right-hand pane. Alternatively, you may open a file manager and run: eXo/eXoDOS/Update/update.command The eXoDOS Updater will not only install updates to eXoDOS 6, but also allow you to reconfigure all of the installation options instead of running through the entire setup process over again. ------------------------------------------------------- Current & Future Volumes Sec10 ------------------------------------------------------- Current Releases with Linux Patches: eXoDemoScene Version 1.1 eXoDOS Version 6.04 and Media Pack Add-On eXoDREAMM 3.0.1 Future: Time will tell... ------------------------------------------------------- Troubleshooting Sec11 ------------------------------------------------------- Q: I have XFCE and am using Thunar as my file manager. How can I open command files? A: Executing shell files from your file manager must first be enabled. This can be done by opening a terminal and running the following command: xfconf-query --channel thunar --property /misc-exec-shell-scripts-by-default --create --type bool --set true Q: Is there a video walkthrough for the eXoDOS 6.04 Linux patch? A: https://www.youtube.com/watch?v=qeCSkxFjn20 - This video has outdated information, but new and more concise videos will be created in the future. Q: When I run a game it says it is missing. Why? A: If you downloaded the full set, then make sure you actually downloaded every file. If you downloaded the Download on Demand set, then it should ask if you want to download the game. Q: The setup says dependencies are missing. What's wrong? A: Please follow the instructions in the Setup section of this document carefully. Q: The dependencies are not successfully installing. Why? A: Please ensure that you are using a distribution that is supported. If more help is needed, feel free to make ask in our Discord. Q: exogui is not starting. A: If all of your files are in the correct location and with the correct permissions, this could be due to a missing a required library. From a terminal, you can get information on the libraries used by exogui by running ldd ./exogui/exogui from the root directory of the collection. If this problem is encountered, please reach out to us in the #linux_port_for_nerds channel of our Discord server. Q: The dependency installer is giving an error saying the sudo command is not found or my account is not in the sudoers file. A: Open a terminal window and do the following: #Change to the root user and enter the root password: su #If sudo is not installed, install sudo. Assuming this is Debian we'll use apt; if it is a different distro, use the appropriate package manager. apt install sudo #Now, edit the sudoers file to give your account sudo permissions. visudo #If visudo does not open the sudoers file, run: nano /etc/sudoers #After the text file opens, add the following line to the end, substituting USERNAME with your username: USERNAME ALL=(ALL:ALL) ALL #Save, exit, and then rerun the dependency installer. Q: I recently ran some Linux updates, and now the games are failing to launch. A: Rerun the dependency installer. The most common cause of this is flatpak needing new support files to match updated video drivers. Q: How can I run this on a Raspberry Pi? A: We do not currently support ARM devices at this time. To add support, ARM versions of the Flatpaks would need to be created, which would require someone with advanced Linux experience and a Raspberry Pi. It would likely involve editing flatpak manifests. If anyone would like to attempt building ARM flatpaks to add Raspberry Pi support, the following Reddit thread may help: https://old.reddit.com/r/dosgaming/comments/1fascg2/exodos_on_raspberry_pi_os/llwx654/ ------------------------------------------------------- Development Tools Sec12 ------------------------------------------------------- If you are not doing development work to port an eXo collection or convert new games, this section should be ignored. Two files have been included to assist in the porting of additional games and collections to Linux. ./eXo/util/converter.bash - This file should not be executed directly. It is used by other scripts to convert bat files to bash. ./eXo/util/regenerate.bash - When launched from a terminal, this will begin a conversion process of all unzipped files. If porting a new collection, changes to both scripts will likely be necessary. Before running the regenerate.bash script, ensure the extracted Windows files are in their correct post-installation locations. The converter is not perfect. Changes to the converter.bash script will be necessary if a batch file does not convert properly. If the converter.bash script is changed, all converted files should be audited to ensure no regressions broke previously working conversions. Also be aware that the Linux filesystem is case sensitive. While fixes for previous case inconsistencies have been left in the script, any new case problems will break game functionality. Finally, these scripts do not add required additional support files, nor do they create Linux zip files. All files must be packaged correctly to prepare for a release. More detailed documentation will be provided on the https://wiki.retro-exo.com/index.php/Linux_Patch page. ------------------------------------------------------- Contact & Thanks Sec13 ------------------------------------------------------- If you have questions, media, games to add, or other concerns about the Linux patch, please ask in the #linux_port_for_nerds channel of our Discord. You can join the eXoDOS Discord server at this link: https://discord.gg/37FYaUZ or the link on the official site: https://www.retro-exo.com/community.html The Linux patch has been developed and maintained by parricc. Special thanks to the following for helping make the Linux patch become a reality: jelcynek - For development of the exogui frontend. We had been searching for a frontend volunteer for over a year. Colin - For work on the original Flashpoint Launcher from which exogui was forked, and then volunteering to add many needed features to exogui. parkerlreed - For bringing attention to Flashpoint Launcher being an excellent candidate for a frontend fork. Sunie, remowilliams, bradgy, and Sämbyl - For providing excellent bugtesting feedback. All others that volunteered to assist in any way. Most importantly, thank you to the folks at the eXoDOS Discord who have helped shaped this release into something more than just a personal project. ------------------------------------------------------- Merging eXo Packs Sec14 ------------------------------------------------------- eXo Projects can be merged into a single exogui/LaunchBox install, or into an existing installation. While there are several ways to do this, the "easiest" method usually depends on what you are working with. If you have no eXo Projects currently installed, the recommended method is to place the files for all of the projects you want in the same folder. You should have a "Content" folder and an "eXo" folder in each pack, and the contents of these folders can be placed in the same location. When you run the setup file, it will detect the other packs and install them. If you have a pre-existing exogui/LaunchBox set up, or a pre-existing eXo Project already set up, and you would like to merge a new pack into it, then I recommend the eXoMerge.command file, found in the root folder. You run this file in a terminal with two parameters, the FROM folder (project to be copied) and the TO folder (the existing project). It will copy over all necessary files for you. It is important that exogui *not* be running during this process. A youtube video can be found which details the process of a merge. https://www.youtube.com/watch?v=zOFbuOZ-iyw