Introduction
Install and configure the Teamspeak server software and start a service to run the software in the background.
Prerequisites
- Linux or Windows server (dedicated, KVM or LXC)
- Root/administrator rights in the system
- A Linux compatible system
Step 1 – Preparation
Steps for Linux systems
Create a new user that the Teamspeak server will need to run in the context of later.
root@your_host:~# useradd -m -s /bin/false ts
Steps for Windows systems
Installing NSSM (Non-Sucking Service Manager) will later register the Teamspeak server as a Windows service.
Then simply open the downloaded ZIP file and navigate to a folder appropriate to your server architecture.
Here you can easily nssm.exe in C:\Windows\System32\ Copy.
This completes the NSSM installation.
Step 2 – Install Teamspeak software
Steps for Linux systems
To install, the following steps must be performed on the system:
root@your_host:~# su --shell /bin/bash ts
ts@your_host:~$ wget -P /tmp/ https://files.teamspeak-services.com/releases/server/3.6.1/teamspeak3-server_linux_amd64-3.6.1.tar.bz2Open the downloaded archive.
ts@your_host:~$ tar xjf /tmp/teamspeak3-server_linux_amd64-3.6.1.tar.bz2 -C /home/ts
Accept the Teamspeak license agreement.
ts@your_host:~$ touch /home/ts/.ts3server_license_accepted
(Optional) There are other options for accepting the license agreement.
Please set the environment variable TS3SERVER_LICENSE to "accept" in order to accept the license agreement.
Alternatively, create a file named ".ts3server_license_accepted" in the working directory or start the server with the command line parameter "license_accepted=1".
To view the license agreement set TS3SERVER_LICENSE to "view" in order to print the license to the console.
Alternatively view the file "LICENSE" in your favorite text viewer yourself.Change file permissions
ts@your_host:~$ chmod +x /home/ts/ts3server_startscript.sh
ts@your_host:~$ chmod +x /home/ts/ts3server_minimal_runscript.sh
ts@your_host:~$ chmod +x /home/ts/ts3serverFirst server startup (this data must be saved)
ts@your_host:~$ /home/ts/ts3server_minimal_runscript.sh
2019-03-16 19:30:44.119638|INFO |SQL | db_CreateTables() tables created
------------------------------------------------------------------
I M P O R T A N T
------------------------------------------------------------------
Server Query Admin Account created
loginname= "serveradmin", password= "DC+sOsIL"
------------------------------------------------------------------
^
2019-03-16 19:30:45.093089|WARNING |VirtualServer |1 |
------------------------------------------------------------------
I M P O R T A N T
------------------------------------------------------------------
ServerAdmin privilege key created, please use it to gain
serveradmin rights for your virtualserver. please
also check the doc/privilegekey_guide.txt for details.
token=q20aDScWvOLg+XL5PpWXUPumhPFaDkStVKE9BpSZ
------------------------------------------------------------------
2019-03-16 19:30:45.093331|INFO |Query |listening for query on 0.0.0.0:10011, [::]:10011Steps for Windows systems
Download Teamspeak software
Unzip the archive to a folder (e.g. C:\teamspeak)
First, start the server.
- Accept the license agreement.
- Save server request data
- End server via tray icon
Step 3 – Launch the service
In order for Teamspeak to run as a background process without an active login, a service must be created.
Steps for Linux systems
Create service:
- Create the systemd service
root@your_host:~# nano /etc/systemd/system/ts.service
- The following must be included in the file:
[Unit]
Description=TeamSpeak 3 Server
After=network.service
[Service]
User=ts
Group=ts
Type=forking
WorkingDirectory=/home/ts/teamspeak3-server_linux_amd64/
ExecStart=/home/ts/teamspeak3-server_linux_amd64/ts3server_startscript.sh start
ExecStop=/home/ts/teamspeak3-server_linux_amd64/ts3server_startscript.sh stop
PIDFile=/home/ts/teamspeak3-server_linux_amd64/ts3server.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.targetService registration:
Download new service entries and changes
root@your_host:~# systemctl daemon-reload
- Enable the service (it will start automatically after reboot)
root@your_host:~# systemctl enable ts.service
The following command can be used to manage the service.
root@your_host:~# systemctl start/stop/restart ts.service
Steps for Windows systems
Start NSSM via CMD (parameter is service name)
C:\Users\Administrator>nssm install teamspeak
In the “Application” tab, on “Path”, the path to the Teamspeak Server application must be specified. (For example, C:\Users\Administrator\teamspeak\ts3server.exe)
In “Setup Directory” you need to specify the entire application folder. (In this case C:\Users\Administrator\teamspeak\ )
The Teamspeak server can then be used normally as a Windows service.
Introduction
This article has shown what steps are required to install a Teamspeak 3 server on Windows or Linux systems and register the Teamspeak software as a service.









