How to Make A TeamSpeak Server on CentOS 7 ?

Source: Internet
Author: User
Keywords how to make a teamspeak 3 server install teamspeak server centos 7 how to install a teamspeak server on centos
TeamSpeak is a very popular cross-platform VoIP and text chat application that can be used for corporate internal business communication, education and training (lectures), online games, and chat communication between friends. TeamSpeak provides a solution that is simpler to use, strong in security, high in voice quality, and low in system and bandwidth utilization. The software adopts a client- server architecture, which can handle thousands of users in real time.

Alibaba Cloud Simple Application Server:  Anti COVID-19 SME Enablement Program

$300 coupon package for all new SMEs and a $500 coupon for paying customers.

TeamSpeak has the following key features:
  • Easy to use and highly customizable
  • Highly scalable
  • Support high security standards
  • Provide excellent voice quality
  • Allow low system resources and bandwidth usage
  • Support powerful file transfer
  • Support robust permission system
  • Support amazing 3D sound effects
  • Allow mobile connection
Seeing the above features, does it feel like this is a private voice chat server? Is it a bit tempting to build a TeamSpeak server of your own? If you have a VPS server, and friends who want to build a TeamSpeak server pay attention, this article will explain in detail how to build a TeamSpeak server on the CentOS 7 system and explain the relevant details.

Install TeamSpeak server on CentOS 7 system

1. Upgrade CentOS 7 system and install dependent toolkit

Before installing the server, first use the following commands to upgrade the CentOS 7 system and install the dependency kits required by the TeamSpeak server:
 # yum update
 # yum install vim wget perl tar net-tools bzip2

2. Add users who run TeamSpeak

For security reasons, the TeamSpeak server is not recommended to use the root user to execute, so we can create a user teamspeak to execute the TeamSpeak server program separately. Use the following command to create user teamspeak and set a password for it:
# useradd teamspeak
 # passwd teamspeak

3. Download the TeamSpeak server program and related processing

Download the latest version of the server program from the TeamSpeak official website, unzip the file, and copy the file to the home directory of the teamspeak user to facilitate authorization and file management. Of course, it is okay not to move the file, but it always feels uncomfortable. All commands are as follows:
# wget http://dl.4players.de/ts/releases/3.2.0/teamspeak3-server_linux_amd64-3.2.0.tar.bz2
 # tar -xvf teamspeak3-server_linux_amd64-3.2.0.tar.bz2
 # mv teamspeak3-server_linux_amd64 teamspeak3
 # cp -R teamspeak3 /home/teamspeak/
 # chown -R teamspeak:teamspeak /home/teamspeak/teamspeak3/

4. Manually start the TeamSpeak service

When all the files are in place, you can switch to the teamspeak user to start the TeamSpeak server. If you browse the program catalog, you will find that the TeamSpeak server program is already very convenient to use. It is a completely green version and runs directly without installation. The program also provides server management scripts to facilitate the operation of the server. Start the TeamSpeak server command as follows:
 # su - teamspeak
 $ cd teamspeak3/
 $ ./ts3server_startscript.sh start

If the following error message appears during the startup process:

TeamSpeak server startup error
The reason is that a TS3SERVER_LICENSE file needs to be read when the server starts. If there is no authorization file in the current working directory, an error will be reported. The processing method is also very simple. Use the following command to create a new file named ".ts3server_license_accepted" in the current directory:
 $ touch .ts3server_license_accepted
Then use the previous command to start the server, you can start the server normally. When starting the server for the first time, the following prompt will appear:

As you can see, the program will prompt to create a server administrator account and create a token string for the management server. This token string is used to manage the server through the client, so it will be reminded.

5. Add systemctl service

In order to manage the server conveniently, you can add the TeamSpeak server as a CentOS service, add a file named "ts3.service" in the "/lib/systemd/system/" directory, and use the following command:
 $ su -
 # vi  /lib/systemd/system/ts3.service
Add the following content to the "ts3.service" file:
[Unit]
 Description=Team Speak 3 Server
 After=network.target
 [Service]
 WorkingDirectory=/home/teamspeak/teamspeak3
 User=teamspeak
 Group=teamspeak
 Type=forking
 ExecStart=/home/teamspeak/teamspeak3/ts3server_startscript.sh start inifile=ts3server.ini
 ExecStop=/home/teamspeak/teamspeak3/ts3server_startscript.sh stop
 PIDFile=/home/teamspeak/teamspeak3/ts3server.pid
 RestartSec=15
 Restart=always
 [Install]
 WantedBy=multi-user.target

Then use the following command to start the TeamSpeak service, and set it to start automatically at boot, and finally check the service status:
 # systemctl start ts3
 # systemctl enable ts3
 # systemctl status ts3

If you see the following prompt, it means that the service has been added successfully and is working properly:

Okay, now the TeamSpeak server is installed, you can use the "systemctl" command to facilitate management, and you can start it automatically after booting.

6. Open the system firewall port

CentOS 7 has a firewall installed and enabled by default. Now you need to open all ports listened by the TeamSpeak server through the following command:
 # firewall-cmd --zone=public --add-port=9987/udp --permanent
 # firewall-cmd --zone=public --add-port=10011/tcp --permanent
 # firewall-cmd --zone=public --add-port=30033/tcp --permanent
 # firewall-cmd --reload

After all operations are completed, the server is set up.

Use of TeamSpeak client

After the server is set up, some basic settings are needed, otherwise the server will have no personality. Here is how to use the windows client to manage the server. The download and installation of the client will not be explained here, just download and install the program according to your own system version. After the installation is complete, connect to the server you built, you will see the following prompt asking whether to use token:

Remember the token code generated before? Enter this code into the dialog box, and you will get the management authority of the server, and you can configure the server. Select the server, then right-click to select the "Edit Virtual Server" menu, and you can manage the server. The typical settings are shown in the figure below:



Of course, you can also make more settings for the server and chat channels, and there will be no demonstration here.

At this point, the main work of building a TeamSpeak server through VPS has been completed. Of course, other content can be refined, including other server configurations, etc., which will not be repeated here, because in theory, it does not affect the use of main functions.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.