[KnowledgeBase] Install Teamspeak 3 on Ubuntu Server

Source with more details in the Ubuntu Wiki

  • 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-serverlinux.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. (TODO: add working autostart script for this)

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