How to: Setup a TeamSpeak Server on Ubuntu Server 16.04

In this guide, I will be going through the steps required to setup your own TeamSpeak server on Ubuntu 16.04 LTS.
https://www.youtube.com/watch?v=uhbR952xEgs

Prerequisites

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 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