This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
sinusbot-goodies.sh
119 lines (119 loc) · 5.15 KB
/
sinusbot-goodies.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/bin/sh
echo '
################################WARNING#################################################
# The TeamSpeak Client 3.3+ requires at least a Linux Kernel of version 3.17 or higher!#
#When choosing a VPS (virtual private server), make sure that it is not based on OpenVZ#
#because the Linux kernel will be too old. #
#Instead choose a KVM or LCX based VPS with a recent OS. #
#This multi instance script should work with the recent debian & ubuntu distros #
#if something is not working please reffer to #
#https://sinusbot.github.io/docs/installation/linux/ #
################################WARNING#################################################
'
#update
apt update
apt install python3-pip
apt install -y x11vnc xvfb libxcursor1 ca-certificates bzip2 libnss3 libegl1-mesa x11-xkb-utils libasound2 libpci3 libxslt1.1 libxkbcommon0 libxss1 curl
update-ca-certificates
apt install libglib2.0-0
pip3 install youtube-dl
#end
#user
adduser --disabled-login sinusbot
mkdir -p /opt/sinusbot
#end
#ts3 & sinusbot dl
cd /opt/sinusbot
VERSION="3.5.3"
wget https://files.teamspeak-services.com/releases/client/$VERSION/TeamSpeak3-Client-linux_amd64-$VERSION.run
chmod 0755 TeamSpeak3-Client-linux_amd64-$VERSION.run
./TeamSpeak3-Client-linux_amd64-$VERSION.run
wget https://www.sinusbot.com/dl/sinusbot.current.tar.bz2
tar -xjf sinusbot.current.tar.bz2
rm TeamSpeak3-Client-linux_amd64/xcbglintegrations/libqxcb-glx-integration.so
mkdir TeamSpeak3-Client-linux_amd64/plugins
cp plugin/libsoundbot_plugin.so TeamSpeak3-Client-linux_amd64/plugins/
chmod 755 sinusbot
#end
cd /opt
#ports
Port1="8090"
Port2="8091"
Port3="8092"
Port4="8093"
#end
#dirs
bot1="bot1"
bot2="bot2"
bot3="bot3"
bot4="bot4"
#end
mkdir $bot1
mkdir $bot2
mkdir $bot3
mkdir $bot4
#bot1
cd /opt/$bot1
cp /opt/sinusbot/sinusbot.current.tar.bz2 /opt/$bot1/sinusbot.current.tar.bz2
cp /opt/sinusbot/sinusbot.current.tar.bz2 /opt/$bot2/sinusbot.current.tar.bz2
cp /opt/sinusbot/sinusbot.current.tar.bz2 /opt/$bot3/sinusbot.current.tar.bz2
cp /opt/sinusbot/sinusbot.current.tar.bz2 /opt/$bot4/sinusbot.current.tar.bz2
tar -xjf sinusbot.current.tar.bz2
echo TS3Path = \"/opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64\" >> config.ini
echo ListenHost = \"0.0.0.0\" >> config.ini
echo ListenPort = $Port1 >> config.ini
echo YoutubeDLPath = \"/usr/local/bin/youtube-dl\" >> config.ini
chmod 755 sinusbot
#end
#bot2
cd /opt/$bot2
tar -xjf sinusbot.current.tar.bz2
echo TS3Path = \"/opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64\" >> config.ini
echo ListenHost = \"0.0.0.0\" >> config.ini
echo ListenPort = $Port2 >> config.ini
echo YoutubeDLPath = \"/usr/local/bin/youtube-dl\" >> config.ini
chmod 755 sinusbot
#end
#bot3
cd /opt/$bot3
tar -xjf sinusbot.current.tar.bz2
echo TS3Path = \"/opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64\" >> config.ini
echo ListenHost = \"0.0.0.0\" >> config.ini
echo ListenPort = $Port3 >> config.ini
echo YoutubeDLPath = \"/usr/local/bin/youtube-dl\" >> config.ini
chmod 755 sinusbot
#end
#bot4
cd /opt/$bot4
tar -xjf sinusbot.current.tar.bz2
echo TS3Path = \"/opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64\" >> config.ini
echo ListenHost = \"0.0.0.0\" >> config.ini
echo ListenPort = $Port4 >> config.ini
echo YoutubeDLPath = \"/usr/local/bin/youtube-dl\" >> config.ini
chmod 755 sinusbot
#end
#own & mod
chown -R sinusbot:sinusbot /opt/$bot1
chown -R sinusbot:sinusbot /opt/$bot2
chown -R sinusbot:sinusbot /opt/$bot3
chown -R sinusbot:sinusbot /opt/$bot4
chown -R sinusbot:sinusbot /opt/sinusbot
chmod -R 777 /opt
#end
echo '
####################################################################################################
#im done to use the multiport multi instance sinusbot #
#type su sinusbot #
#after this command you might coppy && paste the following commands #
#cd /opt/bot1 && screen -dms bot1 ./sinusbot --override-password easypass123 #
#cd /opt/bot2 && screen -dms bot2 ./sinusbot --override-password easypass123 #
#cd /opt/bot3 && screen -dms bot3 ./sinusbot --override-password easypass123 #
#cd /opt/bot4 && screen -dms bot4 ./sinusbot --override-password easypass123 #
#remember to replase easypass123 with your pass #
#the pannels are accessible trough #
#yourmachineip:8090 #
#yourmachineip:8091 #
#yourmachineip:8092 #
#yourmachineip:8093 #
####################################################################################################
'