Jump to content

Install TruckersMP Launcher on Linux


Recommended Posts

Hello Tux🐧 users!

 

The TruckersMP Team get questions about Linux support, however, supporting another platform is not an easy task, and because of this, the mod isn't supported on Linux distributions. However, there is a workaround to install and use TruckersMP with some tools.

 

DISCLAIMER: This is not an official support article, and TruckersMP Team cannot assist you if any problem occurs. Also, keep in mind, that the steps are not harmful to your installation, but if you mess up, I'm not responsible for any action you have done. 

 

Getting Started

 

Linux Distro compatibility

 

This forum post should work on any Linux distro, but because I can't test that on every variant of OSes, I can't guarantee that your installation will work instantly after you follow the steps. In that case, please leave a comment, and I'll help you, and post the solution in this post.

 

The tutorial should work on:

  • Debian-based distros (Ubuntu, Linux Mint, Pop_OS, elementaryOS, etc)
  • Red Hat-based distros (Fedora 39 is working well, I tested that)
  • Arch-based distros (Yes, it should work on Steam Deck as well)

 

In this post, I'll use Fedora 39 for a reference.

 

Necessary packages

 

Luckily, there is a tool called truckersmp-cli, which gives a list of necessary packages for us. However, the post is not about that tool, but for more advanced users, I can recommend messing around with it.

 

You will need the necessary packages to install the mod on your system:

  • Steam (Flatpack version should work, too!)
  • steam-devices (for controller support)
  • SDL2
  • Wine (Installing Lutris should give all the necessary files for you, and also a good tool to add other games from Windows-only stores, like Epic Games)

 

Updating your system

 

Before you do anything, make sure your operating system is up-to-date. To do that, follow the commands below:

 

For Debian-based distros:

sudo apt update && sudo apt upgrade

 

For Red Hat-based ones:

sudo dnf update

 

For Arch-based one:

sudo pacman -Syu

 

Install the necessary packages

 

If you already have the packages, then you can skip this part.

 

For Debian-based distros:

sudo apt install steam steam-devices wine sdl2

 

For Red-Hat based ones:

sudo dnf install steam steam-devices wine SDL2.x86_64

 

For Arch-based one:

yay steam steam-devices wine sdl2

 

There is a chance, that you need to alter the command a little bit or use other commands to install the packages. 

 

Setting up Steam and the games

 

The TruckersMP is not working with Linux binaries, so you need to use the Windows version of the game. To do that, we will use Proton:

  1. Open Steam
  2. In the left corner, click on Steam -> Settings -> Compatibility
  3. Enable Steam Play for all other titles
  4. Restart Steam

 

Then go to your Library and do the following for ETS2/ATS:

  1. Right-click on the game -> Properties -> Compatibility
  2. Force the use of a specific Steam Play compatibility tool
  3. Select Proton Experimental

 

If you have already installed the game, then Steam will download it again with the necessary Windows binaries. If not, then you can install the game now.

 

You will need the location of the game to make the launcher work.
Locating the game folder:

  1. Right-click on the game -> Properties -> Installed Files -> Browse
  2. Copy the location of your game installation

 

Mine loos like this:

/home/<username>/.local/share/Steam/steamapps/common/Euro Truck Simulator 2/

 

You will need that later.

 

Install TruckersMP Launcher

 

This is where wine comes in. Without wine, you can't run .exe files on your Linux distro, so with this compatibility layer, you can do that too! Go to the TruckersMP website and download the launcher installation: https://truckersmp.com/download 

 

After you download the file, open the terminal, and navigate to the downloaded file. You can use the cd command to navigate to the Downloads folder:

cd Downloads

 

Then, run the TruckersMP-Setup.exe file with wine like this:

wine TruckersMP-Setup.exe

 

A window will pop up that will say Wine setting up itself. If it asks you to install stuff, just say yes and proceed. We only use Wine to extract the necessary files for us, so the launcher won't start with it, in the terminal, this is what you get:

gBKrxa3.png

Simply just press Ctrl + C and ignore this error message. 

 

Add the Launcher to Steam

 

After that, we will use Steam Proton, to simply launch the mod you need to follow these steps:

  1. Open Steam
  2. In the left corner: Add a Game -> Add a Non-Steam Game...
  3. A new window popped up, simply click on Browse...
  4. Click on your home directory
  5. The launcher is installed in a hidden folder, you need to press Ctrl + H to unhide the files and folder
  6. Mine is installed here: /home/<username>/.wine/drive_c/users/<username>/AppData/Local/TruckersMP/
  7. Select TruckersMP-Launcher.exe

 

After that, you need to go to your Library and do the same steps you had to do for ETS2/ATS as well in the Compatibility tab.

 

Start the Launcher, and change the settings

 

Open the launcher in Steam with the big green PLAY button. You will get the following:

cAub8Pf.png

 

Don't worry that's why we located the game's location. Go to Settings, and change the game's path to the following:
Z:\<games-path> of ex.: Z:\home\<username>\.local\share\Steam\steamapps\common\Euro Truck Simulator 2

 

oycqDTa.png

 

Important! You will need to use backslash "\" instead of slash "/". This is a necessary step to take!

 

After that, click on Save, and go back to "Play". Download the updates, and it should look like this now:

 

 DqQkvWg.png

Last Step: Enjoy!

 

Simply, press the play button, and the game should start without any problem.

 

yI9XgK4.png


What is working?

 

The following things are working without any issues:

  • Euro Truck Simulator 2
  • American Truck Simulator
  • Xbox Game Controller
  • Steam Overlay
  • DirectX11

 

Things which should work but haven't been tested:

  • Season Mods
  • ProMods
  • Client Themes

 

Things are not working at that moment:

  • Plugins, like job trackers (Needs redis files, still haven't figured out how to install them)

 

For any issue, please leave a comment, and we will figure out. If you have solutions for us, feel free to share here, and I'll try to add some of them into the main post.

 

I hope this forum post will help you, and finally you can enjoy the game on your favorite Linux distribution!

  • Upvote 3
  • Woah! 9
  • Awesome! 1

----------------------------------------------------------------------------------------------

🇬🇧 Rules Support Feedback | Guides Ban Appeal 🇬🇧

🇭🇺 Szabályzat Támogatás | Visszajelzés | Tudásbázis Fellebbezés 🇭🇺

----------------------------------------------------------------------------------------------

TruckersMP

role_Support.png.ad716e35768b3c7e90fca2d

----------------------------------------------------------------------------------------------

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...
Posted (edited)

I use the Steam Flatpak, and I want to emphasize that I'm not an expert in Linux. This is my approach, and perhaps it can be of assistance or inspiration. There's no need to adhere strictly to my suggestions.

 

I encounter issues running the MP Setup because Wine or Proton consistently runs as a Windows Administrator, resulting in an error message prompting me to "re-run this installer as a normal user instead". To overcome this, I installed the component in a Windows VM and then retrieved the necessary files from %localappdata%\TruckersMP , transferring them to the following directory on Linux: /PathToSteamFolder/steamapps/compatdata/227300/pfx/drive_c/users/steamuser/AppData/Local/ .

 

In the Original Game's Launch Options (Properties/General), I added the following line:

PROTON_LOG=1 "/PathToSteamFolder/steamapps/common/Proton 9.0 (Beta)/proton" waitforexitandrun "/PathToSteamFolder/steamapps/compatdata/227300/pfx/drive_c/users/steamuser/AppData/Local/TruckersMP/TruckersMP-Launcher.exe" && echo %command% > /dev/null

 

This method is rather convoluted and consistently triggers multiplayer mode when launching the original game from Steam. Consequently, it won't function offline. Perhaps it's advisable to refer to the guide provided in the original post. However, there's a chance this process may spark ideas for someone else.

 

If launch successful, navigate to the Z: disk to locate the game folder, as mentioned in the original post, and you're all set.

BTW😜, I believe it's more beneficial for both the game and multiplayer functionality not to be buried deep within directories. I've placed them in /home/user/games/steam/ with appropriate permissions set using Flatseal, as opposed to /home/user/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/ .

 

Edited by Casatack
I don't know English, for real.
  • HaulieThumbsUp 1
Link to comment
Share on other sites

  • 2 weeks later...

I am trying to do this with Fedora 40 and I have Wine 9 and the launcher won't install.

 

I get a popup error saying the installation has failed and in the terminal it states:

 

0174:err:module:import_dll Library iconv.dll (which is needed by L"Z:\\usr\\share\\wine\\mono\\wine-mono-9.0.0\\bin\\libmono-2.0-x86_64.dll") not found
0174:err:mscoree:load_mono Could not load Mono into this process

 

Edit: I realize now my mistake, i am looking for iconv.dll, not libmono. however, this still begs the question: how do i fix iconv.dll?

Link to comment
Share on other sites

  • 1 month later...

Hey, this guide worked great for me except for one thing:
 

OS: openSUSE Tumbleweed
 

Unfortunately I can't join a promods server. I just downloaded and installed all the latest promods a few days ago. In single player everything works fine, and I can join servers without mods without any problems.
When I try to join a Promods server, I get an error message saying there are missing mods or that I have the wrong mods installed.
 

Has anyone encountered the same problems and been able to fix them?

Link to comment
Share on other sites

Posted (edited)

First I had a problem with .NET installation and now I can't run the installer because I can't run it as a normal user. I don't know how to do it. Can someone help please?

image_2024-07-02_153725246.png
!!! After 2 days i found the solution! Just to launch use this command instead of wine <executable>: wine start <executable>

Edited by zwyklosoba
Solution found
Link to comment
Share on other sites

On 6/28/2024 at 6:08 PM, Lennuk said:

Hey, this guide worked great for me except for one thing:
 

OS: openSUSE Tumbleweed
 

Unfortunately I can't join a promods server. I just downloaded and installed all the latest promods a few days ago. In single player everything works fine, and I can join servers without mods without any problems.
When I try to join a Promods server, I get an error message saying there are missing mods or that I have the wrong mods installed.
 

Has anyone encountered the same problems and been able to fix them?

 

I unfortunatly currently experience the same problem. I've installed Promods and it works in normal ETS, but I can't join the TruckersMP server.

Link to comment
Share on other sites

5 hours ago, FQQD said:

 

I unfortunatly currently experience the same problem. I've installed Promods and it works in normal ETS, but I can't join the TruckersMP server.

 

On 6/28/2024 at 6:08 PM, Lennuk said:

Hey, this guide worked great for me except for one thing:
 

OS: openSUSE Tumbleweed
 

Unfortunately I can't join a promods server. I just downloaded and installed all the latest promods a few days ago. In single player everything works fine, and I can join servers without mods without any problems.
When I try to join a Promods server, I get an error message saying there are missing mods or that I have the wrong mods installed.
 

Has anyone encountered the same problems and been able to fix them?

 

The reason for this is simple, the base game and TruckersMP Launcher use different prefix folders, you need to insert the mods into the folder where the TruckersMP Launcher Proton prefix folder is located. 

I'll post a more detailed fix, but if I give a clue for you until that, I'm glad I was able to help.

 

----------------------------------------------------------------------------------------------

🇬🇧 Rules Support Feedback | Guides Ban Appeal 🇬🇧

🇭🇺 Szabályzat Támogatás | Visszajelzés | Tudásbázis Fellebbezés 🇭🇺

----------------------------------------------------------------------------------------------

TruckersMP

role_Support.png.ad716e35768b3c7e90fca2d

----------------------------------------------------------------------------------------------

Link to comment
Share on other sites

Hello!

 

First of all thanks for the tutorial.

Linux user trying to get it working too.

I managed to play Promods on TruckersMP after I stumbled on this tutorial:

Check it out, a bit different approach, using Steam Tinker Launch

Anyways, following this closely to see how it gets better over time, hopefully.
 

 

  • Awesome! 1
Link to comment
Share on other sites

  • 2 weeks later...

I'm getting Steam not opening error in Truckers MP; Before starting the game, log in to Steam and ignore this notification. I press the Play button and it tells me this. Please wait before restarting. If I don't open Truckers MP, it won't open again.resim.thumb.png.f436cc5fc6c20f29c685a1a6c2594138.png

Is there a way to fix this

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.