This project aims to simplify the management of SCS Dedicated Servers for American Truck Simulator (ATS) and Euro Truck Simulator 2 (ETS2) on Linux.
You must have SteamCMD and the ETS2 and/or ATS Dedicated Server installed via SteamCMD.
If you haven't done this yet, please refer to the official documentation:
- Download and unzip the files.
- Copy the scripts to
/usr/local/bin/(administrator permissions required). - You will then have instant access to the new commands from any terminal.
Note: Do not clone the repository directly into /usr/local/bin/.
- Download or clone this repository to your home directory (e.g.,
/home/{user}/ts-servers-tools) or any preferred location. - Add the folder to your
PATHenvironment variable:- Open a terminal.
- Identify your shell configuration file (
.bash_profile,.bashrc,.zshrc, or.profile). Usels -a ~to check which files exist. - Edit the file with a text editor (e.g.,
nano .bashrc). - Add the following line, replacing
/path/to/ts-servers-toolswith the actual path:export PATH="/path/to/ts-servers-tools:$PATH" - Save and close the file.
- Restart your terminal for the changes to take effect.
After installing the scripts, ensure you have the necessary configuration files as described in the SCS Dedicated Server documentation to start the servers.
If you want to run a server for each game (ATS and ETS2), you must configure different ports for each one.
You will also need to open the required ports as described in the SCS documentation.
If your server is behind a router or firewall, you may also need to configure port forwarding as described in the SCS documentation, so that external players can connect to your server.
Both opening the required ports and setting up port forwarding (if applicable) are necessary for others to connect from outside your local network.
-
ats-server/ets2-server
Start the ATS or ETS2 server. -
ats-server-stop/ets2-server-stop
Stop all running ATS or ETS2 servers. -
ats-server-restart/ets2-server-restart
Stop all running ATS or ETS2 servers and start a new server for the same game. -
ats-server-log/ets2-server-log
Display the ATS or ETS2 server log. -
ts-servers
Start both servers, one for each game (ats-server+ets2-server). -
ts-servers-stop
Stop all running ATS & ETS2 servers (ats-server-stop+ets2-server-stop). -
ts-servers-restart
Stop all running ATS & ETS2 servers and start a new server for each game (ats-server-stop+ets2-server-stop, thenats-server+ets2-server).