Update 20.09.2019

Better install it now using docker. To do so on an existing teamspeak server, run this command and replace /path/to/your/teamspeak by the correct path to the existing installation.

docker run --name teamspeak -p 9987:9987/udp -p 10011:10011 -p 30033:30033 -e TS3SERVER_LICENSE=accept -v /path/to/your/teamspeak:/var/ts3server/ teamspeak 

If you want to use docker-compose, you can use the following file.

version: '3.1'
    image: teamspeak
    restart: always
      - 9987:9987/udp
      - 10011:10011
      - 30033:30033
      TS3SERVER_LICENSE: accept
    	- /path/to/your/teamspeak:/var/ts3server/

Finally use docker-compose up -d to start it in background.

Original Post

  • Create a new user that will run the TS server
sudo adduser teamspeak --system --home /usr/local/bin/teamspeak3-server_linux_amd64 --disabled-login 
sudo su teamspeak --shell /bin/bash 
  • Download the latest TS Server from the offical homepage.
tar -xjf teamspeak3-server_linux_.tar.bz2 -C /usr/local/bin/
cd ~ 
  • Create the ini and run the server
./ts3server createinifile=1
touch query_ip_blacklist.txt query_ip_whitelist.txt 
./ts3server_startscript.sh start inifile=ts3server.ini
  • This server will not automatically be restarted as it is not configured as a service yet. Use Docker to automate the autostart!

Manual restart after server downtime

In case no autostart was configured, perform the following actions to restart the server after a downtime.

sudo su teamspeak --shell /bin/bash
./ts3server_startscript.sh start

Add firewall rules to ufw

sudo ufw allow  9987
sudo ufw allow 30033
sudo ufw allow 10011
sudo ufw allow 41144