Community Forums Today's Posts     Member List     Archive    
Results 1 to 4 of 4
  1. #1
    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

    thx
    Last edited by dante696; 21-02-2011 at 12:24.

  2. #2
    Join Date
    Dec 2009
    Location
    Good old Germany
    Posts
    222
    Hi,

    please check your points: 3 & 4 and try it with all Files and Folders have the same user and group!

    And delete eveything and start from beginning becuase everyone know now your serveradmin password.

    Cheech

  3. #3
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    3

    so

    total 6100
    -rw-r--r-- 1 root root 8412 Dec 31 06:50 CHANGELOG
    -rw-r--r-- 1 root root 23747 Dec 31 06:50 LICENSE
    drwxr-xr-x 2 root root 4096 Dec 31 06:50 doc
    -rwxr-xr-x 1 root root 194893 Dec 31 06:50 libts3db_mysql.so
    -rwxr-xr-x 1 root root 821569 Dec 31 06:50 libts3db_sqlite3.so
    -rw-r--r-- 1 root root 870 Jan 4 20:26 licensekey.dat
    drwxr-xr-x 2 root root 4096 Dec 31 06:50 serverquerydocs
    drwxr-xr-x 4 root root 4096 Dec 31 06:50 sql
    -rwxr-xr-x 1 root root 9495 Jan 4 20:26 startscript_ts3_linux.sh
    -rw-r--r-- 1 root root 84 Jan 4 20:26 ts3db_mysql.ini
    -rw-r--r-- 1 root root 312 Jan 4 20:29 ts3server.ini
    -rwxr-xr-x 1 root root 5131196 Dec 31 06:50 ts3server_linux_x86


    I make it one more time... but it dont works still

  4. #4
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    3

    yes

    i delete one more time... and now its works....

    THX

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 33
    Last Post: 08-07-2010, 19:02
  2. Replies: 1
    Last Post: 13-05-2010, 02:46
  3. Virtual server manager critical error?
    By AndresCL in forum Linux / FreeBSD
    Replies: 28
    Last Post: 03-01-2010, 14:15
  4. I cant get the server running.
    By NDIS.NL in forum Linux / FreeBSD
    Replies: 10
    Last Post: 29-12-2009, 18:41
  5. TS3 built into other products?
    By [HJ]-Petz in forum [TeamSpeak 2] General Questions
    Replies: 3
    Last Post: 21-05-2008, 05:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •