An open API service indexing awesome lists of open source software.

https://github.com/paulschulze1337/american-truck-simulator-dedicated-server-guide

A Guide to install und run American Truck Simulator Dedicated Server on Linux x64
https://github.com/paulschulze1337/american-truck-simulator-dedicated-server-guide

american-truck-simulator ats dedicated-server guide server steamcmd ubuntu-server

Last synced: 2 months ago
JSON representation

A Guide to install und run American Truck Simulator Dedicated Server on Linux x64

Awesome Lists containing this project

README

          

# American Truck Simulator (ATS) dedicated server guide for Linux
Useful links:
- Official guide to ATS Dedicated Server: https://modding.scssoft.com/wiki/Documentation/Tools/Dedicated_Server
- American Truck Simulator at [Steam](https://steamcommunity.com/app/270880)
- (unofficial) ATS Dedicated Server at [SteamDB](https://steamdb.info/app/2239530/info/)

## Prerequisites:
- Install a suitable Linux distribution (Ubuntu 24.04 LTS headless was tested for this guide)
- Note: This guide assumes that you know how to install and operate a secure linux server.
- Install SteamCMD [(see the official guide)](https://developer.valvesoftware.com/wiki/SteamCMD)

## Installation steps:

### Prepare libs and config:
- run as some **sudo**-user:

```bash
sudo apt update && sudo apt upgrade -y
```

(Optional: These should be configured when you install `steamcmd`)
```bash
sudo add-apt-repository multiverse; sudo dpkg --add-architecture i386; sudo apt update
```

- install needed dependency for ARS Dedicated Server
```bash
sudo apt install libatomic1
```

### Install the dedicated server:

```bash
sudo -u steam -s && cd ~
```

- run as `steam` user:
```bash
mkdir -p /home/steam/Steam && cd /home/steam/Steam
```

```bash
./steamcmd.sh +login anonymous +app_update 2239530 validate +quit
```

- the first startup of the server will create necessary config files:
```bash
cd ~/Steam/steamapps/common/American\ Truck\ Simulator \ Dedicated\ Server/bin/linux_x64/ && ./server_launch.sh
```

Note: all config files can be found in: `~/.local/share/American Truck Simulator`

- You need to copy the config files `server_packages.dat` and `server_packages.sii` from your local game into the folder `~/.local/share/American Truck Simulator` of the server. See this [guide](https://modding.scssoft.com/wiki/Documentation/Tools/Dedicated_Server#How_to_export_server_packages) for more details.

- Adjust the main config file to your needs:
```bash
nano ~/.local/share/American\ Truck\ Simulator/server_config.sii
```

- start the server:
```bash
cd ~/Steam/steamapps/common/American\ Truck\ Simulator \ Dedicated\ Server/bin/linux_x64/ && ./server_launch.sh
```

## Update the server
- run as `steam` user:

```bash
sudo -u steam -s
```

```bash
/home/steam/Steam/steamcmd.sh +login anonymous +app_update 2239530 validate +quit
```

## (optional) Adjust firewall settings
```bash
sudo ufw allow 27015
sudo ufw allow 27016
sudo ufw reload
```

## (optional) Create a systemd service for the server
```bash
sudo nano /etc/systemd/system/ats.service
```

- copy the following snippet into the new file:
```/etc/systemd/system/ats.service
[Unit]
Description=American Truck Simulator Dedicated Server
After=network-online.target
Wants=network-online.target

[Service]
User=steam
Group=steam
Environment=HOME=/home/steam
Environment=USER=steam
WorkingDirectory=/home/steam/Steam/steamapps/common/American Truck Simulator Dedicated Server/bin/linux_x64
ExecStart="/home/steam/Steam/steamapps/common/American Truck Simulator Dedicated Server/bin/linux_x64/server_launch.sh"
KillSignal=SIGINT
TimeoutStopSec=30
Restart=on-failure
RestartSec=5
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
```

- enable and start the service:
```bash
sudo systemctl enable ats
sudo systemctl daemon-reload
sudo systemctl start ats
sudo systemctl status ats
```

# License
Copyright (c) 2025 Paul Schulze. This project is licensed under the [MIT LICENSE](LICENSE)