serveroffer.lt forum


Linux Teamspeak 3 Server Setup

Tutorials thread

Linux Teamspeak 3 Server Setup

Postby serveroffer » 2019 Feb 09, 11:06

Minimal server requirements: 512MB RAM, 1 vCPU
Operating system: Centos 7 64-bit

Install necessary programs:
Code: Select all
yum install -y nano

Create dedicated user for Teamspeak server
Code: Select all
adduser ts3server

Login as newly created user:
Code: Select all
su ts3server

Enter server directory:
Code: Select all
cd /home/ts3server

Download server files:
Code: Select all
wget https://files.teamspeak-services.com/releases/server/3.6.1/teamspeak3-server_linux_amd64-3.6.1.tar.bz2

Extract server files:
Code: Select all
tar xvf teamspeak3-server_linux_amd64-3.6.1.tar.bz2

Enter server files directory and m
Code: Select all
cd teamspeak3-server_linux_amd64

Move files to the main user directory:
Code: Select all
mv * /home/ts3server

Get back to the main directory:
Code: Select all
cd ..

Accept Teamspeak server license:
Code: Select all
touch .ts3server_license_accepted

First time server start:
Code: Select all
./ts3server_minimal_runscript.sh

Copy printed server Token and use it to get Administrator privileges on the server

In order to stop server use combination:
CTRL+C


Optional - Automatic server startup

exit ts3server user:
Code: Select all
exit

Create file as root:
Code: Select all
nano /lib/systemd/system/teamspeak.service

Paste code to the file startup:
Code: Select all
[Unit]
Description=TeamSpeak 3 Server
After=network.target
[Service]
WorkingDirectory=/home/ts3server/
User=ts3server
Group=ts3server
Type=forking
ExecStart=/home/ts3server/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/home/ts3server/ts3server_startscript.sh stop
PIDFile=/home/ts3server/ts3server.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target

Enable Teamspeak startup on the system:
Code: Select all
systemctl enable teamspeak.service
systemctl start teamspeak.service

Check status of the server:
Code: Select all
service teamspeak status

Done!
User avatar
serveroffer
Site Admin
 
Posts: 35
Joined: 2012 Jun 16, 18:31

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron