Install Teamspeak 3 on CentOS with cPanel
TeamSpeak is proprietary voice-over-Internet Protocol (VoIP) software that allows computer users to speak on a chat channel with fellow computer users, much like a telephone conference call. The target audience for TeamSpeak is gamers, who can use the software to communicate with other players on the same team of a multiplayer game. Communicating by voice gives a competitive advantage by allowing players to keep their hands on the controls.
Update system
yum -y update
Add Teamspeak user
useradd teamspeak
Download, unzip and cleanup Teamspeak
cd /home/teamspeak
wget http://ftp.4players.de/pub/hosted/ts3/releases/3.0.11.2/teamspeak3-server_linux-amd64-3.0.11.2.tar.gz
tar xvfz teamspeak3-server_linux-amd64-3.0.11.2.tar.gz
mv teamspeak3-server_linux-amd64/* `pwd`
rm -rf teamspeak3-server_linux-amd64 && rm -rf teamspeak3-server_linux-amd64-3.0.11.2.tar.gz
Add chkconfig support to startup file and link to binary
sed -i 's/# All rights reserved/# All rights reservedn# chkconfig: 2345 99 00/g' ts3server_startscript.sh
ln -s /home/teamspeak/ts3server_startscript.sh /etc/init.d/teamspeak
Change permissions of Teamspeak
chown -R teamspeak:teamspeak /home/teamspeak
chown -R teamspeak:teamspeak /etc/init.d/teamspeak
Remount shared memory - Note
mount -t tmpfs tmpfs /dev/shm
Open ports in iptables
iptables -I INPUT -p udp --dport 9987 -j ACCEPT iptables -I INPUT -p udp --sport 9987 -j ACCEPT iptables -I INPUT -p tcp --dport 30033 -j ACCEPT iptables -I INPUT -p tcp --sport 30033 -j ACCEPT iptables -I INPUT -p tcp --dport 10011 -j ACCEPT iptables -I INPUT -p tcp --sport 10011 -j ACCEPT service iptables save && service iptables restart
# Change to Teamspeak user and run server
su teamspeak
service teamspeak start
echo "Your Teamspeak URL is: `curl website.com`"