How to: Setup a TeamSpeak Server on Ubuntu Server 16.04

created by BasicSysAdmin

Tags: Linux, Ubuntu 16.04, TeamSpeak

Sep 12, 2016


In this guide, I will be going through the steps required to setup your own TeamSpeak server on Ubuntu 16.04 LTS.

In order to follow this tutorial, you will need the following

  • Clean Ubuntu Installation
  • Sudo privledges (or root access)

    Adding new user

    For security, we will be adding a new user for our teamspeak server which we will not be allowing to login. You can do this with this command:

    sudo adduser --disabled-login teamspeak

    Downloading the latest version

    The first thing you will need to do to get the latest version is visit the TeamSpeak website and download the latest package. When on the page, click the Server tab and go down to the linux 64bit version (Or appropriate) and then get the link by clicking copy to clipboard. Once you have this, wget this on your server. It should look a little like this


    To extract this file, you can type

    tar -jxvf teamspeak3-server_linux_amd*.tar.bz2

    We are now going to need to move the directory and give it the correct permissions so we can start use it as a service

    sudo mv teamspeak3-server_linux_amd64 /usr/local/teamspeak;
    sudo chown -R teamspeak:teamspeak /usr/local/teamspeak;
    sudo ln -s /usr/local/teamspeak/ /etc/init.d/teamspeak

    To make it so that this starts up when the server boots up, we can type

    sudo update-rc.d teamspeak defaults

    Starting the Service

    To start TeamSpeak, you can use the following command

    sudo service teamspeak start

    Once you have done all of this, you should be able to connect to the server using the teamspeak client. As you are connecting for the first time, you will get a message about having a privilege key. You can get this from the next step.

    Getting the Privilege key

    When the server is first run, a privilege key will be created and added to the logs. I have found the easiest way to find this is to switch to root

    sudo su

    And then run this command
    cat /usr/local/teamspeak/logs/* | grep "token"