The Next Chapter in Our Story is about to Start — Stay Tuned!

Close Button

How to Setup TeamSpeak Server on Linux

26 Comments

8 mins Read

how to set up a teamspeak server on linux

In this article, we’ll show you how to setup TeamSpeak server on Linux in a couple of minutes. If you need a secure and lightweight tool to connect with friends or coworkers, creating a TeamSpeak server is one of the best options.

If not the most commonly used, TeamSpeak is a widely used solution for low latency voice chat while playing. For example, if you use Skype, the delay and traffic between talking people will be much higher, and the Skype client will be much more overloaded than TeamSpeak.

Besides TeamSpeak, there are other low-latency gaming solutions such as Mumble and Discord that use central servers without the need to set up your own case.

This article explores how to set up a TeamSpeak 3 server on your Linux box. Thanks to TeamSpeak 3 designers, this procedure is pretty simple and you should have a TeamSpeak 3 server running within minutes.

Teamspeak VPS Hosting

Buy yourself an affordable Teamspeak VPS virtual machine. It gives you the full functionality such as all admin rights and root access. Teamspeak is a VoIP application for audio communication between users with a completely free Windows OS. You can also choose to install Linux or FreeBSD OS.

Check Out Teamspeak VPS plans
Teamspeak VPS Hosting

How to SetUp TeamSpeak Server on Linux?

SetUp Teamspeak server on Linux in 4 steps:

1- Install the Necessary Utilities

TeamSpeak 3 Server doesn’t require any additional libraries to work with. The new Debian 9 setup, for example, will start TeamSpeak 3 without any additional libraries.

However, if you want to download and remove server software, you need some additional software. In this case, you will need a download manager (Wget) and the utility to extract the compromised server software (bzip2).

You can install the necessary utilities with the following command:

sudo apt-get update
sudo apt-get install wget bzip2

Now that all the necessary utilities are on board, we will move forward and install the server software.

Debian VPS Hosting

Buy yourself an affordable VPS hosting service with Debian. With this stable Linux distribution, run multiple virtual machines, simultaneously. With pre-configured virtualized hardware, take the full control over your VMs and enjoy the performance and reliability of the Linux kernel at the base of your structure.

Check Out Debian VPS plans
Debian VPS Hosting

2- Download and Install the TeamSpeak 3 Server

TeamSpeak 3 is your specialized software solution. Because of it, you would not be able to install it from the repositories of your Linux distribution. So, this means you’ve got to import it from the designer’s homepage to your server.

Here you can download the latest TeamSpeak 3 software. Downloading can take some time depending on the speed of your network. You can extract the downloaded server program after the download is finished. The following command will do this job:

tar xfvj teamspeak3-server_linux_amd64-3.0.13.8.tar.bz2

Now you can run the server for the first time.

Linux VPS Hosting

Get yourself an economy or premium Linux VPS for hosting your website or remote desktop, at the cheapest price out there. VPS Running on Linux KVM for increased efficiency and working on powerful hardware with NVMe SSD storage for increased speed.

Check Out Linux VPS Plans
Linux VPS Hosting

3- Run the TeamSpeak Server

Now you’re supposed to be able to initiate server software. You need to change into the TeamSpeak Server directory to do this. This directory was created automatically when the server software was extracted. Issue the following command to run the server:

$ cd teamspeak3-server_linux_amd64
/teamspeak3-server_linux_amd64$ ./ts3server_startscript.sh start

The first start takes a while, approximately 1 to 3 minutes. After the first start is finished, you’ll get the following output:

I M P O R T A N T

Server Query Admin Account created

loginname= “serveradmin”, password= “BVV2YUIJ”

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=zvCYfUTRlcYl12dviAMuGKR7e+nQYKSE0bD9O4CI

Be aware that you should write the server query admin account on a piece of paper or save this data in a password database. This password is needed in emergency situations, such as losing TeamSpeak user data or hacker attacks.

Finally, to make sure that your server is running correctly, you can issue the following command:

[email protected]:~/teamspeak3-server_linux_amd64$ ./ts3server_startscript.sh status

Server is running

Now you can connect to your new server.

4- Connect to a New Server

To connect to the server, run the TeamSpeak 3 client and click Connections > Connect or use the CTRL+S hotkey. In the next dialog, enter your server’s IP address or name, and choose the nickname you want to use on that server, and click the Connect button.

connect to new server

The server realizes that the server was originally set up and then opens another dialog where it requests for the so-called Privilege Key. This Privilege Key is the generated token that you collected a few steps before in a text file.

Insert the token in the dialog box as follows:

setup teamspeak server on linux

Bear in mind that the privilege key is for one-time use to set up the initial admin. After you use this token, you will need to set up the rest of the users and grant permissions as required.

Now you should see a new symbol beside your nickname, which says that you are an admin. From now on, you should be able to build channels, server groups, edit server names, and so forth.

Your TeamSpeak 3 server is now completely set up. You can close your SSH connection to your server, start sharing your server address with your friends and start chatting.

TeamSpeak Update

Although TeamSpeak software is mostly pretty stable, you should take care that your server is always updated. To update the TeamSpeak server, go to the official homepage, download the latest version, and extract it.

The files would be overwritten beside the database files. This means that you don’t have to start all over again when you enable an update. However, before you update it, you must stop the TeamSpeak 3 server. This command will do it easily:

[email protected]:~$ cd teamspeak3-server_linux_amd64
[email protected]:~/teamspeak3-server_linux_amd64$ ./ts3server_startscript.sh stop

After you have extracted the updated server files, you can run the server again:

[email protected]:~/teamspeak3-server_linux_amd64$ ./ts3server_startscript.sh start

You should also use a firewall or a package filter solution. The server with the latest security patches is a successful one, but the firewall solution will still improve security.

Also Read: How to set up a Teamspeak server on Windows?

How to Set up a TeamSpeak 3 Server on Ubuntu

The best way to make a TeamSpeak3 server on Ubuntu is to run a VPS and install the virtual running Ubuntu.
Here are the steps you’ll want to follow while running a Teamspeak 3 on Ubuntu. First of all, log in to your virtual server via an SSH connection.

1- Make sure your system is up to date

 By typing this line:

 apt-get update && apt-get upgrade

2- You need to create a user 

By typing:

adduser --disabled-login teamspeak

create your system user, and then, you can skip the user’s personal questions by “Enter.”

Note: Go to the home route by running this command

 cd /home/teamspeak

3- Download and then Install TeamSpeak 3 server

Remember to download the latest version of TeamSpeak3 software. After that, extract the file and install it.

You can also download it by running this Wget: 

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

4- Download and extract TeamSpeak 3 server and install

After downloading the extract, it is required to unzip the installer file by using this command

tar xvf teamspeak3-server_linux_amd64-3.9.0.tar.bz2

Note: Remove the downloaded file by typing the command:

rm teamspeak3-server_linux_amd64-3.12.1.tar.bz2
  • Now, a new folder includes all the essential contents for the TeamSpeak server.
  • Move this folder to home “cd teamspeak3-server_linux_amd64 && mv * /home/teamspeak
  • Enter the “ls” command then a similar screen appears if everything goes well.

install teamspeak on ubuntu

5- Accept TeamSpeak 3 terms and conditions

Considering the TeamSpeak 3 server version 3.1.0 release, it is an obligation to accept the license agreement.

The easiest way to create a file is to accept the license is to execute the below code:

touch /home/teamspeak/.ts3server_license_accepted

So, this code will make you a new empty file in turn of a license of agreement.

6- Start TeamSpeak 3 server 

For starting the server on boot, you need to configure TeamSpeak 3 server by creating a file “TeamSpeak.service” in this directory “/lib/systemd/system.”

Type:

sudo nano /lib/systemd/system/teamspeak.service

This file should include:

[Unit]
Description=TeamSpeak 3 Server
After=network.target
[Service]
WorkingDirectory=/home/teamspeak/
User=teamspeak
Group=teamspeak
Type=forking
ExecStart=/home/teamspeak/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/home/teamspeak/ts3server_startscript.sh stop
PIDFile=/home/teamspeak/ts3server.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target

Copy this script into an empty file, and then you save it without an extension.

Then Activate the script on the server boot:

systemctl enable teamspeak.service
systemctl start teamspeak.service

This screen will appear when the TS3 server is proceeding correctly.

activate the script on the server boot

Note: To check if the above services are added successfully,

Type:

systemctl | grep teamspeak.service

This command,

service teamspeak status

will check the server’s status in the final step.

service teamspeak status

7- Retrieve the privileged key

retrieve the privileged key

After the TS3server on Ubuntu runs successfully, execute the privileged key:

cat /home/teamspeak/logs/ts3server_*

Once you want to connect to the server.

Note: Your unique key next to the token and save this privileged key since you need it to connect.

8- Connect using TeamSpeak3 client

When the server is running properly now, you need to connect to it.  To connect to the server, enter your VPS IP address, server password, and choose a nickname (Display name).

connect using teamspeak 3 client

You will be asked to enter the token.

enter the token

How to setup TeamSpeak server on centos

Installing the TeamSpeak server on centos is similar to the TeamSpeak server on Ubuntu step-by-step guide. Let’s dive into 7 steps that make TeamSpeak 3 server running on centos7. Like the previous server’s installation, you should first connect your VPS through SSH protocol.

CentOS VPS Hosting

Buy yourself an affordable VPS hosting service with CentOS to run your server on it. With more than 15 available locations, order your preferred VPS plan and simultaneously run multiple virtual machines on Windows or Linux images, or install other control panels like Plesk or cPanel.

Check Out CentOS VPS plans
CentOS VPS Hosting

1- Update the centos 

First, Update your CentOS 7 server packages and then install needed dependencies for the installation process by typing the below command:

yum -y update

2- Add a new user

Then, create a user for the TeamSpeak server to run in user mode separately from other processes.

adduser teamspeak

Next, type the following line to go to the new user’s home directory:

cd / home / teamspeak

3- Download and unzip TeamSpeak 3 server program

Here, there are two ways to download the most recent installation file of the TeamSpeak3 server for centos.

Either the download TeamSpeak 3 server page 

Or running the “wget” command:

wget http://dl.4players.de/ts/releases/3.12.1/teamspeak3-server_linux_amd64-3.12.1.tar.bz2

Then extract the tarball and move all of the files to the home directory:

tar xvf teamspeak3-server_linux_amd64-3.12.1.tar.bz2
cd teamspeak3-server_linux_amd64 && mv * /home/teamspeak && cd .. && rm -rf teamspeak3-server_linux_amd64-3.12.1.tar.bz2

Once the download completes, type “IS” and the below screen.

setup teamspeak on centos

4- Accept the TeamSpeak 3 license agreement

Now you will have to accept the license agreement. The easy way to do that is to create an empty file:

touch /home/teamspeak/.ts3server_license_accepted.

After that, you need to turn on the TeamSpeak 3 server and add it to startup.

5- Turn on the TeamSpeak 3 server 

Start your TeamsSpeak3server on boot by following this script:

[Unit]
Description=TeamSpeak 3 Server
After=network.target
[Service]
WorkingDirectory=/home/teamspeak/
User=teamspeak
Group=teamspeak
Type=forking
ExecStart=/home/teamspeak/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/home/teamspeak/ts3server_startscript.sh stop
PIDFile=/home/teamspeak/ts3server.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target

Save and close the file. Then start the TeamSpeak server for now and enable it to start automatically at system boot as follows.

install teamspeak server on centos

systemctl enable teamspeak.service
systemctl start teamspeak.service

Get TeamSpeak 3 server report by typing:

service teamspeak status

Checks if everything goes successfully so far:

systemctl | grep teamspeak.service

6- Retrieve the privileged key

retrieve the privileged key in centos

When you enable the TeamSpeak server for the first time, an administrator key will be generated, which help you to connect to the server via a TeamSpeak Client. 

Run this command as the privileged key for the final step to copy the TeamSpeak 3 server token.

cat /home/teamspeak/logs/ts3server_*

7- Establish a new connection by TeamSpeak 3 client

In the end, you can connect your server via the TeamSpeak client. Put in your dedicated VPS IP address in the Server Nickname or Address field.

When evoked, paste in the previously retrieved privileged key.

How do I Build a TeamSpeak Server?

The entire process begins by accessing your VPS via SSH and can be broken down into 6 easy steps.

  1. Build a new system user
  2. Download and extract TeamSpeak 3 server
  3. Accept the TeamSpeak license agreement
  4. Start TeamSpeak server
  5. Retrieve the privileged key
  6. Connect via TeamSpeak client
Teamspeak VPS Hosting

Buy yourself an affordable Teamspeak VPS virtual machine. It gives you the full functionality such as all admin rights and root access. Teamspeak is a VoIP application for audio communication between users with a completely free Windows OS. You can also choose to install Linux or FreeBSD OS.

Check Out Teamspeak VPS plans
Teamspeak VPS Hosting

Conclusion

Since TeamSpeak is a convenient and low-cost application, every company will mainly invest in growing their knowledge safety. It is a communication tool that can be available and installed in multiple different operating systems.

So that, this guide plays a crucial role in letting you know how to configure your server as easily as possible without wasting time. Therefore, you can better concentrate on your core business rather than debugging IT issues.

2
0
Mary is a creative author who believes content is all about fulfilling users' needs and concerns. She always tries to provide the best solutions for her audience.

Comments

Leave A Comment

26 thoughts on “How to Setup TeamSpeak Server on Linux”

  1. Sherise Bernhart

    It’s like you read my mind! You appear to know so much about the TeamSpeak server, like
    you wrote the book in it or something.

  2. Thanks for your thorough article. I am not using teamspeak server right now but when I do I will definitely use your article to set it up on my OS

    1. We sincerely appreciate your interest in this topic 💛 The subject of how to Setup TeamSpeak Server on Linux is quite wide; would you please tell us more specifically which section needs more explanation? Thanks 🍃

  3. Hey there would you mind letting me know which
    web host you’re using? I’ve loaded your blog in 3 completely different web browsers
    and I must say this blog loads a lot quicker then most.
    Can you suggest a good internet hosting provider at a honest price?

    Cheers, I appreciate it!

    1. Hi, Thanks a million for your incredible comment; it really made our day🤩 We at RouterHosting use our own dedicated servers for web hosting, and if you buy cheap VPS from us, we guarantee you’ll have the same user experience and performance in the palm of your hand. ✅💯

  4. An outstanding share! I have just forwarded this onto a colleague who has been doing a
    little research on this. And he in fact ordered me lunch because
    I found it for him… lol. So let me reword this….
    Thank YOU for the meal!! But yeah, thanx for spending time to talk about this matter here on your
    site.

  5. Wonderful blog! Do you have any tips and hints for
    aspiring writers? I’m planning to start my own website soon but I’m a little lost on everything.
    Would you propose starting with a free platform like
    Wordpress or go for a paid option? There are so many options
    out there that I’m completely overwhelmed .. Any suggestions?
    Many thanks!

    1. Hi, Thank you so much for your incredible words about our blog 🌻💛
      We truly appreciate your passion for writing. If you have plans to become a novelist, Wattpad is perfect to start with! For writing blogs, WordPress and Medium are very powerful publishing tools.

  6. 메이저사이트

    At this time it looks like BlogEngine is the best
    blogging platform out there right now. (from what I’ve read) Is that what
    you’re using on your blog?

    1. We sincerely appreciate your amazing comment and positive energy 💛🤩
      We’re so delighted to hear that you’ve found our blog interesting. Please visit our blogs more often to make our day with your comments. 🍃

  7. Hi there, just became aware of your blog through Google, and found
    that it’s really informative. How do I choose the best teamspeak server for my small business?

    1. For the simplest performance, you must seek for a server that’s nearest to your small business.
      Alternatively, if you’re trying to host your own server, please visit teamspeak website to download teamspeak server software system .

  8. maximiliano andrew

    I know this web page provides quality depending content and extra material. Are there any software like TeamSpeak for group calls ?

  9. I was examining some of your blog posts on this website and I believe this site is real
    informative! Keep on posting. Does teamspeak have its own server? Is it safe for daily meetings?

    1. Teamspeak is extremely well trusted, therefore in recent years it has taken quite an few users away. I’ve not detected of any security problems with either program, however that doesn’t mean they don’t exist.

    1. If the server’ on your own network, feel free. however if it’ hosted somewhere, then your DDOS could impact people exploitation an equivalent network path or alternative infrastructure. you’ll raise permission, but they’ll nearly actually say no – SPs are typically comfy with pentesting but no one fools around with DDOS testing

    1. The likelihood of being hacked is doubtful. although we have a tendency to assume that there are easy tools that enable you to easily “hack the server” and compromise everything on the server itself, the probability of turning into a target is not zero.

Leave a Reply

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