We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

Instalacion TeamSpeak 3


juanillo
05/04/2012, 22:15
Hola,

Visto que un usuario pregunta como instalarlo, pego aqui mi chuleta. Así instalo yo, y así lo tengo copiado en mi chuleta para no tener que pensar y hacerlo de cuajo :P

//////////////////////\\\\\\\\\\\\\\\\\\\\\\\

* crear carpeta "scripts" bajo home
* crear usuario / grupo llamado "teamspeak" con bin/sh y NO LOGIN
* crear carpeta /home/teamspeak/ts3server/ y cambiar propietario/permisos a teamspeak/teamspeak

* copiar scripts a su /home/scripts
* cambiar user/group del ts3check a teamspeak/teamspeak
* cambiar permisos scripts a 755
cd /home/scripts
chmod +x ts3update.sh
chmod +x tscheck.sh
* crear carpeta ts3update en root
* extract y copiar teamspeak server en esa carpeta [root/ts3update/teamspeak3-server_linux-amd64]
* instalar usando el script de actualizaciones:
cd /home/scripts
sh ts3update.sh

* copiar el defaults.sql (cambiar user/group a teamspeak) a directorio /home/teamspeak/ts3server/sql
* copiar la licencia (cambiar user/group a teamspeak) a la raiz

* crear el cron
ejecutar: /home/scripts/tscheck.sh

*Crear acrchivo query_ip_whitelist.txt en raiz ts3 con esto dentro (IP de tsviewer, etc):

127.0.0.1
85.25.120.233

//////////////////////\\\\\\\\\\\\\\\\\\\\\\\

ACTUALIZAR :
wget ... ts server amd 64
* borrar el contenido de la carpeta [root/ts3update/]
* extract cortar y copiar teamspeak server en la carpeta [root/ts3update/teamspeak3-server_linux-amd64]
* Detener el cron
* Matar proceso teamspeak
* instalar usando el script de actualizaciones:
cd /home/scripts
sh ts3update.sh

//////////////////////\\\\\\\\\\\\\\\\\\\\\\\

script ts3update:

#!/bin/sh
# Script para actualizar el teamspeak
# INFO: descomprimir, copiar/cortar carpeta a dentro de "ts3update"
# de esta manera root/ts3update/teamspeak3-server_linux-amd64
# ejecutar con ./ts3update.sh
# Please change the following path to your ts2-directory.

# UPDPATH=/root/ts3update
chown -R teamspeak:teamspeak /root/ts3update
chmod -R +x /root/ts3update
cp -p -f -R /root/ts3update/teamspeak3-server_linux-amd64/* /home/teamspeak/ts3server/

//////////////////////\\\\\\\\\\\\\\\\\\\\\\\

script tscheck:

#!/bin/sh
# This is the crontab script for ts3.
#
# Please change the following path to your ts3-directory.

TS3PATH=/home/teamspeak/ts3server

# the rest should be kept as is

if test -r $TS3PATH/ts3server.pid; then
TS3PID=$(cat $TS3PATH/ts3server.pid)
if $(kill -CHLD $TS3PID >/dev/null 2>&1)
then
exit 0
fi
fi
cd $TS3PATH
./ts3server_startscript.sh start

//////////////////////\\\\\\\\\\\\\\\\\\\\\\\