{"id":725,"date":"2020-11-14T17:21:59","date_gmt":"2020-11-14T09:21:59","guid":{"rendered":"https:\/\/www.cith.ddnsfree.com:5444\/?p=725"},"modified":"2020-11-14T18:08:45","modified_gmt":"2020-11-14T10:08:45","slug":"installing-teamspeak-server-in-centos-7","status":"publish","type":"post","link":"https:\/\/blog.cithwu.com\/wp5444\/installing-teamspeak-server-in-centos-7\/","title":{"rendered":"Installing TeamSpeak Server in CentOS 7"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>First start by updating your CentOS 7 server packages and then install needed dependencies for the installation process using following commands.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># yum update\n# yum install vim wget perl tar net-tools bzip2<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Next, you need to create a user for TeamSpeak Server process to ensure that the TeamSpeak server is running in user mode detached from other processes.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># useradd teamspeak\n# passwd teamspeak<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Now go to the TeamSpeak Server download page and grab the most recent version (i.e. 3.2.0) using following wget command and then extract the tarball and copy all of the files to our unprivileged user\u2019s home directory as shown.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># wget -c http:\/\/dl.4players.de\/ts\/releases\/3.2.0\/teamspeak3-server_linux_amd64-3.2.0.tar.bz2 \n# tar -xvf teamspeak3-server_linux_amd64-3.2.0.tar.bz2 \n# mv teamspeak3-server_linux_amd64 teamspeak3 \n# cp -R teamspeak3 \/home\/teamspeak\/ \n# chown -R teamspeak:teamspeak \/home\/teamspeak\/teamspeak3\/<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Once everything in place, now switch to teamspeak user and start the teamspeak server manually using following commands.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># su - teamspeak \n$ cd teamspeak3\/ \n$ .\/ts3server_startscript.sh start<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>To manage TeamSpeak Server under Systemd services, you need to create a teamspeak service unit file.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ su - \n# vi \/etc\/systemd\/system\/teamspeak.service<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following configuration in the unit file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Unit]\nDescription=Team Speak 3 Server\nAfter=network.target\n\n&#91;Service]\nWorkingDirectory=\/home\/teamspeak\/teamspeak3\/\nUser=teamspeak\nGroup=teamspeak\nType=forking\nExecStart=\/home\/teamspeak\/ts3server_startscript.sh start inifile=ts3server.ini\nExecStop=\/home\/teamspeak\/ts3server_startscript.sh stop\nPIDFile=\/home\/teamspeak\/ts3server.pid\nRestartSec=15\nRestart=always\n\n&#91;Install]\nWantedBy=multi-user.target<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># systemctl start teamspeak\n# systemctl enable teamspeak\n# systemctl status teamspeak\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>When you start the teamspeak server for the first time, it generates a administrator token\/key which you will use to connect to the server from a TeamSpeak Client. You can view the log file to get the key.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># cat \/home\/teamspeak\/logs\/ts3server_2017-08-09__22_51_25.819181_1.log<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Next, TeamSpeak listens on a number of ports: 9987 UDP (TeamSpeak Voice service), 10011 TCP (TeamSpeak ServerQuery) and 30033 TCP (TeamSpeak FileTransfer).<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore modify your firewall rules to open these ports as follows.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># firewall-cmd --zone=public --add-port=9987\/udp --permanent\n# firewall-cmd --zone=public --add-port=10011\/tcp --permanent\n# firewall-cmd --zone=public --add-port=30033\/tcp --permanent\n# firewall-cmd --reload<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First start by u&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[10],"class_list":["post-725","post","type-post","status-publish","format-standard","hentry","category-9","tag-installing-teamspeaker"],"_links":{"self":[{"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/posts\/725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/comments?post=725"}],"version-history":[{"count":1,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/posts\/725\/revisions"}],"predecessor-version":[{"id":726,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/posts\/725\/revisions\/726"}],"wp:attachment":[{"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/media?parent=725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/categories?post=725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/tags?post=725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}