Home Download Debian

Installing TeamSpeak server on Debian

TeamSpeak is a proprietary Voice over IP software that allows computer users to speak on a chat channel with fellow computer users, much like a telephone conference call. A TeamSpeak user will often wear a headset with an integrated microphone. Users use the TeamSpeak client software to connect to a TeamSpeak server of their choice, from there they can join chat channels and discuss things.

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. (wikipedia)

Installing TeamSpeak server

1. After logging in as root, we create a new user called teamspeak. For security reasons, this user will create an instance of Teamspeak at each system startup.

useradd -d /home/teamspeak teamspeak

/home/teamspeak will be user's home folder.

2. Download the latest version of Teamspeak from http://www.teamspeak.com/?page=downloads (change the filename accordingly).

wget http://teamspeak.gameserver.gamed.de/ts3/releases/3.0.3/teamspeak3-server_linux-x86-3.0.3.tar.gz -O teamspeak3-server_linux-x86-3.0.3.tar.gz

3. unpack the file

tar -zxvf teamspeak3-server_linux-x86-3.0.3.tar.gz

4. change directory

cd teamspeak3-server_linux-x86

5. run the startup script

./ts3server_minimal_runscript.sh

Warning: as this is the first time you will run the Teamspeak, it will provide you with some credentials required to manage your server. Write down the useraname (mine was serveradmin) and password (mine was 1I8QFi4f), and also the token (mine was t765VBfyu75viuytOVukgyAuH1VXRZWjC).

6. stop the Teamspeak server by pressing CTRL+C (as in ^C)

7. change the owner of Teamspeak folder

chown teamspeak:teamspeak teamspeak3-server_linux-x86 -R

8. create a startup script

nano /etc/init.d/ts3

9. paste in

#!/bin/sh

USER="teamspeak"
TS3='/home/username/teamspeak3-server_linux-x86'
STARTSCRIPT="$TS3/ts3server_startscript.sh"

cd $TS3

su $USER -c "$STARTSCRIPT start"

change /home/username/teamspeak3-server_linux-x86 with the path where you have unpacked the archive at step 3

10. make the script executable
chmod +x /etc/init.d/ts3


11. add our script to system startup

sudo update-rc.d ts3 defaults

12. usefull commands

to see if Teamspeak is running

top -u teamspeak

to send kill signal

kill -9 4977

where 4977 is the pid shown in top -u teamspeak

6 comments:

Mico said...

Thank you. Great tutorial.

Speedy Gonzales said...

you're welcome

Ernesto Navarro said...

Great post but you can have errors because of missing LSB in the startup script so add after #!/bin/sh this:
### BEGIN INIT INFO
# Provides: teamspeak
# Required-Start: networking
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: TeamSpeak Server Daemon
# Description: Starts/Stops/Restarts the TeamSpeak Server Daemon
### END INIT INFO

Speedy Gonzales said...

@Ernesto: Thanks for the tip, I had this problem very often, I didn't know what to do about it. By the way, if someone wants to read about it http://wiki.debian.org/LSBInitScripts

Chris Schildwacht said...

I had to do the following

sudo chmod +x /etc/init.d/ts3

Speedy Gonzales said...

@Chris Schildwacht: thanks for the tip!

Post a Comment