Company Blog

Some of our thoughts

How to setup a TeamSpeak 3 server on Linux

This will walk you through the simple steps on how to setup a TeamSpeak 3 server on linux. This can be very useful if you wanted to run a TeamSpeak 3 server on a VPS and have complete control of it. Personally I like using a VPS Server to run TeamSpeak 3. It gives me complete control and I don’t need to rely on another provider. When I first went to install TeamSpeak 3 on a Linux server I found it was a little tricky. After a few rounds of trial and error I found a very simple process and was up and running in less than 10 minutes. Below are the simple steps I took to get my TeamSpeak 3 server up and running in a few minutes.

You do not want to run teamspeak as the root user. We will start with creating a user, password and setting the file permissions correctly. You will need to login to your server using Putty or another ssh program. I personally use WinSCP and PuTTy.


Auto Restart Script for TS3 Linux VPS

Original Article | Installing and setting up TS3 on a Linux CentOs VPS with Auto Restart

Full Screencast on installing and setting up TS3 on a VPS with Auto Restart Script.

You can watch the video or you can read the basic install below.


The fist step is creating the user for your TS3 installation.

useradd ts3user

You need to create a password for the user. You will need to enter the password 2 times.

passwd ts3user

You will need to change the file permissions for the user to 0755. You do this by running the following command.

passwd ts3user

You now need to go into that directory

chmod 755 /home/ts3user

Once the user is created and file permissions set you will need to switch to that user.

su ts3user

Now you need to go into the directory

cd /home/ts3user

Once in the directory, you need to download the version of teamspeak you want to use. You can get that from http://www.teamspeak…page=downloads
I am using 64bit CentOs 6.3 so I will use the following url.

To download the file simply copy the url and paste it into the command window by right clicking. You will need to use the wget command before the url. It will look like this.


Once the file is downloaded you need to unpack it.

tar -zxvf teamspeak3-server_linux-amd64-

Now you need to delete the downloaded file.

rm teamspeak3-server_linux-amd64-

We can now change the name of the folder so it is a little shorter.

mv teamspeak3-server_linux-amd64 teamspeak3-server

Now you will need to go into that directory.

cd teamspeak3-server

You do not have a ts3server.ini file yet so we need to create one. This is the file we will need to edit so we can change the ip address and ports if needed.

./ createinifile=1

You will get some information including your master token key. Copy it by highlighting it and using normal copy ctrl+c. Now you need to edit the ts3server.ini file. You can download this file from the root/home/ts3user/teamspeak3-server_linux-amd64 folder on your server. For starters, you just need to add the ip address for the voice connection. Upload the file and then start the server.

./ start

Your server is now running. You can stop, start and restart the server with the same command. You simply need to change the command at the end.


./ stop

./ restart

I hope this helps.


There are 11 comments .

Ray —


Thank you for the tutorial, however I have a different os and am not using a vps. I am using Opensuse 12.3 and using the box as a router/dhcp/firewall/samba. I have everything working on the box however I cannot seem to get ts to work no matter what I do, or what ports i open. I have 2 network cards, 1 for external network and 1 for internal. My ts3 server is hosted off of the external ip of network card 2 which it gets it ip from my isp provider through a wireless router. I have looked for many days and read many articles to resolve my problem but to no avail was hoping you folks would be able to help me.



Reply »


I am not familiar with that operating system. I would think if it’s linux it would work the same way and with CentOs. You may have to contact TeamSpeak to see if they have a server version that is compatible with the operating system you use. The network shouldn’t be an issue if you have a dedicated IP address for the teamspeak server. You may need check with TeamSpeak to verify the ports you would need to open. By default the ports needed for TS on CentOs are already open and doesn’t cause any issues. Because I don’t know the version of Linux you are using I can’t really give you good advice on that.


Reply »
    Ray —

    Thanks for the reply, I have figured out what the problem was and have the TS3 server up and running. Because I am not running the server as a service when I started TS3 server it was not loading the ts3serverini file, once i did a ./ start inifile=ts3server.ini it worked. originally the server was defaulting to as per the logs had I been more concerned about the logs I would have solved this sooner.


    Reply »
Dave —

Thanks guys this tutorial really really helped I was starting to pull my hair out trying to get my TS3 server running!

One question though how hard is it to run a secondary TS3 server on the same VPS, as I want to have one for my friends clan so we can share the cost of the VPS.

Reply »

Hey Ed

I have followed the TeamSpeak install to the letter in your video, and it is up and running fine, only problem I have is setting up the script to start the TeamSpeak when the server is rebooted.
I have downloaded your file and checked it content which is exactly the same as how I have the setup for TeamSpeak, ie, /home/ts3user/teamspeak3-server, I have copied the file “teamspeak” to the etc/init.d folder and turned the TeamSpeak server off, but when I type in the commands in root chkconfig –add teamspeak I get the message “server teamspeak does not support chkconfig.

Any idea’s ?

Thanks Paul.

Reply »
mbrower —

I was fine up till the end. Once I got to to the end for the chkconfig commands I get errors.
For this attempt I left everything the same as in the video and instructions. Not changing any names etc.

root@— [~]# service teamspeak status
env: /etc/init.d/teamspeak: No such file or directory
root@—- [~]# chckconfig –level 2345 teamspeak on
-bash: chckconfig: command not found
root@—– [~]# ./ start
-bash: ./ No such file or directory
root@—— [~]# service teamspeak restart
env: /etc/init.d/teamspeak: No such file or directory
root@—— [~]#

Reply »
John Richardson —

You seemed to have missed out an important step of making the teamspeak file executable. You need to chmod +x the file otherwise it wont run on boot, thanks for the tutorial! 🙂

Reply »
datas —

I have followed step by step in this tutorial, everything is describe, how to install and configure TeamSpeak3 server with MySQL – MariaDB on Debian/Ubuntu.

Reply »
jeromy —

it works. but when i try to make a new one on a different ip my server has. it wont even start. even when i edit the .ini file with a new ip. still fails to start.

Reply »

Share Your Thoughts!

Copyright © 2010 - 2014. DarkForge LLC, All Rights Reserved. Legal | TRUSTe Privacy Policy Privacy Policy | AUP | RSS Feed