How to Install TeamSpeak Server on CentOS 7

r00t January 2, 2018

Install TeamSpeak Server on CentOS 7

In this tutorial we’ll learn how to install TeamSpeak Server on CentOS 7. We will also install and configure its prerequisites. TeamSpeak is a voice over internet protocol (VoIP) software that allows users to communicate with one another over the internet. It is often utilized in computer gaming, but it is also utilized in the company and for overall communication between family and friends.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install TeamSpeak Server on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update
yum -y install nano wget perl tar net-tools bzip2

Step 2. Create a new system user.

It is not recommended to run TeamSpeak as user root, so we will create a new system user by running the following command:

adduser --shell /bin/false teamspeak -d /opt/teamspeak3 -M

Step 3. Installing TeamSpeak.

First, download the latest TeamSpeak 3 server files for 64-bit Linux. Check their website, a new version may be available:

wget http://dl.4players.de/ts/releases/3.0.12.4/teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2

Once it is downloaded, unpack the archive:

tar xvf teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2
cd teamspeak3-server_linux_amd64
cp * -R /home/teamspeak
cd ..
rm -rf teamspeak3-server_linux_amd64*

Change ownership of the TeamSpeak server files:

chown -R teamspeak:teamspeak /home/teamspeak

Make the TeamSpeak server start on boot:

nano /lib/systemd/system/teamspeak.service

Copy the following content into the startup script file:

[Unit]
Description=Team Speak 3 Server
After=network.target
[Service]
WorkingDirectory=/home/teamspeak/
User=teamspeak
Group=teamspeak
Type=forking
ExecStart=/home/teamspeak/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/home/teamspeak/ts3server_startscript.sh stop
PIDFile=/home/teamspeak/ts3server.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target

Once you are done, save the file and close the editor. Now we will activate the script so that it will start on boot:

systemctl --system daemon-reload
systemctl start teamspeak.service
systemctl enable teamspeak.service

Step 4. Configure Firewall for TeamSpeak.

Open the default ports for Teamspeak:

firewall-cmd --zone=public --add-port=9987/udp --permanent
firewall-cmd --zone=public --add-port=10011/tcp --permanent
firewall-cmd --zone=public --add-port=30033/tcp --permanent
firewall-cmd --reload

Congratulation’s! You have successfully install and configured TeamSpeak Server on your CentOS 7 server. Thanks for using this tutorial for installing TeamSpeak on CentOS 7 system.

The Tags:

Leave a Comment

Comments are closed.