How to Install TeamSpeak 3 on Ubuntu 20.04

Introduction

TeamSpeak 3 is a widely used voice-over-IP (VoIP) communication platform known for its crystal-clear audio quality, low latency, and robust server-side control features. It's a popular choice among gamers, remote teams, and communities that require reliable and secure voice communication. Installing TeamSpeak 3 on Ubuntu 20.04, a long-term support (LTS) release known for its stability, performance, and security, provides a solid foundation for hosting your own private or public voice server. With Ubuntu 20.04’s reliability and TeamSpeak’s efficient performance, you can run a voice server that’s highly customizable, scalable, and optimized for real-time communication.

This article explains how to install a TeamSpeak 3 Server on Ubuntu 20.04, providing a stable and secure environment for real-time voice communication. If you're using Arch Linux instead, check out how to install a TeamSpeak 3 Server on Arch Linux.

Prerequisites

Before you begin the tutorial, you should:

  • Deploy a new Ubuntu 20.04 AKLWEB HOST Server.
  • Update the server.
  • Create a non-root user with sudo privileges.
  • Log in to your server as a non-root user.
  • Open UDP Port 9987 and TCP Port 30033 on your Server firewall or ufw.

Install TeamSpeak 3 On Ubuntu 20.04

Create a separate user to run the TeamSpeak server. In this tutorial, 'teamspeak' is the username; you may choose any desired username.

$ sudo adduser --disabled-login teamspeak

Switch to teamspeak user.

$ sudo su teamspeak

Download the latest version of the TeamSpeak server. Check TeamSpeak's official website for the latest Linux Server 64-bit version and replace the version number in the URL below.

$ wget https://files.teamspeak-services.com/releases/server/3.13.6/teamspeak3-server_linux_amd64-3.13.6.tar.bz2

Extract the downloaded archive.

$ tar xvfj teamspeak3-server_linux_amd64-*.tar.bz2

Copy all contents from the extracted directory to the Teamspeak user home directory.

$ cp teamspeak3-server_linux_amd64/* -R /home/teamspeak/

The download file is no longer required. You may delete it.

$ rm teamspeak3-server_linux_amd64-*.tar.bz2

Accept the license agreement by creating a license file.

$ touch /home/teamspeak/.ts3server_license_accepted

Exit from the Teamspeak user session.

$ exit

The shell prompt returns to a non-root sudo user session.

Create a systemd service file to make Teamspeak run on boot.

$ sudo nano /lib/systemd/system/ts3server.service

Add the following lines and save the file:

[Unit]
Description=TeamSpeak3Server
After=network.target

[Service]
WorkingDirectory=/home/teamspeak
User=teamspeak
ExecStart=/home/teamspeak/ts3server_minimal_runscript.sh
ExecStop=/home/teamspeak/ts3server_startscript.shstop
ExecReload=/home/teamspeak/ts3server_startscript.shrestart
Restart=always
RestartSec=15

[Install]
WantedBy=multi-user.target

Reload the systemd service.

$ sudo systemctl daemon-reload

Start and enable TeamSpeak to run on boot.

$ sudo systemctl start ts3server
$ sudo systemctl enable ts3server

Verify the TeamSpeak server is running.

$ sudo systemctl status ts3server
Active: active (running)

Switch to the Teamspeak user.

$ sudo su teamspeak

Get the ServerAdmin privilege key needed to connect for the first time to the server.

$ cat /home/teamspeak/logs/ts3server_*

The above command displays the ServerAdmin privilege key in the following format:

--------------------------------------------------------
ServerAdmin privilege key created, please use the line below
token=****************************************
--------------------------------------------------------

Replace the stars with your unique token, and enter it into the TeamSpeak client.

Conclusion

This completes the steps to install TeamSpeak Server on Ubuntu 20.04. You can download the TeamSpeak Client and connect to your server.

We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies

More