How to set up TeamSpeak on Ubuntu 16.04 server

TeamSpeak is a free and very popular real-time voice chat application, voice chat over the Internet. TeamSpeak uses a very small amount of bandwidth and is mainly used by players who chat with each other while playing to avoid latency issues. All users need a client installed on their devices and a central server, all clients are connected.

This tutorial explains how to set up a TeamSpeak server on an Ubuntu 16.04 VPS.

Login your Ubuntu 16.04 VPS as root user

ssh [email protected]_address -p port_number

and make sure the system is up to date by running the following command

apt-get update && apt-get upgrade

You can also enable automatic updates.

Create a new system user with limited login capabilities for TeamSpeak so that the application can run under that user.

adduser --disabled-login teamspeak

Adding new group 'teamspeak' (1000) ...
Adding new user 'teamspeak' (1000) with group `teamspeak' ...
Creating home directory '/home/teamspeak' ...
Copying files from '/etc/skel' ...
Changing the user information for teamspeak
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]

You can leave all user information fields blank.

The next step is to download TeamSpeak. Go to their official site and download the latest stable version of TeamSpeak Server. At the time of this writing, this is version 3.0.13.6

cd /usr/local
wget http://dl.4players.de/ts/releases/3.0.13.6/teamspeak3-server_linux_amd64-3.0.13.6.tar.bz2

After downloading it, unpack the archive and rename the TeamSpeak folder to your liking.

tar -jxvf teamspeak3-server_linux_amd64-3.0.13.6.tar.bz2
mv teamspeak3-server_linux_amd64 teamspeak

Set up access for the newly created user, set the owner of the TeamSpeak files

chown -R teamspeak:teamspeak /usr/local/teamspeak

Run script is included in files, so we will create a symbolic link

ln -s /usr/local/teamspeak/ts3server_startscript.sh /etc/init.d/teamspeak

and run the following command to make the TeamSpeak server automatically start at boot time:

update-rc.d teamspeak defaults

Finally, start the TeamSpeak server:

service teamspeak start

To test TeamSpeak work, run the following command

service teamspeak status

● teamspeak.service
Loaded: loaded (/etc/init.d/teamspeak; bad; vendor preset: enabled)
Active: active (running) since Sun 2017-05-24 17:12:23 CDT; 1min 15s ago
Docs: man:systemd-sysv-generator(8)
Process: 8234 ExecStart=/etc/init.d/teamspeak start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/teamspeak.service
└─8241 ./ts3server

You will also find the username, password and privilege key here. You need this information to manage your server.

Sidebar