Installing a TeamSpeak Server

Lawrence
Lawrence

Introduction


TeamSpeak offers the ideal tool for online gaming, education and training, internal business communication, and staying in touch with friends and family. Our primary focus is delivering a solution that is easy to use, with high security standards, excellent voice quality, and low system and bandwidth usage. Featuring a client-server architecture, TeamSpeak is literally capable of handling up to thousands of simultaneous users.

The TeamSpeak Client and Server provide unmatched functionality for both beginners and advanced users. Packed with powerful features and incredible performance, TeamSpeak is your Swiss Army Knife of voice communication.

Requirements

In this tutorial we will be using Ubuntu 16.04, however you should be able to use all our offered Ubuntu and Debian versions.

In Time4VPS you are able to install Ubuntu 16.04 template really easy and fast, only with few mouse clicks:
  1. Login to the Clients Portal;
  2. Select at the top of menu the "My Services > VPS" tab;
  3. Press the "Manage" button at the service table;
  4. Press the "Install OS" button;
  5. Choose Ubuntu 16.04 operating system, agree with warning and press "Continue";
  6. Wait for 5-10 minutes and refresh VPS management page.

Updating System

First things first. Like always, first of all, we recommend to update and upgrade your server.
apt-get update
apt-get upgrade -y


Installing TeamSpeak


First of all create a directory where TeamSpeek will be loacted:

mkdir teamspeak

Chnage to the new directory:

cd teamspeak

Download the TeamSpeak package:

wget http://dl.4players.de/ts/releases/3.0.13.6/teamspeak3-server_linux_amd64-3.0.13.6.tar.bz2
Extract the package with tar:
tar -xvf teamspeak3-server_linux_amd64-3.0.13.6.tar.bz2

Running TeamSpeak


Once TeamSpeak is downloaded it's ready to be started as it comes precompiled so no configuration or building is needed. Change to the directory:
cd teamspeak3-server_linux_amd64
Run the startup script:
./ts3server_startscript.sh start
Copy the login name, password, and token that are printed the first time the server is started. You’ll need them when you connect the first time:



Open TeamSpeak client on your cumputer. Open the connect dialog (CTRL + S) enter the IP address of your server, the nickname serveradmin the password:



Once the connection is successful the client will ask you for the security token. Copy it from the SSH session and paste it into the dialog box in the client.



Making TeamSpeak Start Automatically

You can makeTeamSpeak automatically start every time your server reboots just like this:

While in TeamSPeak's directory teamspeak3-server_linux_amd64 create a new file:
nano /etc/init/teamspeak.conf
Paste this code and save:
#!/bin/sh
chdir /root/teamspeak/teamspeak3-server_linux_amd64/

respawn

setuid root
setgid root

exec /root/teamspeak/teamspeak3-server_linux_amd64/ts3server_minimal_runscript.sh

start on runlevel [2]
stop on runlevel [013456]
The next time your server reboots TeamSpeak will start automatically.

Configuring Firewall

If you use a firewall the following ports will need to be opened: 9987, 30033, 10011, and 41144. Here’s the commands to open those ports in IPtables. Run each line as a separate command.
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
iptables -A INPUT -p tcp --dport 41144 -j ACCEPT

Conclusions


Thats it, TeamSpeak is installed, cofigured to start automatically after server's reboot and ready to be used.

Sign In or Register to comment.
© 2013 - 2017 Time4VPS. All rights reserved. Powered by Vanilla
The opinions or views of users on the forum are those of the author and not of Time4VPS.