Dezember 25

TeamSpeak 3 Server unter Linux (Debian 9) dem Autostart hinzufügen

Unter /etc/systemd/system/ die Datei rc-local.service mit nachfolgendem Inhalt anlegen, falls diese nicht bereits existiert

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.
[Unit]
Description=/etc/rc.local Compatibility
ConditionFileIsExecutable=/etc/rc.local
After=network.target

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no

[Install]
WantedBy=multi-user.target

Unter /etc/ die Datei rc.local mit nachfolgendem Inhalt anlegen

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

./pfad_teamspeakserver/ts3server_startscript.sh start

exit 0

Noch die Berechtigungen anpassen

chmod +x /etc/rc.local
systemctl enable rc-local

Status des Dienstes systemctl status rc-local.service überprüfen

systemctl status rc-local.service

und gegebenenfalls starten und erneut den Status abfragen

systemctl start rc-local.service
systemctl status rc-local.service

Nun gilt es den Server neu zu starten und zu überprüfen, ob die Änderungen wirksam sind

Juli 22

TeamSpeak3 Musikbot installieren unter Debian9

apt-get install x11vnc xvfb libxcursor1 ca-certificates curl libglib2.0-0 nano bzip2 -y update-ca-certificates
https://www.sinusbot.com/dl/sinusbot-beta.tar.bz2
tar -xjf sinusbot-beta.tar.bz2
cp config.ini.dist config.ini
wget http://dl.4players.de/ts/releases/3.1.4/TeamSpeak3-Client-linux_amd64-3.1.4.run
chmod 755 TeamSpeak3-Client-linux_amd64-3.1.4.run
./TeamSpeak3-Client-linux_amd64-3.1.4.run
TS3Path = "/opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
cp plugin/libsoundbot_plugin.so /opt/sinusbot/TeamSpeak3-Client-linux_amd64/plugins
chmod 755 ts3bot

 

Februar 7

TeamSpeak 3 Server unter Linux (Debian) updaten

Der TeamSpeak-Server sollte vor dem Updaten gestoppt werden und die Links müssen vor dem Ausführen auf die neuste Version angepasst werden

#Backup
tar -cf backup.tar /pfad/teamspeakserver/

#Download neuste Version
wget http://dl.4players.de/ts/releases/3.0.13.6/teamspeak3-server_linux_amd64-3.0.13.6.tar.bz2

#Entpacken
tar -xf teamspeak3-server_linux_amd64-3.0.13.6.tar.bz2

#Dateien verschieben
cd teamspeak3-server_linux_amd64
cp -u -r doc /pfad/teamspeakserver
cp -u -r redist /pfad/teamspeakserver
cp -u -r serverquerydocs /pfad/teamspeakserver
cp -u -r sql /pfad/teamspeakserver
cp -u -r tsdns /pfad/teamspeakserver
cp -u libts3db_mariadb.so /pfad/teamspeakserver
cp -u libts3db_sqlite3.so /pfad/teamspeakserver
cp -u ts3server /pfad/teamspeakserver

#Aufraeumen
cd ..
rm -r teamspeak3-server_linux_amd64
rm teamspeak3-server_linux_amd64-3.0.13.6.tar.bz2