{"id":2469,"date":"2016-08-08T13:29:52","date_gmt":"2016-08-08T17:29:52","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2469"},"modified":"2017-11-24T17:59:36","modified_gmt":"2017-11-24T22:59:36","slug":"install-teamspeak-server-ubuntu-16","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/install-teamspeak-server-ubuntu-16\/","title":{"rendered":"How to install TeamSpeak server on Ubuntu 16"},"content":{"rendered":"<h1>How to install TeamSpeak server on Ubuntu 16<\/h1>\n<p>TeamSpeak is a voice over internet protocol (VoIP) software that allows users to communicate with each other over the internet. It is often used in computer gaming, but it is also used in business and for general communication between friends and family. This step-by-step article explains how to create and administrate a secure TeamSpeak server on your Ubuntu 16.04 LTS system.<\/p>\n<h2>Getting Started<\/h2>\n<p>Confirm that you have the following before you follow this guide:<br \/>\n\u2022 1 Node (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\"><b>Cloud Server<\/b><\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\"><b>Dedicated Server<\/b><\/a>) running Ubuntu 16.<br \/>\n\u2022 Root access to the node or one sudo non-root user<br \/>\n\u2022 A TeamSpeak client on your platform of choice in order to test things out.<br \/>\n\u2022 The following utilities: nano, wget, tar, perl, bzip2 (in case you don&#8217;t have them, but they should be installed by default on Ubuntu)<\/p>\n<h2>Tutorial<\/h2>\n<p>Start by running these commands on your Ubuntu 16.04 server. These commands will automatically get the latest update for your server.<\/p>\n<p><code>apt-get update && apt-get upgrade -y<\/code><\/p>\n<p>Ubuntu should include the nano, wget, perl and bzip2 binaries, but if they aren&#8217;t included then you&#8217;ll need to install the necessary packages.<\/p>\n<p><code>apt-get install nano wget tar perl bzip2<\/code><\/p>\n<h2>Teamspeak User Creation<\/h2>\n<p>First we will create a dedicated user that will be used to execute the TeamSpeak server software. This is important from a security standpoint; running daemon programs as root can be dangerous. Creating a new user will allow us to run TeamSpeak with limited privileges. This is done by executing the following command as root:<\/p>\n<p><code>adduser --disabled-login teamspeak<\/code><\/p>\n<p>You can leave the info fields empty and validate the information in the end by pressing Y or simply by pressing enter. It is required that you validate the information when creating the new user.<\/p>\n<p>Now we will install the latest version of the TeamSpeak server software by executing the following command:<\/p>\n<p><code>wget http:\/\/dl.4players.de\/ts\/releases\/3.0.12.4\/teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2<br \/>\ntar xvf teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2<br \/>\ncd teamspeak3-server_linux_amd64<br \/>\ncp * -R \/home\/teamspeak<br \/>\ncd ..<br \/>\nrm -rf teamspeak3-server_linux_amd64*<br \/>\nchown -R teamspeak:teamspeak \/home\/teamspeak<\/code><\/p>\n<h2>Startup Script<\/h2>\n<p>By default, the TeamSpeak server will not start when your system boots. You will need to create a startup script so that your system will automatically start the TeamSpeak server software on boot. To do this, we will create the following file:<\/p>\n<p><code>nano \/lib\/systemd\/system\/teamspeak.service<\/code><\/p>\n<p>Copy the following content into the startup script file:<\/p>\n<p><code class=\"gris\">[Unit]<br \/>\nDescription=Team Speak 3 Server<br \/>\nAfter=network.target<\/code><\/p>\n<p><code class=\"gris\">[Service]<br \/>\nWorkingDirectory=\/home\/teamspeak\/<br \/>\nUser=teamspeak<br \/>\nGroup=teamspeak<br \/>\nType=forking<br \/>\nExecStart=\/home\/teamspeak\/ts3server_startscript.sh start inifile=ts3server.ini<br \/>\nExecStop=\/home\/teamspeak\/ts3server_startscript.sh stop<br \/>\nPIDFile=\/home\/teamspeak\/ts3server.pid<br \/>\nRestartSec=15<br \/>\nRestart=always<\/code><\/p>\n<p><code class=\"gris\">[Install]<br \/>\nWantedBy=multi-user.target<\/code><\/p>\n<p>When you are done, save the file and exit the editor.<\/p>\n<p>Now we will start the TeamSpeak server and enable it to start when your system boots:<\/p>\n<p><code>systemctl --system daemon-reload<br \/>\nsystemctl start teamspeak.service<br \/>\nsystemctl enable teamspeak.service<\/code><\/p>\n<p>You can check that your server is actually running with the following command:<\/p>\n<p><code>systemctl status teamspeak.service<\/code><\/p>\n<h2>Firewall Rules Addition<\/h2>\n<p>If you are using Ubuntu\u2019s firewall service (iptables), you may need to open ports to allow access to your TeamSpeak server. This can be done by executing the following command:<\/p>\n<p><code>iptables -A INPUT -p udp --dport 9987 -j ACCEPT<br \/>\niptables -A INPUT -p udp --sport 9987 -j ACCEPT<br \/>\niptables -A INPUT -p tcp --dport 30033 -j ACCEPT<br \/>\niptables -A INPUT -p tcp --sport 30033 -j ACCEPT<br \/>\niptables -A INPUT -p tcp --dport 10011 -j ACCEPT<br \/>\niptables -A INPUT -p tcp --sport 10011 -j ACCEPT<\/code><\/p>\n<p>For your reference, these are the ports that are used by TeamSpeak:<\/p>\n<p>9987 UDP : TeamSpeak Voice service<br \/>\n10011 TCP : TeamSpeak ServerQuery<br \/>\n30033 TCP : TeamSpeak FileTransfer<\/p>\n<p>If you are using the iptables-services package, you can open these ports by adding this set of rules to your iptables file:<\/p>\n<p><code>-A INPUT -p udp --dport 9987 -j ACCEPT<br \/>\n-A INPUT -p udp --sport 9987 -j ACCEPT<br \/>\n-A INPUT -p tcp --dport 30033 -j ACCEPT<br \/>\n-A INPUT -p tcp --sport 30033 -j ACCEPT<br \/>\n-A INPUT -p tcp --dport 10011 -j ACCEPT<br \/>\n-A INPUT -p tcp --sport 10011 -j ACCEPT<\/code><\/p>\n<h2>Administrate Your TeamSpeak Server<\/h2>\n<p>When you first connect to your TeamSpeak server using the client software, you will be prompted to enter a privilege key. Entering this key will give you administrative access to the server from the client software. Note that this key can only be used one time.<\/p>\n<p>The privilege key has already been generated when the TeamSpeak server first started. To retrieve the key, run the following command:<\/p>\n<p><code>cat \/home\/teamspeak\/logs\/ts3server_*<\/code><\/p>\n<p>This command will return similar to the following:<\/p>\n<p><code class=\"gris\">2********* ********.520940|INFO    |ServerLibPriv |   |TeamSpeak 3 Server 3.0.12.4 (2016-04-25 15:16:45)<br \/>\n2********* ********.521029|INFO    |ServerLibPriv |   |SystemInformation: Linux 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 Binary: 64bit<br \/>\n2********* ********.521064|INFO    |ServerLibPriv |   |Using hardware aes<br \/>\n2********* ********.521891|INFO    |DatabaseQuery |   |dbPlugin name:    SQLite3 plugin, Version 2, (c)TeamSpeak Systems GmbH<br \/>\n2********* ********.521935|INFO    |DatabaseQuery |   |dbPlugin version: 3.8.6<br \/>\n2********* ********.522295|INFO    |DatabaseQuery |   |checking database integrity (may take a while)<br \/>\n2********* ********.548703|INFO    |SQL           |   |db_CreateTables() tables created<br \/>\n2********* ********.724410|WARNING |Accounting    |   |Unable to find valid license key, falling back to limited functionality<br \/>\n2********* ********.946351|INFO    |              |   |Puzzle precompute time: 1193<br \/>\n2********* ********.947038|INFO    |FileManager   |   |listening on 0.0.0.0:30033<br \/>\n2********* ********.948636|INFO    |VirtualSvrMgr |   |executing monthly interval<br \/>\n2********* ********.948799|INFO    |VirtualSvrMgr |   |reset virtualserver traffic statistics<br \/>\n2********* ********.020816|INFO    |CIDRManager   |   |updated query_ip_whitelist ips: 127.0.0.1,<br \/>\n2********* ********.021840|INFO    |Query         |   |listening on 0.0.0.0:10011<br \/>\n2********* ********.015755|INFO    |VirtualServer |1  |listening on 0.0.0.0:9987<br \/>\n2********* ********.016218|INFO    |VirtualServer |1  |client 'server'(id:0) added privilege key for servergroup 'Server Admin'(id:6)<br \/>\n2********* ********.016251|WARNING |VirtualServer |1  |--------------------------------------------------------<br \/>\n2********* ********.016272|WARNING |VirtualServer |1  |ServerAdmin privilege key created, please use the line below<br \/>\n2********* ********.016290|WARNING |VirtualServer |1  |token=******************************************************<br \/>\n2********* ********.016318|WARNING |VirtualServer |1  |--------------------------------------------------------<\/code><\/p>\n<p>What you are looking for here is the token. Copy and paste it into your TeamSpeak client. If everything is successful, you will get this message:<\/p>\n<p><code class=\"gris\">Privilege Key successfully used.<\/code><\/p>\n<p>Your newly-connected user will then be granted full administrative rights over your TeamSpeak server.<\/p>\n<h2>Conclusion<\/h2>\n<p>You\u2019ve now successfully installed and configured a TeamSpeak server on your Ubuntu 16.04 LTS system. You have also created a startup script for the server so that it is executed automatically when your system boots and configured your iptables firewall to allow external users to connect using TeamSpeak\u2019s ports. You can now enjoy all of the features of your TeamSpeak server and start communicating with your friends and colleagues.<\/p>\n<p>If you found this article helpful, feel free to share it with your friends and let us know in the comments below! <\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How to install TeamSpeak server on Ubuntu 16 TeamSpeak is a voice over internet protocol (VoIP) software that allows users to communicate with each other over the internet. It is often used in computer gaming, but it is also used in business and for general communication between friends and family. This step-by-step article explains how<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[],"class_list":["post-2469","post","type-post","status-publish","format-standard","hentry","category-applications","operating_system-ubuntu-16-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to install TeamSpeak server on Ubuntu 16 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to install Teamspeak server on your Ubuntu 16 server. Read now &amp; Get your own TeamSpeak voice chat server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/install-teamspeak-server-ubuntu-16\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install TeamSpeak server on Ubuntu 16 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to install Teamspeak server on your Ubuntu 16 server. Read now &amp; Get your own TeamSpeak voice chat server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/install-teamspeak-server-ubuntu-16\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-08T17:29:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-11-24T22:59:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"963\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-teamspeak-server-ubuntu-16\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-teamspeak-server-ubuntu-16\\\/\"},\"author\":{\"name\":\"GloboTech Communications\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"headline\":\"How to install TeamSpeak server on Ubuntu 16\",\"datePublished\":\"2016-08-08T17:29:52+00:00\",\"dateModified\":\"2017-11-24T22:59:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-teamspeak-server-ubuntu-16\\\/\"},\"wordCount\":682,\"commentCount\":11,\"articleSection\":[\"Applications\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-teamspeak-server-ubuntu-16\\\/\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-teamspeak-server-ubuntu-16\\\/\",\"name\":\"How to install TeamSpeak server on Ubuntu 16 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\"},\"datePublished\":\"2016-08-08T17:29:52+00:00\",\"dateModified\":\"2017-11-24T22:59:36+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will show you how to install Teamspeak server on your Ubuntu 16 server. Read now & Get your own TeamSpeak voice chat server.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-teamspeak-server-ubuntu-16\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-teamspeak-server-ubuntu-16\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-teamspeak-server-ubuntu-16\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install TeamSpeak server on Ubuntu 16\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\\\/\\\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install TeamSpeak server on Ubuntu 16 - Globo.Tech","description":"This tutorial will show you how to install Teamspeak server on your Ubuntu 16 server. Read now & Get your own TeamSpeak voice chat server.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.globo.tech\/learning-center\/install-teamspeak-server-ubuntu-16\/","og_locale":"en_US","og_type":"article","og_title":"How to install TeamSpeak server on Ubuntu 16 - Globo.Tech","og_description":"This tutorial will show you how to install Teamspeak server on your Ubuntu 16 server. Read now & Get your own TeamSpeak voice chat server.","og_url":"https:\/\/www.globo.tech\/learning-center\/install-teamspeak-server-ubuntu-16\/","og_site_name":"Globo.Tech","article_published_time":"2016-08-08T17:29:52+00:00","article_modified_time":"2017-11-24T22:59:36+00:00","og_image":[{"width":1920,"height":963,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png","type":"image\/png"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.globo.tech\/learning-center\/install-teamspeak-server-ubuntu-16\/#article","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-teamspeak-server-ubuntu-16\/"},"author":{"name":"GloboTech Communications","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"headline":"How to install TeamSpeak server on Ubuntu 16","datePublished":"2016-08-08T17:29:52+00:00","dateModified":"2017-11-24T22:59:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-teamspeak-server-ubuntu-16\/"},"wordCount":682,"commentCount":11,"articleSection":["Applications"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/install-teamspeak-server-ubuntu-16\/","url":"https:\/\/www.globo.tech\/learning-center\/install-teamspeak-server-ubuntu-16\/","name":"How to install TeamSpeak server on Ubuntu 16 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-08-08T17:29:52+00:00","dateModified":"2017-11-24T22:59:36+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will show you how to install Teamspeak server on your Ubuntu 16 server. Read now & Get your own TeamSpeak voice chat server.","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-teamspeak-server-ubuntu-16\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/install-teamspeak-server-ubuntu-16\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/install-teamspeak-server-ubuntu-16\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to install TeamSpeak server on Ubuntu 16"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=2469"}],"version-history":[{"count":6,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2469\/revisions"}],"predecessor-version":[{"id":3895,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2469\/revisions\/3895"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}