SinusBot 0.9.18 Unlimited instances [Ubuntu]

Alligatoras

Administrator
Mar 31, 2016
2,570
12
2,857
381
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)
If you are talking about the sinusbot folders you will find them here: /opt/ts3soundboard on your VPS!
As about the scripts you want to upload the needed folder:
/opt/ts3soundboard/scripts
 

Archie

Member
Feb 8, 2016
129
8
53
If you are talking about the sinusbot folders you will find them here: /opt/ts3soundboard on your VPS!
As about the scripts you want to upload the needed folder:
/opt/ts3soundboard/scripts
Just checked in there and there's no folders, there normally is when I don't use a docker but when I do there is no ts3soundboard folder, the bots are working and are on my teamspeak so the folder should be there.

Hope you understand what I'm trying to say, Thanks
Archie
 

chris100184

Member
Apr 20, 2016
12
2
35
Alright, to find the location of the sinusbot files i.e scripts folder and what not. Type the following command
Code:
sudo find / -name ts3soundboard -type d
You will see an output of something like this
Code:
/var/lib/docker/aufs/diff/02781940c94e9c374d5a4504326e43bd0f2b8289fa030c63fe4784d64998f5b8/opt/ts3soundboard
/var/lib/docker/aufs/diff/8c4c3158cc4de2a95ec4ab802a7f6057d05028710d757d77ab067743f82269b8/opt/ts3soundboard
/var/lib/docker/aufs/diff/0478fd6047cff9fb2ff781710b283c00d28de9516dff4970a847ff71061bcf29/opt/ts3soundboard
/var/lib/docker/aufs/diff/01d5eb232a366c07e08ea1fa9d59feefc33afd9b907b1a9efce79bc37a053606/opt/ts3soundboard
/var/lib/docker/aufs/diff/f090ee2a2ec5224fbfc26b50f0072498836874f47317ed960c0ec3f92d3a72c3/opt/ts3soundboard
/var/lib/docker/aufs/diff/c1965c2a18f37921b50b53cda5df56f8f431d98919d697c0056430688cf1bf2b/opt/ts3soundboard
/var/lib/docker/aufs/diff/74ea3f6ab6b5cd3a065910e747cf16eb60b3d80213cd1d58e84e1b1eee966d3f/opt/ts3soundboard
/var/lib/docker/aufs/diff/13791123acd57da687f8d22936a17befc14e0c863ece950e016ebf5508a85603/opt/ts3soundboard
/var/lib/docker/aufs/diff/10d1bde696aa1991c2c45c1502478ae290c6ce90901cf04028247d19ddc7bf62/opt/ts3soundboard
/var/lib/docker/aufs/diff/b4616201b13be7078cd189f62393bfff599794fa2764facf03fb8aafed68976f/opt/ts3soundboard
/var/lib/docker/aufs/diff/e467308c7b8ebbe1410dd8c14a300154b9e67384100c7bc9d072264991eaa572/opt/ts3soundboard
/var/lib/docker/aufs/diff/39d8e8e061a6c6493d1c6a8918691d07bc958290d8196eee31267d9862c9337f/opt/ts3soundboard
/var/lib/docker/aufs/diff/3af451424bed1e1480b29d17b8d3dc374b55a5c14ff73fa649feda53a108e0b5/opt/ts3soundboard
/var/lib/docker/aufs/diff/18b5ed6fc32aa22a2f6a0b69b5c7aece956a1edb827ce05ce3a0708969a98ed8/opt/ts3soundboard
/var/lib/docker/aufs/diff/a2ecb03b4610a26e3be036705fff033c4099b0d05a5fe072f4e64bcc4f2539d0/opt/ts3soundboard
/var/lib/docker/aufs/diff/50521953f094c21b56b0cc26a982dc0ff9679718b5856e4573af4084febd359a/opt/ts3soundboard
/var/lib/docker/aufs/diff/e4d53d820a6848748357288cab3d3d580b63b3ef60605178f76a8e53d2028344/opt/ts3soundboard
/var/lib/docker/aufs/diff/c2385036e3497515bb7d871b01e093a5e24fa8d8772d2289f9e33a7de27907dc/opt/ts3soundboard
/var/lib/docker/aufs/mnt/02781940c94e9c374d5a4504326e43bd0f2b8289fa030c63fe4784d64998f5b8/opt/ts3soundboard
/var/lib/docker/aufs/mnt/f090ee2a2ec5224fbfc26b50f0072498836874f47317ed960c0ec3f92d3a72c3/opt/ts3soundboard
/var/lib/docker/aufs/mnt/c1965c2a18f37921b50b53cda5df56f8f431d98919d697c0056430688cf1bf2b/opt/ts3soundboard
/var/lib/docker/aufs/mnt/b4616201b13be7078cd189f62393bfff599794fa2764facf03fb8aafed68976f/opt/ts3soundboard
/var/lib/docker/aufs/mnt/50521953f094c21b56b0cc26a982dc0ff9679718b5856e4573af4084febd359a/opt/ts3soundboard
/var/lib/docker/aufs/mnt/e4d53d820a6848748357288cab3d3d580b63b3ef60605178f76a8e53d2028344/opt/ts3soundboard
/var/lib/docker/aufs/mnt/c2385036e3497515bb7d871b01e093a5e24fa8d8772d2289f9e33a7de27907dc/opt/ts3soundboard
Now what you need are the once with the following path
Code:
 /var/lib/docker/aufs/mnt
So f.x this is the location of, one of my sinusbot bot folder
Code:
/var/lib/docker/aufs/mnt/c2385036e3497515bb7d871b01e093a5e24fa8d8772d2289f9e33a7de27907dc/opt/ts3soundboard

The number of folders depends of how many webpanels of sinusbot you're running.
 
Last edited:

chris100184

Member
Apr 20, 2016
12
2
35
Any script to pass .sh that makes installation as I am in doubt?
I'll try to make the steps a little easier to follow.

Login to your VPS as root via Putty.

(I would recommend having Ubuntu 14.04 LTS)

Anyway, go to https://docs.docker.com/engine/installation/linux/ubuntulinux/ and follow the steps to install Docker.

Let's say you got Ubuntu 14.04 you would do the following

Code:
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

Open the /etc/apt/sources.list.d/docker.list file in your favorite editor.
i.e
Code:
nano /etc/apt/sources.list.d/docker.list

Then paste the following if you got
Ubuntu Precise 12.04 (LTS)
Code:
 deb https://apt.dockerproject.org/repo ubuntu-precise main
Ubuntu Trusty 14.04 (LTS)
Code:
 deb https://apt.dockerproject.org/repo ubuntu-trusty main
Ubuntu Wily 15.10
Code:
 deb https://apt.dockerproject.org/repo ubuntu-wily main
Ubuntu Xenial 16.04 (LTS)
Code:
 deb https://apt.dockerproject.org/repo ubuntu-xenial main

Now close the file by pressing

Code:
ctrl + x

Now for installing docker we will just run a few commands again to make sure everything is as it should be.
Code:
sudo apt-get update
sudo apt-get purge lxc-docker
apt-cache policy docker-engine

Now that that is done, we will get ready to install docker.
Code:
sudo apt-get update
sudo apt-get install docker-engine
sudo service docker start
sudo docker run hello-world

Cool! that's the hard part done!

(edited copy paste from OP)

To start make a user to run docker, and "mod it"

Code:
 adduser tsbot
sudo usermod -aG docker tsbot

Then change to this user:

Code:
 su tsbot

Create a folder called "docker":

Code:
 mkdir docker

Go inside that folder

Code:
 cd docker

Now create a file called dockerfile

Code:
 nano dockerfile

and paste the following into it

Code:
#Docker unlimited Sinusbot instances
#Version: SinusBot Beta 0.9.12.2-58b509d
#Creator: https://www.sinusbot.com/
#Made By: Ralph
#Credits Qraktzyl

FROM ubuntu

#VOLUME ["/SinusBot"]

#Prerequisites
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get -y install x11vnc xvfb libxcursor1 libglib2.0-0 ca-certificates xorg openbox wget bzip2
RUN update-ca-certificates
RUN wget -O "/usr/local/bin/youtube-dl" "https://yt-dl.org/downloads/latest/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.12.2-58b509d.tar.bz2
RUN cd /opt/ts3soundboard/ && wget http://teamspeak.gameserver.gamed.de/ts3/releases/3.0.19.1/TeamSpeak3-Client-linux_amd64-3.0.19.1.run

#Setting Up Files
ADD config.ini /opt/ts3soundboard/config.ini
RUN cd /opt/ts3soundboard/ && tar -xjvf sinusbot-0.9.12.2-58b509d.tar.bz2
RUN cd /opt/ts3soundboard/ && chmod 0755 TeamSpeak3-Client-linux_amd64-3.0.19.1.run
RUN sed -i 's/^MS_PrintLicense$//' /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64-3.0.19.1.run
RUN cd /opt/ts3soundboard && ./TeamSpeak3-Client-linux_amd64-3.0.19.1.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"]




Cool! Now we're almost done!




Now Let's Create a script file called "run.sh"

Code:
 nano run.sh

Now paste the following inside the script file

Code:
#!/bin/bash

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

cd /opt/ts3soundboard
./sinusbot -RunningAsRootIsEvilAndIKnowThat

Let's make it executable by running this commands

Code:
 chmod +x run.sh


Now we create a Config file called "config.ini"

Code:
 nano config.ini

and paste the following inside it.

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

Now we're ready to build the docker image!

You should be in the docker folder, so let's run this command to see the path that we're in - And save the output we will need it in the next step!

Code:
pwd

Now create the docker image

Code:
docker build -t ts3soundboard095 Path-Of-My-Docker-Script-Folder

(Path-Of-My-Docker-Script-Folder means the path to the dockerfile)

Now it will do alot of shit, once it's done we run the following command

Code:
docker run --restart=always -d --name bot1 -p 8087:8087 ts3soundboard095

Cool! now your sinusbot webpanel should be online at http://yourip:8087


7- 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


Now for the script folder as i stated in my above post, but i will just copy paste it in here aswell


Alright, to find the location of the sinusbot files i.e scripts folder and what not. Type the following command
Code:
sudo find / -name ts3soundboard -type d
You will see an output of something like this
Code:
/var/lib/docker/aufs/diff/02781940c94e9c374d5a4504326e43bd0f2b8289fa030c63fe4784d64998f5b8/opt/ts3soundboard
/var/lib/docker/aufs/diff/8c4c3158cc4de2a95ec4ab802a7f6057d05028710d757d77ab067743f82269b8/opt/ts3soundboard
/var/lib/docker/aufs/diff/0478fd6047cff9fb2ff781710b283c00d28de9516dff4970a847ff71061bcf29/opt/ts3soundboard
/var/lib/docker/aufs/diff/01d5eb232a366c07e08ea1fa9d59feefc33afd9b907b1a9efce79bc37a053606/opt/ts3soundboard
/var/lib/docker/aufs/diff/f090ee2a2ec5224fbfc26b50f0072498836874f47317ed960c0ec3f92d3a72c3/opt/ts3soundboard
/var/lib/docker/aufs/diff/c1965c2a18f37921b50b53cda5df56f8f431d98919d697c0056430688cf1bf2b/opt/ts3soundboard
/var/lib/docker/aufs/diff/74ea3f6ab6b5cd3a065910e747cf16eb60b3d80213cd1d58e84e1b1eee966d3f/opt/ts3soundboard
/var/lib/docker/aufs/diff/13791123acd57da687f8d22936a17befc14e0c863ece950e016ebf5508a85603/opt/ts3soundboard
/var/lib/docker/aufs/diff/10d1bde696aa1991c2c45c1502478ae290c6ce90901cf04028247d19ddc7bf62/opt/ts3soundboard
/var/lib/docker/aufs/diff/b4616201b13be7078cd189f62393bfff599794fa2764facf03fb8aafed68976f/opt/ts3soundboard
/var/lib/docker/aufs/diff/e467308c7b8ebbe1410dd8c14a300154b9e67384100c7bc9d072264991eaa572/opt/ts3soundboard
/var/lib/docker/aufs/diff/39d8e8e061a6c6493d1c6a8918691d07bc958290d8196eee31267d9862c9337f/opt/ts3soundboard
/var/lib/docker/aufs/diff/3af451424bed1e1480b29d17b8d3dc374b55a5c14ff73fa649feda53a108e0b5/opt/ts3soundboard
/var/lib/docker/aufs/diff/18b5ed6fc32aa22a2f6a0b69b5c7aece956a1edb827ce05ce3a0708969a98ed8/opt/ts3soundboard
/var/lib/docker/aufs/diff/a2ecb03b4610a26e3be036705fff033c4099b0d05a5fe072f4e64bcc4f2539d0/opt/ts3soundboard
/var/lib/docker/aufs/diff/50521953f094c21b56b0cc26a982dc0ff9679718b5856e4573af4084febd359a/opt/ts3soundboard
/var/lib/docker/aufs/diff/e4d53d820a6848748357288cab3d3d580b63b3ef60605178f76a8e53d2028344/opt/ts3soundboard
/var/lib/docker/aufs/diff/c2385036e3497515bb7d871b01e093a5e24fa8d8772d2289f9e33a7de27907dc/opt/ts3soundboard
/var/lib/docker/aufs/mnt/02781940c94e9c374d5a4504326e43bd0f2b8289fa030c63fe4784d64998f5b8/opt/ts3soundboard
/var/lib/docker/aufs/mnt/f090ee2a2ec5224fbfc26b50f0072498836874f47317ed960c0ec3f92d3a72c3/opt/ts3soundboard
/var/lib/docker/aufs/mnt/c1965c2a18f37921b50b53cda5df56f8f431d98919d697c0056430688cf1bf2b/opt/ts3soundboard
/var/lib/docker/aufs/mnt/b4616201b13be7078cd189f62393bfff599794fa2764facf03fb8aafed68976f/opt/ts3soundboard
/var/lib/docker/aufs/mnt/50521953f094c21b56b0cc26a982dc0ff9679718b5856e4573af4084febd359a/opt/ts3soundboard
/var/lib/docker/aufs/mnt/e4d53d820a6848748357288cab3d3d580b63b3ef60605178f76a8e53d2028344/opt/ts3soundboard
/var/lib/docker/aufs/mnt/c2385036e3497515bb7d871b01e093a5e24fa8d8772d2289f9e33a7de27907dc/opt/ts3soundboard
Now what you need are the once with the following path
Code:
 /var/lib/docker/aufs/mnt
So f.x this is the location of, one of my bot's sinusbot folder
Code:
/var/lib/docker/aufs/mnt/c2385036e3497515bb7d871b01e093a5e24fa8d8772d2289f9e33a7de27907dc/opt/ts3soundboard

The number of folders depends of how many webpanels of sinusbot you're running.
 

Wrath X

Member
Oct 2, 2015
96
34
53
@chris100184 Thanks for this but every time I do it I get nothing? Any other ideas of what I could try?
http://prntscr.com/biqyhm
What happens when you run this commands could you say or ss that ?
Code:
# mkdir /opt/ts3soundboard/
# cd /opt/ts3soundboard/ && wget https://www.sinusbot.com/pre/sinusbot-0.9.12.2-58b509d.tar.bz2

BTW thank you bro. Nice work @ralph *

* Edit Reason: Thanks added.
 
Last edited:

Kignaw

Member
May 21, 2015
10
0
36
I started doing the installation and started giving errors stopped this command line !
AORTTeR.png
 

Wrath X

Member
Oct 2, 2015
96
34
53
Last edited:

Kignaw

Member
May 21, 2015
10
0
36
user has been warned for this post : wat
friend could mander one execultavel script.sh only to execulta it and it make the automatic installation? :)
 

chris100184

Member
Apr 20, 2016
12
2
35
friend could mander one execultavel script.sh only to execulta it and it make the automatic installation? :)
It is pretty much automatic. All you need to do is install docker and create a few files, then everything else will be done once you run the docker file. shouldn't take more than 5 minutes to setup.
 

Wrath X

Member
Oct 2, 2015
96
34
53
How can I access a dockers process like screens ? For example I need to restart sinusbot process, how can i do that ? I tried to restart a container but i was reset. It does not continue where it left off.
 
Top