• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Tutorial CentOS 6 Install Guide

Status
Not open for further replies.

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
I have complied to try and fix the error as stated in the first post.

I am used Centos 6.7 (final)

Nachdem dies geschehen ist , gehen Sie zu " /opt/gcc-4.6.2/lib64 " und es sollte dort zu finden sein " libstdc++.so.6 " und " libstdc++.so.6.0.16 " .

Sie müssen folgendes Umbenennen " /usr/lib64/libstdc++.so.6 " auf " /usr/lib64/llibstdc++.so.6.backup "

Jetzt Kopieren Sie folgende libs von " /opt/gcc-4.6.2/lib64/libstdc++.so.6 " und " /opt/gcc-4.6.2/lib64/libstdc++.so.6.0.16 " nach " usr/lib64/ "

You have copied the librarys ?
 

ssergik

Member
Ich habe ein Problem!
Nach der Einführung der Mannschaft
xinit/opt/ts3soundboard/ts3bot-/usr/bin/Xvfb:2-screen 0 800x600x16-ac
Der Kahn wird gestartet und arbeitet.
Aber wenn ich die Konsole PuTTy jenes den Kahn schließe hört auf, zu arbeiten
CentOS 7 x64

----
Die Lösung des Problems hat gefunden
Ctrl+Z
bg
 
Last edited:
Thank You fully work and its Great Bot song ! I love Radio Option :oops:
juste max instances 2 so bad :(
i want more instances hehe
i check F.A.Q
i so impatient for new version for more instances same time :D
 

Almir

Member
Hello,

I use sinusbot on my Centos 6 server but i have problems whit installation.
I dont see libstdc++.so.6 in /opt/gcc-4.6.2/lib64
 

clack

Member
I Install SInusBOT in my CentOS 6.8(final) By installer.
Then use of your commands:
Code:
yum update
Code:
yum install  firefox xorg-x11-server-Xvfb x11vnc xinit xvfb libxcursor1 ca-certificates bzip2 curl libglib2.0-0 xorg-x11-server-Xorg vnc-server gnome-desktop xorg-x11-xinit xterm gnome-applets gnome-session gnome-themes gnome-panel gdm firefox dbus-x11 libstdc++-devel.i686 glibc-devel.i686
youtube-dl

Now when goto sinusbot Directory and type ./sinusbot Give my this error :
Code:
2016/06/29 14:02:03 [GENERAL/!!!!!!!] NOTICE You may now configure and launch the bots from the webinterface. http://0.0.0.0:8087
2016/06/29 14:02:03 5c7c6b0b 82b774f0 INFO   Starting instance ts3server://127.0.0.1?port=9987&nickname=TS3SB-Demobot&password=&channel=&channelpassword=
2016/06/29 14:02:03 [GENERAL/RADIO  ] INFO   RadioStation data loaded
2016/06/29 14:02:03 5c7c6b0b 82b774f0 DEBUG  TS>/opt/sinusbot/teamspeak3-client/ts3client_linux_amd64: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/sinusbot/teamspeak3-client/ts3client_linux_amd64)
2016/06/29 14:02:03 5c7c6b0b 82b774f0 DEBUG  TS>/opt/sinusbot/teamspeak3-client/ts3client_linux_amd64: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/sinusbot/teamspeak3-client/libquazip.so)
2016/06/29 14:02:03 5c7c6b0b 82b774f0 DEBUG  TS>/opt/sinusbot/teamspeak3-client/ts3client_linux_amd64: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/sinusbot/teamspeak3-client/libQt5Core.so.5)
2016/06/29 14:02:03 5c7c6b0b 82b774f0 DEBUG  TS>/opt/sinusbot/teamspeak3-client/ts3client_linux_amd64: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/sinusbot/teamspeak3-client/libQt5Gui.so.5)
2016/06/29 14:02:03 5c7c6b0b 82b774f0 DEBUG  TS>/opt/sinusbot/teamspeak3-client/ts3client_linux_amd64: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/sinusbot/teamspeak3-client/libQt5Network.so.5)
2016/06/29 14:02:03 5c7c6b0b 82b774f0 DEBUG  TS>/opt/sinusbot/teamspeak3-client/ts3client_linux_amd64: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/sinusbot/teamspeak3-client/libQt5Widgets.so.5)
2016/06/29 14:02:03 5c7c6b0b 82b774f0 DEBUG  TS>/opt/sinusbot/teamspeak3-client/ts3client_linux_amd64: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/sinusbot/teamspeak3-client/libQt5Sql.so.5)
2016/06/29 14:02:03 5c7c6b0b 82b774f0 DEBUG  TS>/opt/sinusbot/teamspeak3-client/ts3client_linux_amd64: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/sinusbot/teamspeak3-client/libc++.so.1)
2016/06/29 14:02:03 5c7c6b0b 82b774f0 DEBUG  TS>/opt/sinusbot/teamspeak3-client/ts3client_linux_amd64: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/sinusbot/teamspeak3-client/libc++abi.so.1)
2016/06/29 14:02:03 5c7c6b0b 82b774f0 DEBUG  EOF
2016/06/29 14:02:03 5c7c6b0b 82b774f0 INFO   TSClient quit.
2016/06/29 14:02:04 [GENERAL/RADIO  ] INFO   Imported radio stations
 

clack

Member
Programme, die dein Server für den Teamspeak Musikbot braucht

Code:
yum update
Code:
yum install  firefox xorg-x11-server-Xvfb x11vnc xinit xvfb libxcursor1 ca-certificates bzip2 curl libglib2.0-0 xorg-x11-server-Xorg vnc-server gnome-desktop xorg-x11-xinit xterm gnome-applets gnome-session gnome-themes gnome-panel gdm firefox dbus-x11 libstdc++-devel.i686 glibc-devel.i686
youtube-dl

Ein User für den Musikbot

Du legst dir einen User „bot“ an:
Code:
adduser bot

Wenn du gefragt wirst musst du noch ein Passwort festlegen, alle anderen Felder kannst du auch leer lassen.
Lege ein Verzeichnis für den Musikbot an und gib dem User bot die Rechte dafür:

Code:
mkdir -p /opt/ts3soundboard
Code:
chown bot:bot /opt/ts3soundboard

Wechsele nun in den Useraccount bot:
Code:
su bot

Wechsle in das Verzeichnis:
Code:
cd /opt/ts3soundboard/

Den Musikbot herunterladen und einrichten

Lade den Bot herunter:
Code:
wget https://frie.se/ts3bot/sinusbot-0.9.8.tar.bz2

Nun entpackst du den Teamspeak Musikbot auf deinem Linux Server:
Code:
tar -xjf sinusbot-0.9.8.tar.bz2

Jetzt noch die Config Datei erstellen:
Code:
cp config.ini.dist config.ini

Nun sollte ein Verzeichnis mit den Dateien des Teamspeak Musikbots entstanden sein. Das kannst du prüfen indem du „ls“ tippst um die Dateien und Verzeichnisse aufzulisten.

Den Teamspeak Client für den Musikbot installieren

Lade dir den aktuellen TS3 Client herrunter:
Code:
wget http://dl.4players.de/ts/releases/3.0.18.2/TeamSpeak3-Client-linux_amd64-3.0.18.2.run

Nun machst du das Installtions-Script ausführbar:
Code:
chmod 755 TeamSpeak3-Client-linux_amd64-3.0.18.2.run

Und installierst den Teamspeak Client:
Code:
./TeamSpeak3-Client-linux_amd64-3.0.18.2.run

Jetzt musst du die Lizenzbedingungen bestätigen, indem du „q“ und dann „y“ drückst.

Als nächstes musst du den Pfad zum Client in der config des Teamspeak Musikbots richtig eintragen:
Code:
nano config.ini

Wenn du alles so gemacht hast, wie ich, sollte der Pfad in etwa so aussehen:

TS3Path = "/opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"

Wenn das Programm bei dir woanders liegt, dann musst du den Pfad eben entsprechend anpassen.
Speichere und schließe den Editor mit Strg + O und Strg + X

Das Plugin für den Teamspeak Musikbot installieren
Code:
cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins

Die Rechte zum Ausführen des Bots richtig setzen
Code:
chmod 755 ts3bot

Nochmal ein Update
Code:
./ts3bot -update

Schon kannst du deinen Bot starten:
Code:
xinit /opt/ts3soundboard/ts3bot -- /usr/bin/Xvfb :2 -screen 0 800x600x16 -ac

Fertig! Teamspeak Musikbot läuft!

Jetzt brauchst du nur noch ins Webinterface unter

https://ip-deines-servers:8087

mit User admin und Passwort foobar einsteigen und schon kannst du deinen Teamspeak Musikbot steuern.


Code:
#! /bin/bash

##################################################################################
# #
# Usage: ./launch.sh {start|stop|status|restart|console} #
# - start: start the bot #
# - stop: stop the bot #
# - status: display the status of the bot (down or up) #
# - restart: restart the bot #
# - console: display the bot console #
# To exit the console without stopping the server, press CTRL + A then D. #
# #
##################################################################################

SCREEN_NAME="sinusbot"
USER="bot"
DIR_ROOT="/opt/ts3soundboard"
BOT_RUNCMD="xinit ./ts3bot -- /usr/bin/Xvfb :2 -screen 0 800x600x16 -ac"

# No edits necessary beyond this line
PATH=/bin:/usr/bin:/sbin:/usr/sbin
if [ ! -x `which awk` ]; then echo "ERROR: You need awk for this script (try apt-get install awk)"; exit 1; fi
if [ ! -x `which screen` ]; then echo "ERROR: You need screen for this script (try apt-get install screen)"; exit 1; fi

function start {
if [ ! -d $DIR_ROOT ]; then echo "ERROR: $DIR_ROOT is not a directory"; exit 1; fi
if status; then echo "$SCREEN_NAME is already running"; exit 1; fi

# Start bot
if [ `whoami` = root ]
then
su - $USER -c "cd $DIR_ROOT ; screen -AmdS $SCREEN_NAME $BOT_RUNCMD"
else
cd $DIR_ROOT
screen -AmdS $SCREEN_NAME $BOT_RUNCMD
fi
}

function stop {
if ! status; then echo "$SCREEN_NAME could not be found. Probably not running."; exit 1; fi

if [ `whoami` = root ]
then
su - $USER -c "killall ts3bot -u $USER"
else
killall ts3bot -u $USER
fi
}

function status {
if [ `whoami` = root ]
then
su - $USER -c "screen -ls" | grep [.]$SCREEN_NAME[[:space:]] > /dev/null
else
screen -ls | grep [.]$SCREEN_NAME[[:space:]] > /dev/null
fi
}

function console {
if ! status; then echo "$SCREEN_NAME could not be found. Probably not running."; exit 1; fi

if [ `whoami` = root ]
then
tmp=$(su - $USER -c "screen -ls" | awk -F . "/\.$SCREEN_NAME\t/ {print $1}" | awk '{print $1}')
su - $USER -c "screen -r $tmp"
else
screen -r $(screen -ls | awk -F . "/\.$SCREEN_NAME\t/ {print $1}" | awk '{print $1}')
fi
}

function usage {
echo "Usage: $0 {start|stop|status|restart|console}"
echo "On console, press CTRL+A then D to stop the screen without stopping the server."
}

case "$1" in

start)
echo "Starting $SCREEN_NAME..."
start
sleep 5
echo "$SCREEN_NAME started successfully"
;;

stop)
echo "Stopping $SCREEN_NAME..."
stop
sleep 5
echo "$SCREEN_NAME stopped successfully"
;;

restart)
echo "Restarting $SCREEN_NAME..."
status && stop
sleep 10
start
sleep 5
echo "$SCREEN_NAME restarted successfully"
;;

status)
if status
then echo "$SCREEN_NAME is UP"
else echo "$SCREEN_NAME is DOWN"
fi
;;

console)
echo "Open console on $SCREEN_NAME..."
console
;;

*)
usage
exit 1
;;

esac

exit 0


Bug Fix für "/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found" damit der Bot im TS Entmutet ist.
Code:
wget ftp://gd.tuwien.ac.at/gnu/gcc/releases/gcc-4.6.2/gcc-4.6.2.tar.gz
tar xzf gcc-4.6.2.tar.gz
cd gcc-4.6.2
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.6.2/configure --prefix=/opt/gcc-4.6.2
make
make install
Nachdem dies geschehen ist , gehen Sie zu " /opt/gcc-4.6.2/lib64 " und es sollte dort zu finden sein " libstdc++.so.6 " und " libstdc++.so.6.0.16 " .

Sie müssen folgendes Umbenennen " /usr/lib64/libstdc++.so.6 " auf " /usr/lib64/llibstdc++.so.6.backup "

Jetzt Kopieren Sie folgende libs von " /opt/gcc-4.6.2/lib64/libstdc++.so.6 " und " /opt/gcc-4.6.2/lib64/libstdc++.so.6.0.16 " nach " usr/lib64/ "


Eventuelle Fehler sind vorbehalten habe die Befehle aus dem Log raus gesucht wieder habe ca. 4Std gebraucht um es auf CentOS zum laufen zu bekommen da ich nach den Fehlenden Libs suchen musste die Kompatibel sind ich hoffe es hilft einigen Leuten die CentOS nutzen :) bei mir läuft der Bot jetzt ohne Probleme auf CentOS 6.7 (Final)

Root:
  • CPU Model: Intel(R) Core(TM) i5-3570S CPU @ 3.10GHz
  • CPU Details: 4 Core (2912 MHz)
  • Distro Name: CentOS release 6.7 (Final)
  • Kernel Version: 3.14.32-xxxx-grs-ipv6-64
  • Platform: x86_64 [Dedicated]
  • 16 GB Ram
  • 2 TB Festplatte
Hi guy.
Thank you for this thread.
My OS : centos-release-6-8.el6.centos.12.3.x86_64
but when i tyoe this command $PWD/../gcc-4.6.2/configure --prefix=/opt/gcc-4.6.2
give me this error :
Code:
checking for C compiler default output file name...
configure: error: in `/root/objdir':
configure: error: C compiler cannot create executables
See `config.log' for more details.
 

clack

Member
Nachdem dies geschehen ist , gehen Sie zu " /opt/gcc-4.6.2/lib64 " und es sollte dort zu finden sein " libstdc++.so.6 " und " libstdc++.so.6.0.16 " .

Sie müssen folgendes Umbenennen " /usr/lib64/libstdc++.so.6 " auf " /usr/lib64/llibstdc++.so.6.backup "

Jetzt Kopieren Sie folgende libs von " /opt/gcc-4.6.2/lib64/libstdc++.so.6 " und " /opt/gcc-4.6.2/lib64/libstdc++.so.6.0.16 " nach " usr/lib64/ "

Please type this 3 lines to English.
 

HungCraft

New Member
Every time I try to start my instance on the web interface it gives an error (As seen below). I am running CentOS 6 64-bit and I have followed the entire direction in this tutorial.

Error (* means blurred out):
016/07/11 18:53:39 4ff1f30a 119162a4 INFO Starting instance ts3server: //ts.*******.tk port = 9987 & nickname = TS3SB-Demobot & password = **** & channel = & channel password =?
11/07/2016 18:53:39 4ff1f30a 119162a4 INFO TSClient quit.
 

AmellRa92

Member
2016/07/15 13:33:47 7e09a4b2 a0e89a05 INFO TS>/opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64)
2016/07/15 13:33:47 7e09a4b2 a0e89a05 WARN EOF
2016/07/15 13:33:47 7e09a4b2 a0e89a05 INFO TSClient quit.
2016/07/15 13:33:47 7e09a4b2 a0e89a05 INFO Socket closed.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
xinit /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 -- /usr/bin/Xvfb :2 -screen 0 800x600x16 -ac

/opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64: error while loading shared libraries: libquazip.so: cannot open shared object file: No such file or directory

and

help me please
 
Last edited:

clack

Member
Every time I try to start my instance on the web interface it gives an error (As seen below). I am running CentOS 6 64-bit and I have followed the entire direction in this tutorial.

Error (* means blurred out):
016/07/11 18:53:39 4ff1f30a 119162a4 INFO Starting instance ts3server: //ts.*******.tk port = 9987 & nickname = TS3SB-Demobot & password = **** & channel = & channel password =?
11/07/2016 18:53:39 4ff1f30a 119162a4 INFO TSClient quit.


2016/07/15 13:33:47 7e09a4b2 a0e89a05 INFO TS>/opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64)
2016/07/15 13:33:47 7e09a4b2 a0e89a05 WARN EOF
2016/07/15 13:33:47 7e09a4b2 a0e89a05 INFO TSClient quit.
2016/07/15 13:33:47 7e09a4b2 a0e89a05 INFO Socket closed.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
xinit /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 -- /usr/bin/Xvfb :2 -screen 0 800x600x16 -ac

/opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64: error while loading shared libraries: libquazip.so: cannot open shared object file: No such file or directory

and

help me please

install new version of Glibc & GCC in your server's .
& Reboot your server .
Yep ... your problem solved ..;)
 

AmellRa92

Member
install new version of Glibc & GCC in your server's .
& Reboot your server .
Yep ... your problem solved ..;)
How i can install ????

same problem

xinit /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 -- /usr/bin/Xvfb :2 -screen 0 800x600x16 -ac

/opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64: error while loading shared libraries: libquazip.so: cannot open shared object file: No such file or directory

waiting for X server to shut down
 
Last edited:

fr3nsis

Member
Bug Fix for "/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found"

Code:
wget http://ftp.gnu.org/gnu/gcc/gcc-4.9.0/gcc-4.9.0.tar.gz
tar xzf gcc-4.9.0.tar.gz
cd gcc-4.9.0
./contrib/download_prerequisites
cd ..
mkdir build_gcc_4.9.0
cd build_gcc_4.9.0
../gcc-4.9.0/configure --prefix=/opt/gcc-4.9.0 --enable-checking=release --enable-languages=c,c++ --disable-multilib
make -j4
make install

Note:
make -j4 (4 means 4 CPU cores, this will change on different CPU platform)

On 64-bit (x86_64) platform, when confguring GCC, use the option "--enable-multilib --with-multilib-list=m32,m64" to let compiler could build out a 32-bit software, while the option "--disable-multilib" means no 32-bit support, e.g. it could only built out 64-bit software.


Using alternatives (or ”update-alternatives“ which is a symbolic link to “alternatives”) tool to set currently used GCC compiler. The version of GCC used in CentOS 6.X is v4.4.7.

Code:
mv /usr/bin/gcc /usr/bin/gcc_4.4.7
update-alternatives --install /usr/bin/gcc gcc /opt/gcc-4.9.0/bin/x86_64-unknown-linux-gnu-gcc-4.9.0 40
mv /usr/bin/g++ /usr/bin/g++_4.4.7
update-alternatives --install /usr/bin/g++ g++ /opt/gcc-4.9.0/bin/g++ 40
mv /usr/bin/c++ /usr/bin/c++_4.4.7
update-alternatives --install /usr/bin/c++ c++ /opt/gcc-4.9.0/bin/c++ 40

Copy new GCC libraries to system library folder:

[for 32-bit]
Code:
mv /usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so.6.backup 
cp -P /opt/gcc-4.9.0/lib/libstdc++.so.6 /usr/lib/ 
cp /opt/gcc-4.9.0/lib/libstdc++.so.6.0.20 /usr/lib/

[for 64-bit]
Code:
mv /usr/lib64/libstdc++.so.6 /usr/lib64/libstdc++.so.6.backup
cp -P /opt/gcc-4.9.0/lib64/libstdc++.so.6 /usr/lib64
cp /opt/gcc-4.9.0/lib64/libstdc++.so.6.0.20 /usr/lib64

To verify current version of all system libraries
Code:
ldconfig -v
 
Last edited:

thiagotxd

New Member
I would like to know how to enter the bot ts and start playing. did the installation according to the tutorial above, however the bot-log shows nothing.

below the log of instace, however the BOT does not connect in teamspeak. can you help me???

2016-10-01T10:06:26-04:00 BOT-CONFIG [admin] CHAN CHANPW ANNOUNCE ANNOUNCESTR DUCKING DUCKINGVOLUME STICKY TTSLOCALE CHATIGNSRV CHATIGNPRIV CHATIGNCHAN CC OK
2016-10-01T10:15:13-04:00 Starting instance ts3server://1.5.46.177?port=9987&nickname=TS3SB-Demobot&password=&channel=&channelpassword=
2016-10-01T10:15:13-04:00 TSClient quit.
2016-10-01T10:15:24-04:00 Starting instance ts3server://1.5.46.177?port=9987&nickname=TS3SB-Demobot&password=&channel=&channelpassword=
2016-10-01T10:15:24-04:00 TSClient quit.
2016-10-01T10:16:31-04:00 Starting instance ts3server://1.5.46.177?port=9987&nickname=TS3SB-Demobot&password=&channel=&channelpassword=
 

BrunoCarrilo

New Member
Hellow,
I tried to call the BOT in my VPS centos 6, del this error:
5ada0cedd94846b4b95a4dc3211c12a2.png

What should I do?
 

bosverkocum

New Member
2017/01/01 18:40:28 aaa822f1 1f455d4f WARN Could not request shutdown

What is this man ? How can I solve the problem?
 

Attachments

  • sunisboterror1.png
    sunisboterror1.png
    18.6 KB · Views: 15
Status
Not open for further replies.
Top