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:
Once it is downloaded, unpack the archive:
tar xvf teamspeak3-server_linux_amd64-126.96.36.199.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:
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
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