Installing the TeamSpeak voice server Centos7
The following description of the installation very simple voice server TeamSpeak Centos7 in the system with a few commands.
At the start of upgrading our system
1 | yum update |
We install the necessary packages
1 | yum -y install nano wget perl tar net-tools bzip2 |
Teamspeak add the user to the system
1 | adduser teamspeak -d /opt/teamspeak |
Grab the latest available version of the server temspeak
1 | http://dl.4players.de/ts/releases/3.1.8/TeamSpeak3-Client-linux_amd64-3.1.8.run |
unpack
1 | tar xvf teamspeak3-server_linux_amd64*.tar.bz2 |
Move the downloaded files to the user
1 | mv teamspeak3-server_linux_amd64/* /opt/teamspeak |
Delete the downloaded pack
1 | rm -rf teamspeak3-server_linux_amd64* |
We give permission
1 | chown -R teamspeak: /opt/teamspeak |
Log into user created earlier and start the server
1 2 | su - teamspeak ./ts3server_startscript.sh start inifile=ts3server.ini |
We should get a console password
1 2 3 4 5 6 7 8 9 | [teamspeak@centos ~]$ ./ts3server_startscript.sh start inifile=ts3server.ini Starting the TeamSpeak 3 server TeamSpeak 3 server started, for details please view the log file [teamspeak@centos ~]$ ------------------------------------------------------------------ I M P O R T A N T ------------------------------------------------------------------ Server Query Admin Account created loginname= "serveradmin", password= "4CQJv1kq" |
We stop the server and create a script istartowy
1 | ./ts3server_startscript.sh stop |
1 | nano /lib/systemd/system/teamspeak.service |
The file should have a content:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [Unit] Description=TeamSpeak Server Service After=network.target [Service] Type=forking WorkingDirectory=/opt/teamspeak/ ExecStart=/opt/teamspeak/ts3server_startscript.sh start inifile=ts3server.ini ExecStop=/opt/teamspeak/ts3server_startscript.sh stop User=teamspeak Group=teamspeak PIDFile=/opt/teamspeak/ts3server.pid Restart=always RestartSec=9 StandardOutput=syslog StandardError=syslog SyslogIdentifier=teamspeak [Install] WantedBy=multi-user.target |
The last step is to run the script just in the system
1 | systemctl start teamspeak |
1 | systemctl enable teamspeak |
1 | systemctl status teamspeak |