SinusBot 0.9.18 Unlimited instances [Ubuntu]

ralph

Member
Apr 13, 2016
10
5
38
Docker Script For
SinusBot 0.9.18-8499d2c

This requires you have a kernel version 3.10 or newer! Check with this command: uname -r

Credits for my docker scripts goes to Qraktzyl I just rewrote his script to run the newer version.

Original Post: https://r4p3.net/threads/ts3soundboardbot-sinusbot-more-instances-for-ubuntu.1080/

I only tested this on Virtualbox with Ubuntu Server 16.04!

How to install docker?
https://docs.docker.com/engine/installation/linux/ubuntulinux/

Now Lets Start
To start make a user to run docker:
adduser tsbot
sudo usermod -aG docker tsbot

Then change to this user:

su tsbot

Create a folder called "docker":

mkdir docker

Go inside that folder. Create a file called "dockerfile" and paste this script inside of it:
cd docker
nano dockerfile

Paste Then Save:
Code:
#Docker unlimited Sinusbot instances
#Version: SinusBot Beta 0.9.16-10f0fad
#Creator: https://www.sinusbot.com/
#Script Made By: Ralph
#Credits Qraktzyl

FROM ubuntu

#VOLUME ["/SinusBot"]

#Prerequisites
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get -y install x11vnc xinit xvfb libxcursor1 ca-certificates bzip2 libglib2.0-0 wget curl python2.7 libssl-dev libffi-dev python-dev
RUN update-ca-certificates
RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && chmod a+rx /usr/local/bin/youtube-dl

#Downloads
RUN mkdir /opt/ts3soundboard/
RUN cd /opt/ts3soundboard/ && wget https://www.sinusbot.com/pre/sinusbot-0.9.18-8499d2c.tar.bz2
RUN cd /opt/ts3soundboard/ && wget http://teamspeak.gameserver.gamed.de/ts3/releases/3.0.19.4/TeamSpeak3-Client-linux_amd64-3.0.19.4.run

#Setting Up Files
ADD config.ini /opt/ts3soundboard/config.ini
RUN cd /opt/ts3soundboard/ && tar -xjvf sinusbot-0.9.18-8499d2c.tar.bz2
RUN cd /opt/ts3soundboard/ && chmod 0755 TeamSpeak3-Client-linux_amd64-3.0.19.4.run
RUN sed -i 's/^MS_PrintLicense$//' /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64-3.0.19.4.run
RUN cd /opt/ts3soundboard && ./TeamSpeak3-Client-linux_amd64-3.0.19.4.run
RUN cd /opt/ts3soundboard/ && cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
RUN chown -R root:root /opt/ts3soundboard
RUN cd /opt/ts3soundboard/ && chmod 755 sinusbot

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

EXPOSE 8087
CMD ["/run.sh"]

Create a shell script file called "run.sh":
nano run.sh

Paste Then Save:
Code:
#!/bin/bash

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

cd /opt/ts3soundboard
./sinusbot -RunningAsRootIsEvilAndIKnowThat

Make it executable:
chmod +x run.sh

Create a Config file called "config.ini":
nano config.ini

Paste Then Save:
Code:
TS3Path = "/opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
ListenHost = "0.0.0.0"
DataDir = "/opt/ts3soundboard/data/"
ListenPort = 8087
LogLevel = 10
YoutubeDLPath = "/usr/local/bin/youtube-dl"
EnableDebugConsole = true

We build the image:
docker build -t ts3soundboard095 pathtodockerfile <pathtodockerfile get it do: pwd

Run the first docker container from the image we just created ("ts3soundboard095"):
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

To get the panel login information run:
docker logs -f bot1
The name is the part from then docker run command the --name bot1
Scroll up and you will find something like this:
-------------------------------------------------------------------------------
Generating new bot instance with account 'admin' and password 'cok0aU5b'
PLEASE MAKE SURE TO CHANGE THE PASSWORD DIRECTLY AFTER YOUR FIRST LOGIN!!!
-------------------------------------------------------------------------------

Run more docker containers from our "ts3soundboard095" image.
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...
docker run --restart=always -d --name bot3 -p 8089:8087 ts3soundboard095
 
Last edited:

Joxiii

Discord hater!
Feb 2, 2016
271
182
92
Are you Copy things? We have Released this since 3 Months or more :D


#Request Close
 

Wolfie

Active Member
Sep 12, 2015
69
5
80
Will this work on Debian? ;) (Ubuntu/Debian seems to be similar systems? ;) )
 

iAndrewGG

Member
Mar 9, 2016
34
4
40
User got warned for this post
Will this work on Debian? ;) (Ubuntu/Debian seems to be similar systems? ;) )
Yes it will. Ubuntu is based on Debian, you can read about it *Adf.ly Link Removed*
 
Last edited by a moderator:

Wolfie

Active Member
Sep 12, 2015
69
5
80
Withot any kind of installing something/something, found the easyest way to run as many instances as I want..... For example, we have ts3bot (SinusBot 0.9.5, which has limit on 6 instances). Run it on port 8087, which is default. Extract the same thing in the other directory, for example, if first ts3bot has been extracted in /opt/ts3soudboard, next one will go to /opt/ts3soundboard2. In config.ini just edit the listen port to be on 8088. Now, we have 12 instances of different music, and so on.... For third start, we can choose /opt/ts3soundboard3 (port 8089)..... etc..... It's workong for Debian 8. :) I think that it would be working with 0.9.12, but we'll need for this 18 instances ports form 8087-8096 and 9 different sinusbot locations.....
 

ZombieJo

Active Member
Jun 20, 2015
37
7
83
Withot any kind of installing something/something, found the easyest way to run as many instances as I want..... For example, we have ts3bot (SinusBot 0.9.5, which has limit on 6 instances). Run it on port 8087, which is default. Extract the same thing in the other directory, for example, if first ts3bot has been extracted in /opt/ts3soudboard, next one will go to /opt/ts3soundboard2. In config.ini just edit the listen port to be on 8088. Now, we have 12 instances of different music, and so on.... For third start, we can choose /opt/ts3soundboard3 (port 8089)..... etc..... It's workong for Debian 8. :) I think that it would be working with 0.9.12, but we'll need for this 18 instances ports form 8087-8096 and 9 different sinusbot locations.....
I have try it and it works great on the current beta version. Have now over 30 instances :)
 

Wolfie

Active Member
Sep 12, 2015
69
5
80
How many percent processor works with? 0.9.12? 15 different folders? :) What is the server configuration? :)
 

ZombieJo

Active Member
Jun 20, 2015
37
7
83
How many percent processor works with? 0.9.12? 15 different folders? :) What is the server configuration? :)
Currently it's on 17% CPU :) Version: 0.9.12-58b509d, Folders: 3 (I have a license for my server) What you mean with the configuration? :)
 

Wolfie

Active Member
Sep 12, 2015
69
5
80
Hmmmmm, didn't know that the licensed version is limited to 10 instances? When I told a word "configuration", I meant on CPU in GHz and RAM :)
 

Exrchan

Member
Jun 11, 2016
12
0
33
i try it but i have a problem :/
when i try to open the other ports not working
only the main port work
 

Archie

Member
Feb 8, 2016
129
8
53
Where are the music bots? I want to add a script but can't find them anywhere? (They are working just want to add scripts)
 
Top