Skip to main content

Installing a TeamSpeak Server on Ubuntu/Debian

Updated over a week ago

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

  • A clean installation of Ubuntu 22.04/24.04 or Debian 11/12 (64-bit recommended).

  • For security, create a dedicated user (e.g., teamspeak) with sudo privileges to run the server.

  • At least 1 vCPU, 1 GB RAM, and 10 GB free disk space.

Installation

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 separate user for security reasons:

adduser teamspeak

Navigate to the new user directory:

cd /home/teamspeak

Download the TeamSpeak package:

wget https://files.teamspeak-services.com/releases/server/3.13.7/teamspeak3-server_linux_amd64-3.13.7.tar.bz2

Extract the package with tar:

tar -xvf teamspeak3-server_linux_amd64-3.13.7.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

Accept with the TeamSpeak license:

touch .ts3server_license_accepted

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 computer. 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 make TeamSpeak 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

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

Did this answer your question?