TeamSpeak is a proprietary voice-over-Internet Protocol (VoIP) application to communicate with friends or colleagues. This lightweight tool is designed for audio communication between users on a chat channel, much like a telephone conference call. Since it provides a competitive space, TeamSpeak is mostly used by gamers. They use this software to communicate with other players on the same team of a multiplayer video game. In this article, you will learn How To Setup Teamspeak Server On Ubuntu 20.04 or 21.04. Visit Eldernode to have all packages you need at your fingerprint. Purchase your own Ubuntu VPS and stay with us.
Table of Contents
Tutorial Setup Teamspeak Server On Ubuntu
TeamSpeak is a free and very popular voice communications application for real-time voice chat over the internet. The TeamSpeak server runs as a dedicated server on Linux, macOS, Microsoft Windows, and FreeBSD and uses a client-based user interface or a command-line interface to control server administration and configuration.
To start using TeamSpeak, you need to make a TeamSpeak server. Then, clients must be installed for users on their devices. TeamSpeak clients are available for Linux, macOS, Windows, Android, and iOS.
Prerequisites to Install TeamSpeak on Ubuntu 20.04 | 21.04
To let this tutorial work better, please consider the below Prerequisites:
_ A non-root user with Sudo privileges. To setup, follow our Initial server setup on Ubuntu 21.04.
_ Connect securely with the SSH protocol
Make a TeamSpeak Server on Ubuntu Step to step
Open the terminal of your server and follow the steps below to make a TeamSpeak server.
Step 1:
As usual, start with updating your system by running the following command:
apt-get update
apt-get upgrade
Step 2:
Now, you are ready to create a new system user. To do this, you need to add n new user firstly. So, run:
adduser --disabled-login teamspeak
You will be asked to enter the personal user details and confirm that they are correct. However, all fields can be left blank.
Then, you can access the home directory of the newly created user. So, type:
cd /home/teamspeak
Step 3:
It is time to download and extract the TeamSpeak server. To download the latest version of this software, run the following command:
wget http://dl.4players.de/ts/releases/3.12.1/teamspeak3-server_linux_amd64-3.12.1.tar.bz2
Extract the archive when you are finished:
tar xvf teamspeak3-server_linux_amd64-3.12.1.tar.bz2
Since all the contents will appear in teamspeak3-server_linux_amd64 directory, the next thing will be moving everything to /home/teamspeak and removing the downloaded archive:
cd teamspeak3-server_linux_amd64
mv * /home/teamspeak
cd ..
rm -rf teamspeak3-server_linux_amd64-3.12.1.tar.bz2
TeamSpeak License Agreement
It is mandatory to accept a license agreement. Use the command below to do this quickly and create a new empty file:
touch /home/teamspeak/.ts3server_license_accepted
The created file is called .ts3server_license_accepted, which will act as the license agreement.
How to Configure TeamSpeak Server on Ubuntu
Now that the software is installed, you can start TeamSpeak on server boot. Run the following command to create a file called teamspeak.service in /lib/systemd/system directory:
sudo nano /lib/systemd/system/teamspeak.service
Paste the content of output into the newly created file and save it.
Now, to activate the script and make it start on server boot, run:
systemctl enable teamspeak.service
systemctl start teamspeak.service
And to check the server status, type
service teamspeak status
If it displays active (running) it means that the server is running correctly.
For the first connection to the server, you need to get the privileged key. When you log in for the first time, there will be a prompt. So, you will need this information:
cat /home/teamspeak/logs/ts3server_*
How to Connect with a TeamSpeak client on Ubuntu
In this section, you can connect with a client. You just need to download the latest TeamSpeak client from the site. After a successful download, open the client and log in:
Then, create a new connection inside the client. A dialog where to enter server IP, nickname, and password will be displayed:
You will be asked for the key for administrator privileges while the first time connecting. So, you need to insert the key for full control of the channel:
At this point, you just need to send the server IP and password to use TeamSpeak with your friends.
How to Configure Firewall
Follow this section if you have a firewall on your system. To enable TeamSpeak traffic, you must setup the firewall.
To allow proper functioning of the TeamSpeak server, unlock the ports while using the UFW firewall:
iptables -A INPUT -p udp --dport 9987 -j ACCEPT
iptables -A INPUT -p udp --sport 9987 -j ACCEPT
iptables -A INPUT -p tcp --dport 30033 -j ACCEPT
iptables -A INPUT -p tcp --sport 30033 -j ACCEPT
iptables -A INPUT -p tcp --dport 10011 -j ACCEPT
iptables -A INPUT -p tcp --sport 10011 -j ACCEPT
Conclusion
In this article, you learned How To Setup Teamspeak Server On Ubuntu. We do not expect you to encounter serious issues. Just follow all the required steps of this guide to install and set up a private server for TeamSpeak on your Ubuntu. Now, you are ready to start communicating or gaming with your friends and enjoy its brilliant features and low lag.