Teamspeak/install
From GameCPWiki
Contents |
Overview
GameCP supports the management of Teamspeak2 servers. It allows admins to assign an existing client or a new voice only client with a Teamspeak2 server.
- A single instance of Teamspeak2 server is required per machine.
- Teamspeak supports 'sub' or multiple servers under one instance.
- Users don't have their own Teamspeak files.
- Users can edit ts2 account password
- Admins can edit user password and slots
- You are required to own teamspeak 2 licensses, unauthorized teamspeak server hostined is NOT supported by GameCP.
Installing Teamspeak on Linux
- SSH to your remote server
mkdir /usr/local/gcp/teamspeak adduser -d /usr/local/gcp/teamspeak teamspeak chown teamspeak /usr/local/gcp/teamspeak su teamspeak cd /usr/local/gcp/teamspeak wget ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/ts2_server_rc2_202319.tar.bz2 tar -jxvf ts2_server_rc2_202319.tar.bz2 cd tss2_rc2/ # update rm -f server_linux wget ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/202401/server_linux chmod +x server_linux ./teamspeak2-server_startscript start
- Locate the superadmin password, you'll need to copy the superadmin password
./teamspeak2-server_startscript passwords
Configure auto start
create a script in /etc/init.d/ named teamspeak
#! /bin/bash
#chkconfig: 345 20 80
#description: teamspeak start script
# Copyright (c) 2002 TeamSpeak team All rights reserved.
#
# Author: Niels Werensteijn 2002
# Reinder Cuperus 2004
# MODIFY AS NEEDED:
# Location where teamspeak is installed
DIR=/usr/local/gcp/teamspeak/tss2_rc2
# Location of teamspeak pid (normally you don't have to touch it if variable DIR is good)
PID=$DIR/tsserver2.pid
# Location of teamspeak executable (normally you don't have to touch it if variable DIR is good)
PROCESS=$DIR/server_linux
# Teamspeak running user
USER=teamspeak
# DON'T TOUCH ANYTHING BELOW
case "$1" in
start)
if [ ! -f $PID ]
then
sudo -u $USER $PROCESS -PID=$PID
else
if kill -CHLD `cat $PID`
then
echo Server already running
else
echo PID-file not deleted, server down
sudo -u $USER $PROCESS -PID=$PID
fi
fi
;;
stop)
if [ -f $PID ]
then
kill -TERM `cat $PID`
echo -n Waiting for process to go down
N=0
while [ -f $PID -a $N -lt 10 ]
do
echo -n .
sleep 1
N=$(($N+1))
done
if [ -f $PID ]
then
echo Failed
kill -KILL `cat $PID`
else
echo OK
fi
else
echo "Process ain't running"
fi
;;
restart)
$0 stop && $0 start || return=$rc_failed
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
echo PID-file not deleted, server down
sudo -u $USER $PROCESS -PID=$PID
Installing Teamspeak on Windows
- Login to your remote machine
- Download teamspeak
- Install & Launch it
- Copy the SAdmin Password - this is the "Teamspeak Superadmin Password".
Configure GameCP for Teamspeak
- Login to GameCP as an admin
- Go to Manage Machines
- Edit the machine that has Teamspeak
- Click the Features Tab
- Set 'Teamspeak Host' to 'Yes'.
- Click Edit Machine to save the settings
- Go back to the Features tab
- Fill out the TeamSpeak information
- Teamspeak Superadmin Username:
- Teamspeak Superadmin Password:
- Click Edit Machine to save the settings
You have now configured the machine for teamspeak.
For advanced administration you will need to use the teamspeak control panel that is part of the server.
More info & Thanks
Special thanks to: dinoshells(orbit) for his original guide
More information on installing Teamspeak available on the forums: http://forums.gamecp.com/showthread.php?t=488

