Ts3soundboardbot /Sinusbot - more instances [for Ubuntu]

Feb 21, 2016
6
0
33
--2016-02-28 22:10:55-- https://yt-dl.org/downloads/2016.02.13/youtube-dl
Resolving yt-dl.org (yt-dl.org)... 95.143.172.170, 2001:1a50:11:0:5f:8f:acaa:177
Connecting to yt-dl.org (yt-dl.org)|95.143.172.170|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1111463 (1.1M) [application/octet-stream]
Saving to: '/usr/local/bin/youtube-dl'

0K .......... .......... .......... .......... .......... 4% 150K 7s
50K .......... .......... .......... .......... .......... 9% 438K 4s
100K .......... .......... .......... .......... .......... 13% 349K 4s
150K .......... .......... .......... .......... .......... 18% 577K 3s
200K .......... .......... .......... .......... .......... 23% 440K 3s
250K .......... .......... .......... .......... .......... 27% 2.22M 2s
300K .......... .......... .......... .......... .......... 32% 524K 2s
350K .......... .......... .......... .......... .......... 36% 3.02M 2s
400K .......... .......... .......... .......... .......... 41% 498K 1s
450K .......... .......... .......... .......... .......... 46% 12.4M 1s
500K .......... .......... .......... .......... .......... 50% 5.27M 1s
550K .......... .......... .......... .......... .......... 55% 464K 1s
600K .......... .......... .......... .......... .......... 59% 10.8M 1s
650K .......... .......... .......... .......... .......... 64% 10.7M 1s
700K .......... .......... .......... .......... .......... 69% 11.0M 1s
750K .......... .......... .......... .......... .......... 73% 439K 0s
800K .......... .......... .......... .......... .......... 78% 10.2M 0s
850K .......... .......... .......... .......... .......... 82% 12.1M 0s
900K .......... .......... .......... .......... .......... 87% 398K 0s
950K .......... .......... .......... .......... .......... 92% 19.3M 0s
1000K .......... .......... .......... .......... .......... 96% 434K 0s
1050K .......... .......... .......... ..... 100% 28.8M=1.5s

2016-02-28 22:10:58 (710 KB/s) - '/usr/local/bin/youtube-dl' saved [1111463/1111463]
 

Qraktzyl

Retired Staff
Contributor
Nov 2, 2015
997
728
161
I'm not familiar with the youtube-dl installation, however I think the correct path to add to your sinusbot config file is '/usr/local/bin/youtube-dl'
 
Feb 21, 2016
6
0
33
I put youtube dl file in / usr / local / bin / youtube -dl '
more how do I access the ts3soundboard to set 'm using the script , the more I find the edit file

when access to cd / opt folder has no files , I used the script to install the radio using docker
 
Last edited by a moderator:

Eugene

Member
Feb 23, 2016
6
1
35
Please tell me how to add scripts in sinusbot (docker)
the file is in the folder (sinusbot/scripts)
but the script in the admin panel is not displayed
(service docker restart) and (docker start/stop container) - does not help
 

Amenefus

Member
Feb 12, 2016
12
0
36
2016-03-02T10:10:30+01:00 BOT-CONFIG [admin] HOST CHAN CHANPW ANNOUNCE ANNOUNCESTR DUCKING DUCKINGVOLUME STICKY TTSLOCALE CHATIGNSRV CHATIGNPRIV CHATIGNCHAN CC OK
I installed docker with TUT's and bots can't join :D


I installed firewall on my server and put opens ports ID of sinusbot and again can't join :D
 
Last edited:

Laituma

Member
Feb 21, 2016
2
1
38
I tried to did it on Centos, every time I got errors when build docker. So I made another server on Ubuntu, everything amazing now =) Tnx for manual.
 

Joxiii

Discord hater!
Feb 2, 2016
271
182
92
I tried to did it on Centos, every time I got errors when build docker. So I made another server on Ubuntu, everything amazing now =) Tnx for manual.
The Docker Script with the old version can only be used on Ubuntu and the new version for Debian ^^
 

Tayyab Khan

Active Member
Feb 12, 2016
17
3
93
*Tutorial restored from by browser cache* :)

For 0.9.8 (sinusbot), video tutorial made by @Joxiii :
https://r4p3.net/threads/have-more-...h-docker-containers-on-ubuntu.1080/#post-8692

Hello R4P3 community,

Today i'll be explaining you guys how to run more than 6 instances with the ts3soundboard. Please note that this setup is not optimal, because you will have several admin panels (eg.http://yourip:8087, http://yourip:8088, http://yourip:8089, etc). A crack would be way better. I recommend using the old ts3bot version (0.9.5) as the creator doesn't seem to be limiting the number of instances by ip and don't know if he'll actually do it in the newest versions cause let's be honest here, he only wants your money. In this tutorial, I'll be referring to "ts3bot" and "sinusbot", the ts3bot version being the one with maximum 6 instances (0.9.5) and sinusbot version being the one with maximum 2 instances (0.9.8+). I'm not sure if i'll be releasing the script for 0.9.8.
We will be running all those bots on 1 VPS with docker containers. Experienced users only. Make sure you have enough ram and processing power. I won't be explaining how to install docker on your distribution, just check to those link here :

What is a docker?
How to install docker

I am assuming that you correctly installed docker and that your permissions are correctly assigned to your user.
YOU NEED TO HAVE A KERNEL OF VERSION 3.10+! DOCKER WILL NOT WORK OTHERWISE!
Code:
uname -r


examples:
2.6.32-42-pve WILL NOT WORK!
3.19.0-33-generic WILL WORK!


I also recommend installing shipyard as this will give you a webinterface to manage your docker containers and easily deploy your docker image.

Credits for my docker scripts goes to a guy called jtanderson. Those scripts have been modified to fit my needs, as the original script didn't support youtube-dl and needed it to download from youtube.

You need to create a user, add him to the docker group.:
Code:
adduser tsbot
sudo usermod -aG docker tsbot


Then change to this user:
Code:
su tsbot

1- Create a folder called "mydockerscript"

Code:
mkdir mydockerscript

2- Go inside that folder. Create a file called "dockerfile" and paste this script inside of it:
TESTED ON UBUNTU.
Code:
FROM ubuntu

#VOLUME ["/tsmusic"]

ENV TSBOT_URL https://frie.se/ts3bot/ts3soundboardbot-0.9.5.tar.bz2
ENV TEAMSPEAK_URL http://dl.4players.de/ts/releases/3.0.18.2/TeamSpeak3-Client-linux_amd64-3.0.18.2.run

# Download TS3 file and extract it into /opt.
ADD ${TSBOT_URL} /opt/
RUN cd /opt && tar -xf /opt/ts3soundboardbot*.tar.bz2

ADD ${TEAMSPEAK_URL} /opt/ts3soundboard/
RUN cd /opt/ts3soundboard && chmod 0755 TeamSpeak3-Client-linux_amd64-3.0.18.2.run
RUN sed -i 's/^MS_PrintLicense$//' /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64-3.0.18.2.run
RUN cd /opt/ts3soundboard && ./TeamSpeak3-Client-linux_amd64-3.0.18.2.run

# Install prerequisites
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get -y install x11vnc xinit xvfb libxcursor1 libglib2.0-0 xorg openbox wget
RUN wget -O "/usr/local/bin/youtube-dl" "https://yt-dl.org/downloads/latest/youtube-dl" && \
chmod a+rx "/usr/local/bin/youtube-dl" && \
locale-gen --purge en_US.UTF-8 && \
echo LC_ALL=en_US.UTF-8 >> /etc/default/locale && \
echo LANG=en_US.UTF-8 >> /etc/default/locale && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
groupadd -g 3000 -r "ts3soundboard" && \
useradd -u 3000 -r -g "ts3soundboard" -d "/opt/ts3soundboard" "ts3soundboard"

# Copy the plugin into the client and update the bot
RUN cp /opt/ts3soundboard/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
RUN chown -R ts3soundboard /opt/ts3soundboard && \
chmod 755 /opt/ts3soundboard/ts3bot
RUN /opt/ts3soundboard/ts3bot -update

# Add a startup script
ADD run.sh /run.sh
RUN chmod 755 /*.sh

EXPOSE 8087
CMD ["/run.sh"]

3 - Create a script file called "run.sh" and paste this inside of it:
#!/bin/bash

rm -rf /tmp/.X*
rm -f /tmp/TS3*

cd /opt/ts3soundboard
/usr/bin/xinit /opt/ts3soundboard/ts3bot -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac

Make it executable :
Code:
chmod +x run.sh

4- We build the image

Code:
docker build -t ts3soundboard095 pathofmydockerscriptfolder
pathofmydockerscriptfolder being the path of your "mydockerscript" folder created in step 1. You should also already be in that folder, so you can get the path by doing "pwd".

5- Run the first docker container from the image we just created ("ts3soundboard095")
Code:
docker run --restart=always -d --name bot1 -p 8087:8087 ts3soundboard095
You will now be able to access your first ts3soundboard panel by going to http://yourip:8087

6- Run more docker containers from our "ts3soundboard095" image.
Code:
docker run --restart=always -d --name bot2 -p 8088:8087 ts3soundboard095
You will now be able to access your second ts3soundboard panel by going to http://yourip:8088

Change 8088 to 8089 if you want a third container running... Also change the name of the container to bot3. And so on...
Code:
docker run --restart=always -d --name bot3 -p 8089:8087 ts3soundboard095
Plss Upload New docker script of sinusbot v0.9.10
 

Tayyab Khan

Active Member
Feb 12, 2016
17
3
93
Guys I Found Another Creating sinusbot option and its very easy if u want more bot u have to edit like this !!
Original
docker run --name sinusbot -d -v /data/sinusbot:/sinusbot/data -p 8087:8087 galexrt/sinusbot:latest
Edited
docker run --name sinusbot1 -d -v /data/sinusbot:/sinusbot/data -p 8088:8087 galexrt/sinusbot:latest
Next
docker run --name sinusbot2 -d -v /data/sinusbot:/sinusbot/data -p 8089:8087 galexrt/sinusbot:latest
And Soo On.......
Thats It Enjoy and Good Luck :) ;) :p
https://hub.docker.com/r/galexrt/sinusbot/
 

Joxiii

Discord hater!
Feb 2, 2016
271
182
92
Guys I Found Another Creating sinusbot option and its very easy if u want more bot u have to edit like this !!
Original
docker run --name sinusbot -d -v /data/sinusbot:/sinusbot/data -p 8087:8087 galexrt/sinusbot:latest
Edited
docker run --name sinusbot1 -d -v /data/sinusbot:/sinusbot/data -p 8088:8087 galexrt/sinusbot:latest
Next
docker run --name sinusbot2 -d -v /data/sinusbot:/sinusbot/data -p 8089:8087 galexrt/sinusbot:latest
And Soo On.......
Thats It Enjoy and Good Luck :) ;) :p
https://hub.docker.com/r/galexrt/sinusbot/
In my Video is it the same script ^^
 

iNulleD

Member
Mar 13, 2016
19
2
38
Hello I would like to put the license with 6 bots for each open instance in debia if yes how ?
 
Top