Airgoons
Ka50goons.jpg BMS.png
DCS.png

DCS on linux

From Airgoons
Revision as of 20:59, 18 April 2026 by Snapshot (talk | contribs) (Initial upload, WIP. Photos of interfaces not complete, links not complete, some code tags for commands etc are not complete.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DCS in Linux with VR

By: Breaky / airgoons discord

Preamble

What this is: A guide to how I got DCS installed in linux and working on my hardware with my setup.

What this isn’t: A comprehensive guide explaining how this will work with different linux distros, different types of CPU and GPUs.

My installation conditions: CachyOS-KDE Plasma with default setup options including all game-related packages. AMD 9900x3d CPU, Nvidia RTX5090 GPU. 2 NVME drives, one harbors the root OS, the other is mounted on /opt/gaming and all DCS and Steam install libraries are on that drive. HOTAS controllers are all Virpil. VR headset is a Meta Quest3. I installed a program in cachyOS called “bauh” which is a graphical software installer that I prefer; please use whatever method of install works best for you. Package manager managment is outside the scope of this documentation. This install works for standalone DCS only and has not been tested for native Steam DCS clients.

Assumptions: That you have some basic familiarity with the linux command line and have used linux at least a small amount.

Disclaimer: I am not well versed in linux, so this guide may have some errors obvious to some. Credit for ideas out on the web are generally linked within the guide, all other thanks go to the massive time and effort from users of the airgoons discord.

Summary

This install starts with installing DCS in Lutris, then installing DCS-SRS in Lutris and adding your other DCS mods into this Lutris install. Next you will install WiVRn on the desktop and your VR headset to use openXR on the quest3. Then you will add Lutris-DCS to Steam as an external game, creating Steam-DCS (not the native client steam DCS). From here you will have several parameters to set and then copy elements of the Lutris-DCS install over to the Steam-DCS install. Once set you can run SRS from Lutris and DCS from Steam and should be able to play in VR in multiplayer with functioning mods and SRS.

DCS Installation (Lutris)

Editor's note: ChaosRifle's DCS-on-linux instructions have been updated since this documented install, but it hasn't been tried by anyone on the Airgoons discord.

This section largely follows ChaosRifle's guide and following settings for Lutris from the cachyOS wiki. NOTE - For Lutris to add a game there's a little + icon at the very top left of the entire program, you have to press this to add a game, it's a bit easy to miss and not intuitive.

  1. Add new wine runners to Lutris: To do this install protonUp-Qt from bauh, run the program, “Install for:” dropdown and select Lutris, hit “add version” and find “GE-Proton9-27” and install, this is one of the “known runners” described in the guide.
  2. Select lutris DCS installer: I installed the “DoL Community Choice” version after searching ‘DCS’ in the Lutris store and followed the remaining instructions. This will install with the --no-launcher argument enabled by default. This can be removed by Rclick on DCS in Lutris, in the “Game Options” tab, remove this argument if you want the launcher. In Lutris Rclick on DCS, click “Configure” and set each tab as in the photos below:
  3. Add DCS update/repair functions to lutris: Next you need to install separate Lutris installs for both the DCS Repair and DCS Update exe files.
    1. Go to lutris, click the + to add new game, select as below:
    2. Make a new directory for the “game” dcs updater
    3. Navigate to your installed DCS path under its wine prefix (drive_c here)
    4. Once installed in Lutris go back and Rclick on DCS Updater, and hit the Game Options tab, input the executable as the DCSUpdate.exe within the original DCS install like below. Also be sure the “Runner Options” tab uses the same runner you used for the DCS main install. Also add “update” to the arguments field in Game options as below:
    5. Once done you need to set up a similar function for DCS - Repair. In Lutris, Rclick on the DCS Update tile in your library, click on “Duplicate” then change the name to DCS Repair in the Game Info tab, and in the Game options tab change the Argument field from “update” to “repair”.

Controller Configuration

Note - you will need to do this same step for SRS once installed in lutris in the next section, so refer back here for that. ALSO, your HOTAS may not require this step at all, or may require more than is described here.

  1. Open Lutris, select the DCS World install, and click on the dropdown(dropup?) menu at the bottom of the screen next to the wineglass as below and select “Wine Control Panel”.
  2. This will open up a windows file manager panel, select the “Game Controllers” Icon. Select the controller in the “Connected (xinput device)” and hit “Override”. Click on the DInput tab and select each controller and it should show the appropriate number of buttons.

SRS Installation (Lutris)

Editor's note: this is the prior version that worked with linux and was compatible with Breaky's install. ChaosRifle's DCS-on-linux instructions contain the current version (2.3.4 as of 26-04-18)

  1. Download SRS 2.1.1.0.zip from ciribob's github. It’s important to use this SRS version and NOT update it as it will break compatibility. Extract this zip into somewhere you can find for later.
  2. Open Lutris and hit the + button to install a new game, select the “Install a Windows game from an executable” option as you did for DCS-updater. Set the game name to what you like and hit Install. You will be prompted to input the installation directory, browse to where you extracted the SRS “Installer.exe” file and click “Install”. You will then get the below dialogue:
  3. Leave the upper field alone, hit “Locate” on the 2nd box, from there you will need to navigate to find the path where DCS was installed, within that the wine prefix “\drive_c\” should be present, and its just an emulation of a windows install so go to users, find your username (breaky for mine here) and click on Saved Games, do not include the “DCS” folder that will be within that. Click “install/update”. It should finish installation.
  4. Next go to Lutris, Rclick on the SRS install in your games library, click on the game options tab, navigate to the folder you installed SRS into, it now has a wine prefix also, navigate to the SR-ClientRadio.exe file and save.
  5. Next go to the “Runner Options” tab, and select the wine version as below
  6. Save and then run from Lutris, This will immediately prompt you to update SRS, hit no or ignore, do not update SRS.
  7. You may have issues if you bind your SRS keys to your HOTAS. If this is the case you will need to update your controllers identically to the method described above for the DCS controller configuration except start the process from the Lutris SRS install instead of DCS.

DCS Mods

I would suggest installing all DCS mods into the lutris install path, for my install this was:

/opt/gaming/dcs-world/drive_c/users/breaky/Saved Games/DCS/Mods

VR Setup (WiVRn)

Instructions in this section are mostly cribbed from this video as well as the instructions withinthe WiVRn app itself.

  1. Install WiVRn on your desktop through bauh or your software installer of choice. IMPORTANT - install the flatpak version of WiVRn, not others.
  2. Install WiVRn on the Quest3, there are several methods for this, easiest for me was to use the Meta Horizon app on my phone and push the install directly to the Quest3.
  3. In Bauh or other software installer, install “opencomposite” (only one option for this in bauh). Next install “android-tools”. In the terminal type “adb” and run.
  4. You need to open ports on the desktop to communicate with the VR headset, these are ports 5353 (UDP) and 9757 (TCP and UDP). More than one way to do this, for me in the terminal I typed:

sudo iptables -A INPUT -p udp --dport 5353 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 9757 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 9757 -j ACCEPT

  1. Open the desktop WiVRn app and the same in the Quest 3. If you are using a link cable you can connect it in the WiVRn server screen, if not then the headset and desktop need to be on the same network / wifi. Note the “Connect by USB” if you choose to and save the “Steam Information” string in the box there for later.
  2. WiVRn should be working, there are many guides for WiVRn installation and setup available if you run into issues here. You can test WiVRn here via Steam with a known VR game title (free ones on steam for download).

DCS Installation (Steam import)

This is partly cribbed from a slightly difficult to hear/ see video with other addons afterwards by me to get mods and SRS functional.

  1. Ensure you have protontricks running by typing it in your start menu and running the program. If you do not have it installed in the terminal run: sudo pacman -S protronup-qtsudo pacman -S protronup-qt
  2. Add the Lutris installed DCS.exe to steam by adding a non-steam game to steam (this is easy to find elsewhere). The DCS.exe path for my install was:
    /opt/gaming/dcs-world/drive_c/Program Files/Eagle Dynamics/DCS World/bin
  3. Once DCS is in your library, Rclick on it in the library page, click “Properties” and add the below to “Launch Options” WINEDLLOVERRIDES='wbemprox=n' %command%
  4. Under “Compatibility” in the same Rclick menu click the checkbox for “Force the use of a specific Steam Play compatibility tool” and select “Proton Experimental”. Important - start the game in steam at this point, you must do so to build directories needed for later. This will display a black screen and freeze, close out the DCS.exe and continue.

Go to this github site and download the “options.lua” file. Navigate to your steam saved games path, mine was here:
/home/breaky/.steam/steam/steamapps/compatdata/3284902159/pfx/drive_c/users/steamuser/Saved Games/DCS/Config
Note that this has a hidden directory “/.steam/” so you’ll need to be able to navigate to that, in the config directory, copy in the options.lua file you downloaded. I had an options.lua already there so I replaced it. Also note the numeric string there is dependent upon your own Steam-DCS install so it will be a different number here and also in ProtonTricks. If you can't find the numeric string just run ProtonTricks and it will bring up a list with the numbers and the steamgame exe they are associated with.

  1. Open Protontricks, select DCS install. You’ll get multiple errors clicking on this, just accept for each and you should get a Protontricks menu afterwards. Select “default wine prefix” then “Select windows DLL or component”. Then scroll down the list and select the following: d3dcompiler_43, d3dcompiler_47, d3dx11_43, dxvk You’ll have to OK through a bunch of “successfully registered DLL” things after OK’ing through protontricks warnings / errors. IMPORTANT - You’ll get error messages again like when starting protontricks, be careful clicking through one of them is a download step, make sure it has time to download (I was unable to see a loading indicator on my ProtonTricks install unlike the video, so I just waited ~3 mins after the 1st two notification/error boxes once one came up that listed the github filename). Once finished it will go back to the Protontricks menu to select options, just cancel out of ProtonTricks and get back to steam, Run DCS and you should get a login screen and be able to load the game in 2D mode.
  2. Next we need to copy our DCS folder with all the mods and SRS script from Lutris into our Steam-DCS folder. Find the paths to both of these, for mine Lutris was:
    /opt/gaming/dcs-world/drive_c/users/breaky/Saved Games/DCS
    and Steam-DCS was:
    /home/breaky/.steam/steam/steamapps/compatdata/3284902159/pfx/drive_c/users/steamuser/Saved Games/DCS
    When you copy the Lutris DCS over, just overwrite anything in the Steam-DCS folder.
  3. Repeat step 5 and add the “options.lua” file back to your steam-DCS folder. Start SRS in Lutris. Launch Steam-DCS now and verify if you have an SRS popup in the main DCS menu and if DCS-SRS is in the installed mods ribbon at the button. Also check this ribbon to ensure that your desired mods are installed.
  4. With Steam in DCS running, go to Settings>VR tab, select “Enable VR headset”, “Use DCS System Resolution” and “Crop to Rectangle” under the “Mirror Eye Source” selection. Make sure “enable HMD mask” is unselected then hit OK. This will restart DCS.
  5. To use WiVRn, you have to add another launch argument, with DCS closed, start the WiVRn launcher on your desktop, it will give you the following text to copy:
    PRESSURE_VESSEL_IMPORT_OPENXR_1_RUNTIMES=1 PRESSURE_VESSEL_FILESYSTEMS_RW=/var/lib/flatpak/app/io.github.wivrn.wivrn %command%
    This needs to be added to the DCS launch arguments in steam. You already set one argument in step 3 above and have seen the WiVRn arguments in the VR setup step 5. Here you’re combining those arguments together and pasting the below into the “Launch Options” for the Steam-DCS exe in steam.
    WINEDLLOVERRIDES='wbemprox=n' PRESSURE_VESSEL_IMPORT_OPENXR_1_RUNTIMES=1 PRESSURE_VESSEL_FILESYSTEMS_RW=/var/lib/flatpak/app/io.github.wivrn.wivrn %command%
  6. Start WiVRn in your desktop and headset, ensure that they connect then start LutrisSRS, then start Steam-DCS. This should pull the DCS menu into VR. From there start your controller binds as well as login to a multiplayer server and ensure that SRS connects. You may notice that some of your HOTAS buttons don’t register or let you bind them. If so see the next section.

Controller Configuration

You may need to adjust Steam-DCS to see all the buttons on your HOTAS. This is similar to what we did for DCS and SRS in lutris, but you have to access that menu a different way. Refer to the DCS-Lutris controller configuration section for details as well.

  1. Run Protontricks and select the prefix for the Steam-DCS install:
  2. Run Explorer, then when it opens a windows file manager click on, My Computer>Control Panel>Game Controllers. Select any devices in the Xinput devices box, click Override, hit OK. This part is identical as described to how you set up keybindsfor Lutris-DCS and Lutris-SRS other than how you initially get into the windows file manager.

Setting Discord PTT

  1. Using Bauh or other software manager, install “AntimicroX” and run.
  2. In AntimicroX you should see your HOTAS devices and with the one you want selected the buttons will light up in the display. Binding keys from here was intuitive so I won’t go into detail, just bind a keyboard combination you prefer for PTT and set that to a HOTAS button you prefer. In Discord, use the keyboard combination for your PTT binding. Be sure AntimicroX is running when discord is.

Issues of Note / In progress fixes

Nvidia Driver Upgrade breaking VR

Newest cachyOS Nvidia related updates broke VR, getting the drivers to rollback is difficult. I am trying to downgrade just the drivers following this post. Specifically running the following seemed to work downgrade nvidia-utils lib32-nvidia-utils opencl-nvidia nvidia-dkms lib32-opencl-nvidia However it did note in the terminal to add things to IgnorePkg which might cause issues later.

Intermittent Crash Issue

I have noticed that the DCS client crashes roughly every 20-40 minutes, I have not seen any real pattern yet to this. Airgoons discord thinks it may be related to pagefile size as happens for windows DCS installations. I will have to figure how to fix this for a wine installation.

Notes and links below from others that may be of use: https://wiki.cachyos.org/configuration/gaming/#increase-maximum-shader-cache-size I tried setting the shader cache to 12gb first using this method. https://forum.dcs.world/topic/196924-how-to-set-up-your-pagefile-for-dcs-world/ Pagefile information is stored in the following registry key as a "multistring": HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles There is one line for each page file, the format is <location> <initial size> <maximum size> e.g. C:\pagefile.sys 125 250 D:\pagefile.sys 64 128