• Compute
    Compute

    Configure a popular Linux OS or use popular developer Tools

  • Cloud hosting
    Cloud hosting

    Host a VPS in the Cloud in seconds

  • Collaborate, CMS, CRM`s
    Collaborate, CMS, CRM`s

    Collaborate with these popular CMS, CRM & collaboration tools

  • Database & E-Commerce
    Database & E-Commerce

    Create a database or an E-Commerce environment in seconds

How to: Host a Teamspeak 3 Server on your Ubuntu 18.04 VPS

Modified on Mon, Jun 22, 2020 at 3:05 PM


TABLE OF CONTENTS


Step One: Update and Upgrade

We are using a fresh machine for this tutorial, so the first thing we are going to do is update the system.

apt-get update && apt-get upgrade


Step Two: Non-root User


Now we will create a user without the ability to log in for Teamspeak to use. We are going to use ts in place of <username>. You are free to choose any username you wish, just be advised that there are references to the user ts further in this guide. You will need to adjust those to match the username you select.


adduser --disabled-login <username>


Step Three: Install


Next, we will move to the new users' home directory, download the latest Teamspeak server archive and unpack it.


cd /home/ts
su ts


wget $(curl -s https://www.teamspeak.com/en/downloads/#server | grep -o 'https://files.teamspeak-services.com/releases/server/.*/teamspeak3-server_linux_amd64-.*.tar.bz2' | head -n1) -O /home/ts/latest.tar.bz2


tar -xjf ./latest.tar.bz2 -C /home/ts/


cd teamspeak3-server_linux_amd64 


mv * ..


cd .. 


rm -rf latest.tar.bz2
su root


ls


Now we will accept the Teamspeak license agreement. This is not the only method available to do so, but it is generally one of the easiest. Just create a file named .ts3server_license_accepted


touch /home/teamspeak/.ts3server_license_accepted


Then we are going to set Teamspeak to start the server at boot.


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


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


systemctl enable teamspeak.service
systemctl start teamspeak.service


service teamspeak status



Now we need to get the privileged key for our first admin user. There will be a prompt when you log in for the first time where this information is going to be required.


cat /home/teamspeak/logs/ts3server_*


Step Four: Add your first Admin


Now open your Teamspeak Client and input your IP address under Connections -> Connect. For username and password, use what was supplied just above

When you are logged in, you will be prompted to insert the Access Token that was generated alongside your admin credentials.



Congratulations! You have successfully installed and configured a basic Teamspeak 3 server that holds 32 slots.


For more information about Teamspeak 3, please visit https://www.teamspeak.com/en/support/get-started/


Join our Private Discord Chat to chat with, as well as find community assistance from other Verified SkySilk Users: https://invite.gg/SkySilk  


CLICK TO DEPLOY AN UBUNTU LINUX VPS

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article