How to install TeamSpeak 3 on CentOS 7

Teamspeak is the most common software used for instant voice chat, instant communication on live channels, for Gaming etc.

There are lots of questions on the internet about the TeamSpeak 3 server installation on Linux platforms.

Here is the TeamSpeak 3 installation on Centos 7;

Creating the TeamSpeak user
First, we are creating user for the TeamSpeak3

useradd ts3
passwd ts3
su ts3
cd /home/ts3

TeamSpeak installation
Let’s download the source files. You can find the latest version of the TeamSpeak from here

wget http://dl.4players.de/ts/releases/3.0.11.1/teamspeak3-server_linux-amd64-3.0.11.1.tar.gz

Untar the downloaded file and rename it;

tar -zxvf teamspeak3-server_linux-amd64-3.0.11.1.tar.gz
mv teamspeak3-server_linux-amd64 ts3-server
rm teamspeak3-server_linux-amd64-3.0.11.1.tar.gz

Configure and Start the Server
Now we need to create a configuration file and generate the credentials. Make a note of the Server Query Admin Account and ServerAdmin privilege key.

cd /home/ts3/ts3-server
./ts3server_minimal_runscript.sh createinifile=1
nano ts3server.ini

You can configure all of the following settings

machine_id=
default_voice_port=9987
voice_ip=0.0.0.0
licensepath=
filetransfer_port=30033
filetransfer_ip=0.0.0.0
query_port=10011
query_ip=0.0.0.0
query_ip_whitelist=query_ip_whitelist.txt
query_ip_blacklist=query_ip_blacklist.txt
dbplugin=ts3db_sqlite3
dbpluginparameter=
dbsqlpath=sql/
dbsqlcreatepath=create_sqlite/
dbconnections=10
logpath=logs
logquerycommands=0
dbclientkeepdays=30
logappend=0
query_skipbruteforcecheck=0

Starting Teamspeak on Boot
Download startup script;

wget -O ts3.zip http://addons.teamspeak.com/directory/addon/download/TS3-server-init-d-startup-script.html
unzip ts3.zip

Configure the startup script with the following details

nano ts3server
USER=ts3
ROOT_DIRECTORY=/home/ts3/ts3-server

Install script and make Teamspeak start on boot – If the install fails, restart the server and try again.

mv ts3server /etc/init.d/ts3server
exit
chown root:root /etc/init.d/ts3server
bash /etc/init.d/ts3server --install
chkconfig ts3server on

Configure the Firewall

iptables -A INPUT -p udp --dport 9987 -j ACCEPT
iptables -A INPUT -p tcp --dport 30033 -j ACCEPT
iptables -A INPUT -p tcp --dport 10011 -j ACCEPT
service iptables save

Start Teamspeak
Finally, we want to whitelist the IP that you will be performing server queries from and then start the server.

Add your IP (not the server’s IP) under localhost.,

nano /home/ts3/ts3-server/query_ip_whitelist.txt

Start the server;

su ts3
/home/ts3/ts3-server/ts3server_startscript.sh start

Leave a Reply