Results 1 to 4 of 4
Thread: Help! install ts3
Threaded View
-
04-01-2010, 16:13 #1
-= TeamSpeak User =-
- Join Date
- Jan 2010
- Location
- Germany
- Posts
- 3
Help! install ts3
Edit by mod
Please don't use this outdated script anymore! The script got an overhaul long time ago.
Please use the minimal or startscript instead
Hello...
i will install ts3 but it don't works. Pls help ...
I have me v server... this is what i do
1. log in to server
2. go to /home/ts3
teamspeak3-server_linux-x86-3.0.0-beta12.tar.gz
3. tar xfvz teamspeak3-server_linux-x86-3.0.0-beta12.tar.gz
total 6076
-rw-r--r-- 1 1002 1002 8412 Dec 31 06:50 CHANGELOG
-rw-r--r-- 1 1002 1002 23747 Dec 31 06:50 LICENSE
drwxr-xr-x 2 1002 1002 4096 Dec 31 06:50 doc
-rwxr-xr-x 1 1002 1002 194893 Dec 31 06:50 libts3db_mysql.so
-rwxr-xr-x 1 1002 1002 821569 Dec 31 06:50 libts3db_sqlite3.so
drwxr-xr-x 2 1002 1002 4096 Dec 31 06:50 serverquerydocs
drwxr-xr-x 4 1002 1002 4096 Dec 31 06:50 sql
-rwxr-xr-x 1 1002 1002 5131196 Dec 31 06:50 ts3server_linux_x86
4. i copy script and ini to folder
total 6096
-rw-r--r-- 1 1002 1002 8412 Dec 31 06:50 CHANGELOG
-rw-r--r-- 1 1002 1002 23747 Dec 31 06:50 LICENSE
drwxr-xr-x 2 1002 1002 4096 Dec 31 06:50 doc
-rwxr-xr-x 1 1002 1002 194893 Dec 31 06:50 libts3db_mysql.so
-rwxr-xr-x 1 1002 1002 821569 Dec 31 06:50 libts3db_sqlite3.so
drwxr-xr-x 2 1002 1002 4096 Dec 31 06:50 serverquerydocs
drwxr-xr-x 4 1002 1002 4096 Dec 31 06:50 sql
-rwxr-xr-x 1 root root 9495 Jan 4 16:30 startscript_ts3_linux.sh
-rw-r--r-- 1 root root 84 Jan 4 16:30 ts3db_mysql.ini
-rw-r--r-- 1 root root 285 Jan 4 16:31 ts3server.ini
-rwxr-xr-x 1 1002 1002 5131196 Dec 31 06:50 ts3server_linux_x86
5. startscript_ts3_linux.sh
#! /bin/bash
# Teamspeak 3 Linux Server Startscript
# Version: 1.1
# Author:
# Andreas Schlaupitz (Crytix)
# www.inc-gaming.net
# Function:
# Teamspeak 3 Server Startscript for Linux.
# The server is running after starting it in the background.
# Requirement:
# screen :: http://www.google.com/linux?hl=en&q=screen&btnG=Search
# awk :: http://www.google.com/linux?hl=en&q=...G=Search&meta=
############################*
# Configuration (Required):
#
# |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
# |~~ 1. SYSTEM PARAMETERS ~~~~~~~~~~|
# |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
# ~~ Description: Set the user who owns the CounterStrike Server (root is not recommended)
# ~~ Params: Existing user on your system
SYS_USER="root";
# ~~ Description: Path to the root directory of the server
# ~~ Params: System path
SYS_DIR="/home/ts3/teamspeak3-server_linux-x86/";
# ~~ Description: Server daemon
# ~~ Params: ts3server_linux_x86 / ts3server_linux_amd64
SYS_DAEMON="ts3server_linux_x86";
# ~~ Description: Name of the server on your system
SYS_NAME="TS3SERVER";
# ~~ Description: Description of the server
SYS_DESC="Teamspeak 3 Server";
# |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
# |~~ 2. SERVER START PARAMETER ~~~~~|
# |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
# ~~ Description: IPv4 Address of your server
# ~~ Params: XXX.XXX.XXX.XXX
START_PARAMS_VOICE_IP="000.I.P.000";
# ~~ Description: UDP port open for clients to connect to
# ~~ Params: Between 0 and 65535
# ~~ Default Value: 9987
START_PARAMS_DEFAULT_VOICE_PORT="8888";
# ~~ Description: Created automatically one virtual server when the TeamSpeak 3 process is started
# ~~ Params: 0 = Off / 1 = On
# ~~ Default Value: 1
START_PARAMS_CREATE_DEFAULT_VIRTUALSERVER="1";
# ~~ Description: Optional name of this server process to identity a group of servers with the same ID.
# ~~ Params: Must be unique
# ~~ Default Value: (<empty>)
START_PARAMS_MACHINE_ID="";
# ~~ Description: IP on which the file transfers are bound to
# ~~ Default Value: XXX.XXX.XXX.XXX
START_PARAMS_FILETRANSFER_IP="000.I.P.000";
# ~~ Description: TCP Port opened for file transfers
# ~~ Params: Between 0 and 65535
# ~~ Default 30033
START_PARAMS_FILETRANSFER_PORT="30033";
# ~~ Description: IP bound for incoming ServerQuery connections
# ~~ Default Value: XXX.XXX.XXX.XXX
START_PARAMS_QUERY_IP="000.I.P.000";
# ~~ Description: TCP Port opened for ServerQuery connections
# ~~ Params: Between 0 and 65535
# ~~ Default Value: 10011
START_PARAMS_QUERY_PORT="10011";
# ~~ Description: Cleared server database before starting up the server
# ~~ Params: 0 = Off / 1 = On
# ~~ Default Value: 0
START_PARAMS_CLEAR_DATABASE="0";
# ~~ Description: The physical path where the server will create logfiles
# ~~ Params: Path into server folder
# ~~ Default logs/
START_PARAMS_LOGPATH="logs/";
# ~~ Description: Name of the database plugin library used by the server instance
# ~~ Params: ts3db_sqlite3 = SQLite3 / ts3db_mysql = MySQL
# ~~ Default ts3db_sqlite3
START_PARAMS_DBPLUGIN="ts3db_sqlite3";
# ~~ Description: A custom parameter passed to the database plugin library
# ~~ Params: For example, the MySQL database plugin supports a parameter to specify
# ~~ the physical path of the pluginsconfiguration file
# ~~ Default (<empty>)
START_PARAMS_DBPLUGINPARAMETER="";
# ~~ Description: The physical path where your SQL script files are located
# ~~ Params: Path into server folder
# ~~ Default sql/
START_PARAMS_DBSQLPATH="sql/";
# ~~ Description: The physical path where your SQL installation files are located
# ~~ Params: This path will be added to the value of the "dbsqlpath" parameter
# ~~ Default create_sqlite/
START_PARAMS_DBSQLCREATEPATH="create_sqlite/";
# ~~ Description: The physical path where your license file is located
# ~~ Params: System path
# ~~ Default (<empty>)
START_PARAMS_LICENSEPATH="";
# ~~ Description: Create an INI-style config file with the values you have specified
# ~~ Params: 0 = Off / 1 = On
# ~~ Default Value: 0
START_PARAMS_CREATEINIFILE="0";
# ~~ Description: The physical path where your config file is located
# ~~ Params: /path/file
# ~~ Default Value: ts3server.ini
START_PARAMS_INIFILE="ts3server.ini";
#
# CONFIGURATION END
############################*
#DON'T EDIT ANYTHING BELOW THIS LINE - ACCEPT YOU KNOW WHAT YOU ARE DOING ~~~
############################*
# STARTSCRIPT CORE START
#
echo "| INFORMATION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~|";
echo "| Script: Teamspeak 3 Linux Startscript |";
echo "| Version: 1.1 |";
echo "| Author: Andreas Schlaupitz |";
echo "| Website: www.inc-gaming.net |";
echo "| Creation Date: 2009-12-21 |";
echo "| Last Update: 2009-12-22 |";
echo "|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~|";
# ~~ Assembly start parameters
PARAMS="voice_ip=$START_PARAMS_VOICE_IP default_voice_port=$START_PARAMS_DEFAULT_VOICE_POR T create_default_virtualserver=$START_PARAMS_CREATE_ DEFAULT_VIRTUALSERVER machine_id=$START_PARAMS_MACHINE filetransfer_ip=$START_PARAMS_FILETRANSFER_IP filetransfer_port=$START_PARAMS_FILETRANSFER_PORT query_ip=$START_PARAMS_QUERY_IP query_port=$START_PARAMS_QUERY_PORT clear_database=$START_PARAMS_CLEAR_DATABASE logpath=$START_PARAMS_LOGPATH dbplugin=$START_PARAMS_DBPLUGIN dbpluginparameter=$START_PARAMS_DBPLUGINPARAMETER dbsqlpath=$START_PARAMS_DBSQLPATH dbsqlcreatepath=$START_PARAMS_DBSQLCREATEPATH licensepath=$START_PARAMS_LICENSEPATH createinifile=$START_PARAMS_CREATEINIFILE inifile=$START_PARAMS_INIFILE";
# ~~ Check awk package
if [ ! -x /usr/bin/awk ]; then
echo "~~> Error >> Starscript cannot be used";
echo "~~> Reason >> AWK seems to be not installed";
echo "~~> Solution >> Install the Linux package 'awk'";
exit 1;
fi;
# ~~ Check screen package
if [ ! -x /usr/bin/screen ]; then
echo "~~> Error >> Starscript cannot be used";
echo "~~> Reason >> Screen seems to be not installed";
echo "~~> Solution >> Install the Linux package 'screen'";
exit 1;
fi;
# ~~ Get mode (Root/Nonroot)
if [ `whoami` = root ]; then
usagetype=root;
else
usagetype=nonroot;
fi;
# ~~ Start function
start()
{
if [ ! -d $SYS_DIR ]; then
echo "~~> Error >> Server could not be started";
echo "~~> Reason >> $SYS_DIR does not exists";
echo "~~> Solution >> Please check the startscript configuration";
exit 1;
fi;
if [ ! -x $SYS_DIR/$SYS_DAEMON ]; then
echo "~~> Error >> Deamon could not be executed";
echo "~~> Reason >> Either the deamon is not executable or the startscript configuration is incorrect";
echo "~~> Solution >> 1. chmod u + x $SYS_DIR$SYS_DAEMON 2. Check the startscript configration";
exit 1;
fi;
if status; then
echo "~~> Error >> Server is already started";
echo "~~> Reason >> Already started";
echo "~~> Solution >> Stop the server";
exit 1;
fi;
case "$usagetype" in
root)
su - $SYS_USER -c "cd $SYS_DIR ; screen -AmdS $SYS_NAME ./$SYS_DAEMON $PARAMS";
;;
nonroot)
cd $SYS_DIR ; screen -AmdS $SYS_NAME ./$SYS_DAEMON $PARAMS;
;;
esac
}
# ~~ Stop function
stop ()
{
if ! status; then
echo "~~> Error >> Server could not be found";
echo "~~> Reason >> The daemon is not started";
echo "~~> Solution >> Start the server";
exit 1;
fi;
case "$usagetype" in
root)
tmp=$(su - $SYS_USER -c "screen -ls" | awk -F . "\$2 ~ /^$SYS_NAME[[:space:]].*/ {print \$1}" | awk '{print $1}');
su - $SYS_USER -c "screen -r $tmp -X quit"M
;;
nonroot)
screen -r $(screen -ls | awk -F . "\$2 ~ /^$SYS_NAME[[:space:]].*/ {print \$1}" | awk '{print $1}') -X quit;
;;
esac;
}
# ~~ Status function
status ()
{
case "$usagetype" in
root)
su - $SYS_USER -c "screen -ls" | grep [.]$SYS_NAME[[:space:]] > /dev/null
;;
nonroot)
screen -ls | grep [.]$SYS_NAME[[:space:]] > /dev/null
;;
esac
}
# ~~ Watch function
watch () {
if ! status;
then echo "$SYS_DESC $SYS_NAME could not be found. Probably not running."; exit 1; fi
case "$usagetype" in
root)
tmp=$(su - $SYS_USER -c "screen -ls" | awk -F . "\$2 ~ /^$SYS_NAME[[:space:]].*/ {print \$1}" | awk '{print $1}')
su - $SYS_USER -c "screen -r $tmp"
;;
nonroot)
screen -r $(screen -ls | awk -F . "\$2 ~ /^$SYS_NAME[[:space:]].*/ {print \$1}" | awk '{print $1}')
;;
esac
}
case "$1" in
start)
echo "~~> Action >> Starting $SYS_NAME ($SYS_DESC)";
start
echo "~~> Success >> Server is started";
;;
stop)
echo "~~> Action >> Stopping $SYS_NAME ($SYS_DESC)";
stop
echo "~~> Success >> Server is stopped";
;;
restart)
echo "~~> Action >> Restarting $SYS_NAME ($SYS_DESC)";
status && stop
start
echo "~~> Success >> Server is restarted";
;;
status)
if status; then
echo "~~> Info >> The server is online : $SYS_NAME ($SYS_DESC)";
else
echo "~~> Info >> The server is offline : $SYS_NAME ($SYS_DESC)";
fi;
;;
watch)
watch
;;
*)
echo "~~> Usage >> $0 {start|stop|status|restart|watch}";
echo " >> While watching press ctrl-a, ctrl-d to stop watching without stopping the server.";
exit 1;
;;
esac
#
# STARTSCRIPT CORE END
############################*
exit 0
6. ts3db_mxsql.ini
[config]
host=000.I.P.000
username=ts3user
password=ts3pass
database=tedb
socket=
~
~
7. ts3server.ini
machine_id=
default_voice_port=8888
voice_ip=000.I.P.000
filetransfer_port=30033
filetransfer_ip=000.I.P.000
query_port=10011
query_ip=000.I.P.000
dbplugin=ts3db_mysql
dbpluginparameter=ts3db_mysql.ini
dbsqlpath=sql/
dbsqlcreatepath=create_mysql/
logpath=logs
logquerycommands=1
~
~
8. dir
total 6096
-rw-r--r-- 1 1002 1002 8412 Dec 31 06:50 CHANGELOG
-rw-r--r-- 1 1002 1002 23747 Dec 31 06:50 LICENSE
drwxr-xr-x 2 1002 1002 4096 Dec 31 06:50 doc
-rwxr-xr-x 1 1002 1002 194893 Dec 31 06:50 libts3db_mysql.so
-rwxr-xr-x 1 1002 1002 821569 Dec 31 06:50 libts3db_sqlite3.so
drwxr-xr-x 2 1002 1002 4096 Dec 31 06:50 serverquerydocs
drwxr-xr-x 4 1002 1002 4096 Dec 31 06:50 sql
-rwxrwxrwx 1 root root 9495 Jan 4 17:02 startscript_ts3_linux.sh
-rwxrwxrwx 1 root root 84 Jan 4 17:02 ts3db_mysql.ini
-rwxrwxrwx 1 root root 285 Jan 4 17:03 ts3server.ini
-rwxr-xr-x 1 1002 1002 5131196 Dec 31 06:50 ts3server_linux_x86
9. i start first time ./ts3server_linux_x86 start
Logging started
2010-01-04 16:07:23.635684|INFO |ServerLibPriv | | Server Version: 3.0.0-beta12 [Build: 9596]
2010-01-04 16:07:23.636144|INFO |DatabaseQuery | | dbPlugin name: SQLite3 plugin, (c)TeamSpeak Systems GmbH
2010-01-04 16:07:23.636238|INFO |DatabaseQuery | | dbPlugin version: 3.6.21
2010-01-04 16:07:23.677803|INFO |SQL | | db_CreateTables() tables created
------------------------------------------------------------------
I M P O R T A N T
------------------------------------------------------------------
Server Query Admin Acccount created
loginname= "serveradmin", password= "Xfs3+eI/"
------------------------------------------------------------------
2010-01-04 16:07:24.244553|WARNING |Accounting | | Unable to find valid license key, falling back to limited functionality
2010-01-04 16:07:24.247771|ERROR |Accounting | | failed to register accounting service
2010-01-04 16:07:24.248480|ERROR |ServerLibPriv | | Server() error while starting servermanager, error: instance check error
10. Now i dont now wats wrong. I think Error is not ok...
./ts3server_linux_x86 status
Logging started
2010-01-04 16:10:40.266319|INFO |ServerLibPriv | | Server Version: 3.0.0-beta12 [Build: 9596]
2010-01-04 16:10:40.266935|INFO |DatabaseQuery | | dbPlugin name: SQLite3 plugin, (c)TeamSpeak Systems GmbH
2010-01-04 16:10:40.267026|INFO |DatabaseQuery | | dbPlugin version: 3.6.21
2010-01-04 16:10:40.347932|WARNING |Accounting | | Unable to find valid license key, falling back to limited functionality
2010-01-04 16:10:40.351173|ERROR |Accounting | | failed to register accounting service
2010-01-04 16:10:40.351738|ERROR |ServerLibPriv | | Server() error while starting servermanager, error: instance check error
Pls help
thxLast edited by dante696; 21-02-2011 at 12:24.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to "properly" install TS3 using a mySQL 5 server on linux...
By dlcerny in forum Linux / FreeBSDReplies: 33Last Post: 08-07-2010, 19:02 -
TS3 server - initial install issues - please add comments here
By mrwoo in forum WindowsReplies: 1Last Post: 13-05-2010, 02:46 -
Virtual server manager critical error?
By AndresCL in forum Linux / FreeBSDReplies: 28Last Post: 03-01-2010, 14:15 -
I cant get the server running.
By NDIS.NL in forum Linux / FreeBSDReplies: 10Last Post: 29-12-2009, 18:41 -
TS3 built into other products?
By [HJ]-Petz in forum [TeamSpeak 2] General QuestionsReplies: 3Last Post: 21-05-2008, 05:36


Reply With Quote