Installing Teamspeak 3 on CentOS 7.2

Getting Started

So you’ve just installed a new CentOS server and want to get teamspeak running. There are a few steps to setting up a reliable service for your friends or clan.

Setup, Download and Install

Firstly ssh into your server:
ssh user@server

Create a user to run the server:
Separate the running processes so that if teamspeak becomes exploited you will not have a fully exposed system.

sudo useradd teamspeak

Download the source as that user:
You’ll want to grab the download link from the teamspeak downloads page.

sudo su - teamspeak
wget "http://dl.4players.de/ts/releases/3.0.12/teamspeak3-server_linux_amd64-3.0.12.tar.bz2"
tar -jxvf teamspeak3-server_linux_amd64-3.0.12.tar.bz2
mv teamspeak3-server_linux-amd64 teamspeak3-server

Run the start command and you will get some administration details for when you connect:

[teamspeak@tiny ~]$ /home/teamspeak/teamspeak3-server/ts3server_startscript.sh start

------------------------------------------------------------------
I M P O R T A N T
------------------------------------------------------------------
Server Query Admin Account created
loginname= "serveradmin", password= "zeeS2ooh"
------------------------------------------------------------------

------------------------------------------------------------------
I M P O R T A N T
------------------------------------------------------------------
ServerAdmin privilege key created, please use it to gain
serveradmin rights for your virtualserver. please
also check the doc/privilegekey_guide.txt for details.

token=cf6d8ff0ea29eb03c92eb161709d7c2bcf6d8ff
------------------------------------------------------------------

Networking and Firewall

Forward the relevant ports to your server and away you go.

9987 UDP
10011 TCP
30033 TCP

Since the firewall is enabled by default you will need to run some commands to unblock them.
sudo firewall-cmd --permanent --add-port=10011/tcp --add-port=30033/tcp --add-port=9987/udp
sudo systemctl restart firewall-cmd

Bonuses:

Add a cronjob, with crontab -e, to start the teamspeak server on reboot:
@reboot /home/teamspeak/teamspeak3-server/ts3server_startscript.sh start

Important Notes:

Make sure to select the correct architecture and server release.
32bit = Server x86
64bit = Server amd64

Example of a 64bit kernel:
[teamspeak@tiny ~]$ uname -r
3.10.0-327.4.5.el7.x86_64

If you ran the install with a minimal ISO you will need a few packages before you start:
sudo yum install bzip2 wget

Tagged with: , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.