{"id":2581,"date":"2018-11-09T12:32:11","date_gmt":"2018-11-09T17:32:11","guid":{"rendered":"https:\/\/easy-admin.ca\/?p=2581"},"modified":"2018-11-13T20:37:25","modified_gmt":"2018-11-14T01:37:25","slug":"installing-teamspeak-on-centos","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2018\/11\/09\/installing-teamspeak-on-centos\/","title":{"rendered":"Installing Teamspeak on Centos 7"},"content":{"rendered":"<p><strong>Teamspeak<\/strong> is a VOIP server that can be used for teams or multiple people to communicate. It is relatively lightweight, and secure, as updates are released regularly.<\/p>\n<p>How to install <strong>Teamspeak<\/strong> on a CentOS instance.<\/p>\n<h2>Prerequisites<\/h2>\n<p>Before we begin, you&#8217;ll need:<\/p>\n<ul>\n<li>CentOS 7 system (64 bit only).<\/li>\n<li>512 MB of RAM or higher.<\/li>\n<li><code>wget<\/code> (utility used for downloading files).<\/li>\n<li><code>nano<\/code> or <code>vim<\/code> (any text editor is fine).<\/li>\n<\/ul>\n<h2>Installation<\/h2>\n<h3>Prerequisites<\/h3>\n<p>Update the system packages. This may take some time.<\/p>\n<pre><code>yum update -y\r\n<\/code><\/pre>\n<p>Install tools needed for this tutorial.<\/p>\n<pre><code>yum install nano wget perl tar net-tools bzip2 -y\r\n<\/code><\/pre>\n<h3>Installation<\/h3>\n<p>Add an unprivileged user to run <strong>Teamspeak<\/strong>. When prompted, enter your desired password.<\/p>\n<pre><code>useradd ts\r\npasswd ts\r\n<\/code><\/pre>\n<p>Retrieve the <strong>Teamspeak<\/strong> server software.<br \/>\nMake sure you have the latest release <a href=\"https:\/\/teamspeak.com\/en\/downloads\/#server\" target=\"_blank\" rel=\"noopener\">here<\/a><\/p>\n<pre><code>cd ~\r\nwget http:\/\/dl.4players.de\/ts\/releases\/3.0.13.8\/teamspeak3-server_linux_amd64-3.5.0.tar.bz2\r\n<\/code><\/pre>\n<p>Extract the <strong>Teamspeak<\/strong> tarball and copy all of the files to our unprivileged user&#8217;s home directory.<\/p>\n<pre><code>tar -xvf teamspeak3-server_linux_amd64-3.5.0.tar.bz2\r\ncd teamspeak3-server_linux_amd64\r\ncp * -R \/home\/ts\r\n<\/code><\/pre>\n<p>Remove temporary files.<\/p>\n<pre><code>cd ~\r\nrm -rf teamspeak3-server_linux_amd64\r\nrm -rf teamspeak3-server_linux_amd64-3.5.0.tar.bz2\r\n<\/code><\/pre>\n<p>Grant the appropriate permissions to our <code>ts<\/code> user.<\/p>\n<pre><code>chown -R ts:ts \/home\/ts\r\n<\/code><\/pre>\n<p>Create a Systemd service for <strong>Teamspeak<\/strong>.<\/p>\n<pre><code>nano \/lib\/systemd\/system\/teamspeak.service\r\n<\/code><\/pre>\n<p>Paste the following:<\/p>\n<pre><code>[Unit]\r\nDescription=Team Speak 3 Server\r\nAfter=network.target\r\n[Service]\r\nWorkingDirectory=\/home\/teamspeak\/\r\nUser=ts\r\nGroup=ts\r\nType=forking\r\nExecStart=\/home\/teamspeak\/ts3server_startscript.sh start inifile=ts3server.ini\r\nExecStop=\/home\/teamspeak\/ts3server_startscript.sh stop\r\nPIDFile=\/home\/teamspeak\/ts3server.pid\r\nRestartSec=15\r\nRestart=always\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/code><\/pre>\n<p>Save and exit.<\/p>\n<p>Reload Systemd units.<\/p>\n<pre><code>systemctl --system daemon-reload\r\n<\/code><\/pre>\n<p>Make Teamspeak run on startup.<\/p>\n<pre><code>systemctl enable teamspeak.service\r\n<\/code><\/pre>\n<h3>Starting, stopping and restarting<\/h3>\n<p>Controlling <strong>Teamspeak<\/strong> is simple. You can control Teamspeak with the following command:<\/p>\n<pre><code>systemctl (option) teamspeak.service\r\n<\/code><\/pre>\n<p>Replace <code>(option)<\/code> with <code>start<\/code>, <code>stop<\/code>, or <code>restart<\/code>.<\/p>\n<p><strong>For now it will not start!<\/strong> Check the notes at the bottom of this post,<\/p>\n<p><em><strong>P.S<\/strong><\/em> If you are running a standalone Centos you may change the location in the configuration to \/var\/www\/html\/(Teamspeak).<\/p>\n<h3>Configuring the firewall<\/h3>\n<p>CentOS 7 no longer uses <code>iptables<\/code>. As an alternative, CentOS 7 comes with <code>firewalld<\/code> by default.<\/p>\n<p>Find the default zone. On Vultr instances running CentOS 7, the default zone is <code>public<\/code>.<\/p>\n<pre><code>firewall-cmd --get-default-zone\r\n<\/code><\/pre>\n<p>Open the default ports for <strong>Teamspeak<\/strong>. If each rule is added successfully, the output will read &#8220;success&#8221;.<\/p>\n<pre><code>firewall-cmd --zone=public --permanent --add-port=10011\/tcp\r\nfirewall-cmd --zone=public --permanent --add-port=30033\/tcp\r\nfirewall-cmd --zone=public --permanent --add-port=9987\/udp\r\n<\/code><\/pre>\n<p>Reload <code>firewalld<\/code>.<\/p>\n<pre><code>firewall-cmd --reload\r\n<\/code><\/pre>\n<p>Congratulations! You&#8217;ve successfully created a <strong>Teamspeak server<\/strong>. You can connect to it with the <a href=\"https:\/\/www.teamspeak.com\/en\/\" target=\"_blank\" rel=\"noopener\"><strong>Teamspeak Client<\/strong><\/a>. Sorry, for mobile they have a paid version for iPhone and Android! <em>Hummm<\/em><\/p>\n<h2><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2584\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2018\/11\/teamspeak-screenshoot.png\" alt=\"Teamspeak on Centos\" width=\"825\" height=\"619\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2018\/11\/teamspeak-screenshoot.png 825w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2018\/11\/teamspeak-screenshoot-300x225.png 300w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2018\/11\/teamspeak-screenshoot-768x576.png 768w\" sizes=\"auto, (max-width: 825px) 100vw, 825px\" \/><\/h2>\n<p>This is what it should look when you are connected!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2588\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2018\/11\/teamspeak-screenshoot-installed-1.png\" alt=\"\" width=\"833\" height=\"645\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2018\/11\/teamspeak-screenshoot-installed-1.png 833w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2018\/11\/teamspeak-screenshoot-installed-1-300x232.png 300w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2018\/11\/teamspeak-screenshoot-installed-1-768x595.png 768w\" sizes=\"auto, (max-width: 833px) 100vw, 833px\" \/><\/p>\n<p><strong>NOTES :<\/strong><\/p>\n<p>&#8211; Make sure you <strong>CHOWN<\/strong> all files to <strong>ts<\/strong>:<strong>ts<\/strong><br \/>\n&#8211; Create this <strong>empty file<\/strong> where your server directory is located to accept the license terms <strong>.ts3server_license_accepted<\/strong><br \/>\n&#8211; To <strong>retrieve the privilege key<\/strong> you need to check the Logs in the <strong>\/Logs<\/strong> directory where you installed your <strong>Teamspeak server<\/strong><\/p>\n<p><em><strong>Enjoy!<\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Teamspeak is a VOIP server that can be used for teams or multiple people to communicate. It is relatively lightweight, and secure, as updates are released regularly. How to install Teamspeak on a CentOS instance. Prerequisites Before we begin, you&#8217;ll need: CentOS 7 system (64 bit only). 512 MB of RAM or higher. wget (utility &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2018\/11\/09\/installing-teamspeak-on-centos\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Installing Teamspeak on Centos 7<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":2607,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Installing Teamspeak on Centos 7 - HP Server","description":"Teamspeak is a VOIP server that can be used for teams or multiple people to communicate. It is relatively lightweight, and secure, as updates are released regul"},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2581","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/2581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=2581"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/2581\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media\/2607"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=2581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=2581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=2581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}