In this tutorial, we will show you how to install TeamSpeak Server on Ubuntu 20.04 LTS. For those of you who didn’t know, TeamSpeak is a VoIP (voice-over-Internet Protocol) solution first released in 2001 and most popular with those who play team-based online games. The software has two parts, a server, and a client, both of which can be installed on Windows, Mac, and Linux.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo
‘ to the commands to get root privileges. I will show you the step-by-step installation of TeamSpeak on Ubuntu 20.04 (Focal Fossa). You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian-based distribution like Linux Mint.
Prerequisites
- A server running one of the following operating systems: Ubuntu 20.04, 18.04, 16.04, and any other Debian-based distribution like Linux Mint.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- SSH access to the server (or just open Terminal if you’re on a desktop).
- A
non-root sudo user
or access to theroot user
. We recommend acting as anon-root sudo user
, however, as you can harm your system if you’re not careful when acting as the root.
Install TeamSpeak Server on Ubuntu 20.04 LTS Focal Fossa
Step 1. First, make sure that all your system packages are up-to-date by running the following apt
commands in the terminal.
sudo apt update sudo apt upgrade
Step 2. Create a new user for TeamSpeak.
Let’s create a user for the Teamspeak 3 server:
adduser --disabled-login teamspeak
Step 3. Installing the TeamSpeak server on Ubuntu 20.04.
Once the new user is created, enter as a TeamSpeak user by typing:
cd /home/teamspeak/ su teamspeak
Run the following command to install the TeamSpeak server:
wget https://files.teamspeak-services.com/releases/server/3.13.2/teamspeak3-server_linux_amd64-3.13.2.tar.bz2 tar xvfj teamspeak3-server_linux_amd64-3.13.2.tar.bz2 cd teamspeak3-server_linux_amd64 cp * -R /home/teamspeak cd .. rm -r teamspeak3-server_linux_amd64 rm teamspeak3-server_linux_amd64-3.13.2.tar.bz2 touch .ts3server_license_accepted
Step 4. Create TeamSpeak Systemd File.
By default, the TeamSpeak server will not start when your system boots. You will need to create a startup script so that your system will automatically start the TeamSpeak server software on boot. Now we create systemd
for TeamSpeak services on /etc/systemd/system/ts3server.service
:
nano /lib/systemd/system/ts3server.service
Add the following line:
[Unit] Description=Teamspeak Service Wants=network.target [Service] WorkingDirectory=/home/teamspeak User=teamspeak ExecStart=/home/teamspeak/ts3server_minimal_runscript.sh ExecStop=/home/teamspeak/ts3server_startscript.sh stop ExecReload=/home/teamspeak/ts3server_startscript.sh restart Restart=always RestartSec=15 [Install] WantedBy=multi-user.target
Now we will start the TeamSpeak server and enable it to start when your system boots:
sudo systemctl daemon-reload sudo systemctl start ts3server.service sudo systemctl enable ts3server.service
Step 5. Connecting with the TeamSpeak Client.
Download the latest TeamSpeak 3 client from the official website. Then open the client and log in.
Congratulations! You have successfully installed TeamSpeak. Thanks for using this tutorial for installing the TeamSpeak Server on your Ubuntu 20.04 LTS Focal Fossa system. For additional help or useful information, we recommend you to check the official TeamSpeak website.