mirror of
https://github.com/MrUnknownDE/linux-script.git
synced 2026-04-09 09:53:47 +02:00
added
This commit is contained in:
24
LICENSE
24
LICENSE
@@ -1,21 +1,19 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Johannes
|
||||
MIT License Copyright (c) <year> <copyright holders>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
The above copyright notice and this permission notice (including the next
|
||||
paragraph) shall be included in all copies or substantial portions of the
|
||||
Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
|
||||
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
||||
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
38
README.md
38
README.md
@@ -1 +1,37 @@
|
||||
# linux-script
|
||||
# linux-scripts
|
||||
Paar wunderbare Scripts
|
||||
|
||||
-----
|
||||
|
||||
|
||||
## Spigot Auto-Build Scripts
|
||||
Systemrequirements:<br>
|
||||
Distribution: Debian 9-10 / Ubuntu 16.04 - 18.04<br>
|
||||
CPU: 1 vCore <br>
|
||||
Ram: 2GB <br><br>
|
||||
  <br>
|
||||
<code>bash <(wget -O - 'https://git.syslul.de/MrUnknownDE/linux-scripts/raw/branch/master/sh_scripts/spigot_autobild.sh')</code>
|
||||
|
||||
|
||||
-----
|
||||
|
||||
|
||||
## TS3AudioBot Installer
|
||||
  <br>
|
||||
<code>bash <(wget -O - 'https://git.syslul.de/MrUnknownDE/linux-scripts/raw/branch/master/sh_scripts/ts3audiobot_installer.sh')</code>
|
||||
|
||||
|
||||
-----
|
||||
|
||||
|
||||
## System - Info
|
||||
   <br> <br>
|
||||
is not finished<br>
|
||||
<code>bash <(wget -O - 'https://git.syslul.de/MrUnknownDE/linux-scripts/raw/branch/master/sh_scripts/system_info.sh')</code>
|
||||
|
||||
|
||||
-----
|
||||
|
||||
|
||||
## PROJECT_TITLE
|
||||
   <br> <br>
|
||||
|
||||
28
docs/readme.md
Normal file
28
docs/readme.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# Readme
|
||||
Das ist eine Datei, die eh keiner Lesen wird deswegen verweise ich euch auf die die anderen Datein in diesem Ordner :)
|
||||
|
||||
|
||||
Und da ich so unkreativ bin wie sau, mache ich einfach ein Platzhalter :)
|
||||
___
|
||||
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
|
||||
|
||||
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
|
||||
|
||||
Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
|
||||
|
||||
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis.
|
||||
|
||||
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, At accusam aliquyam diam diam dolore dolores duo eirmod eos erat, et nonumy sed tempor et et invidunt justo labore Stet clita ea et gubergren, kasd magna no rebum. sanctus sea sed takimata ut vero voluptua. est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.
|
||||
|
||||
Consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus.
|
||||
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
|
||||
|
||||
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
|
||||
|
||||
Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo
|
||||
37
docs/speedtest.md
Normal file
37
docs/speedtest.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# Speedtest
|
||||
 
|
||||
|
||||
**Install**
|
||||
|
||||
```
|
||||
#!/bin/bash
|
||||
sudo apt install gnupg1 apt-transport-https dirmngr -y
|
||||
export INSTALL_KEY=379CE192D401AB61
|
||||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $INSTALL_KEY
|
||||
echo "deb https://ookla.bintray.com/debian generic main" | sudo tee /etc/apt/sources.list.d/speedtest.list
|
||||
sudo apt update
|
||||
# Other non-official binaries will conflict with Speedtest CLI
|
||||
# Example how to remove using apt-get
|
||||
sudo apt remove speedtest-cli -y
|
||||
sudo apt install speedtest -y
|
||||
echo "speedtest installer has end ..."
|
||||
exit
|
||||
```
|
||||
or [https://static.syslul.de/src/sh/speedtest.sh](https://static.syslul.de/src/sh/speedtest.sh)
|
||||
|
||||
## Server-Liste
|
||||
`speedtest --server-id=<id>`
|
||||
|
||||
| Berlin | |
|
||||
|:-----------------------------:|---------|
|
||||
| Telekom GmbH | 30907 |
|
||||
| DNS:NET Internet Service GmbH | 20507 |
|
||||
| Consultix 10G | 28622 |
|
||||
| AS250.net | 27322 |
|
||||
| Cronon GmbH | 17137 |
|
||||
| dotManaged | 36395 |
|
||||
| TELTA Citynetz GmbH | 26715 |
|
||||
|
||||
| Frankfurt | |
|
||||
|:------------:|-|
|
||||
| is not found | |
|
||||
165
docs/tor_install_doc.md
Normal file
165
docs/tor_install_doc.md
Normal file
@@ -0,0 +1,165 @@
|
||||
# "Perfekte" Tor Relay Settings
|
||||
|
||||
Benutzen Sie dafür bitte das Betriebsystem **Debian 10** oder die neuere **Ubuntu Server** *(20.04)* Version.
|
||||
|
||||
Tor installieren sie ganz normal über den Paket-Manager des Betriebsystem. `(apt install tor)`
|
||||
|
||||
|
||||
Die Relay-Config:
|
||||
```
|
||||
# System Relevant
|
||||
RunAsDaemon 1
|
||||
MaxMemInQueues 2 GB
|
||||
HashedControlPassword <your hased Password>
|
||||
CookieAuthentication 0
|
||||
DisableDebuggerAttachment 0
|
||||
|
||||
# Port Relevant
|
||||
Address mccurry.johanneskr.de
|
||||
ORPort 9001
|
||||
ControlPort 9051
|
||||
DirPort 9030
|
||||
SocksPort 0
|
||||
|
||||
# Verzeichnis Relevant
|
||||
DataDirectory /var/lib/tor
|
||||
Log notice file /var/log/tor/notices.log
|
||||
|
||||
# Metrics Relevant
|
||||
ContactInfo abuse<at>johanneskr<dot>de
|
||||
Nickname Currywurst
|
||||
|
||||
# Netzwerk Relevant
|
||||
RelayBandwidthRate 100 MB # Der Traffic Limit (100 MB = 100MB/s)
|
||||
RelayBandwidthBurst 100 MB # Der Traffic Limit (100 MB = 100MB/s)
|
||||
AccountingStart month 1 00:00 # Wann der Limit startet, in diesem Fall am ersten Tag im Monat um 0 Uhr
|
||||
AccountingMax 15000 GB # Wie viel Traffic dein Server hat
|
||||
ExitPolicy reject6 *:*, reject *:*
|
||||
```
|
||||
**Ergebnis:**
|
||||

|
||||
|
||||
___
|
||||
So, falls jemand noch lust hat und Spaß mit dem Abuse Team von dem jewaligen ISP haben will. Pack ich euch noch die Config für ein **Exit-Relay** rein.
|
||||
Ein Exit-Relay ist der letzte Punkt von einer Tor-Verbindung und wird somit schnell als der schlechte Server darfgestellt, da über ihn die Angriffe aus dem Tor Netzwerk ausgeführt werden.
|
||||
|
||||
**Also im groben Zusammengefasst:** Ihr begibt euch da ein großes Risiko.
|
||||
Wichtig ist noch zu sagen, das ihr euch bitte [Diese Datei](https://gitweb.torproject.org/tor.git/plain/contrib/operator-tools/tor-exit-notice.html) downloaded und die in eurem Data-Directory gepackt wird.
|
||||
|
||||
|
||||
Die Exit-Config:
|
||||
```
|
||||
# System Relevant
|
||||
RunAsDaemon 1
|
||||
MaxMemInQueues 2 GB
|
||||
HashedControlPassword <your hased Password>
|
||||
CookieAuthentication 1
|
||||
DisableDebuggerAttachment 0
|
||||
|
||||
# Port Relevant
|
||||
Address mccurry.johanneskr.de
|
||||
ORPort 9001
|
||||
ControlPort 9051
|
||||
DirPort 80
|
||||
SocksPort 0
|
||||
|
||||
# Verzeichnis Relevant
|
||||
DirPortFrontPage /etc/tor/tor-exit-notice.html
|
||||
DataDirectory /var/lib/tor
|
||||
Log notice file /var/log/tor/notices.log
|
||||
|
||||
# Metrics Relevant
|
||||
ContactInfo abuse<at>johanneskr<dot>de
|
||||
Nickname Currywurst
|
||||
|
||||
# Netzwerk Relevant
|
||||
RelayBandwidthRate 100 MB # Der Traffic Limit (100 MB = 100MB/s)
|
||||
RelayBandwidthBurst 100 MB # Der Traffic Limit (100 MB = 100MB/s)
|
||||
AccountingStart month 1 00:00 # Wann der Limit startet, in diesem Fall am ersten Tag im Monat um 0 Uhr
|
||||
AccountingMax 15000 GB # Wie viel Traffic dein Server hat
|
||||
|
||||
# Exit-Police
|
||||
ExitPolicy accept *:20-23 # FTP, SSH, telnet
|
||||
ExitPolicy accept *:43 # WHOIS
|
||||
ExitPolicy accept *:53 # DNS
|
||||
ExitPolicy accept *:79-81 # finger, HTTP
|
||||
ExitPolicy accept *:88 # kerberos
|
||||
ExitPolicy accept *:110 # POP3
|
||||
ExitPolicy accept *:143 # IMAP
|
||||
ExitPolicy accept *:194 # IRC
|
||||
ExitPolicy accept *:220 # IMAP3
|
||||
ExitPolicy accept *:389 # LDAP
|
||||
ExitPolicy accept *:443 # HTTPS
|
||||
ExitPolicy accept *:464 # kpasswd
|
||||
ExitPolicy accept *:465 # URD for SSM (more often: an alternative SUBMISSION port, see 587)
|
||||
ExitPolicy accept *:531 # IRC/AIM
|
||||
ExitPolicy accept *:543-544 # Kerberos
|
||||
ExitPolicy accept *:554 # RTSP
|
||||
ExitPolicy accept *:563 # NNTP over SSL
|
||||
ExitPolicy accept *:587 # SUBMISSION (authenticated clients [MUA's like Thunderbird] send mail over STARTTLS SMTP here)
|
||||
ExitPolicy accept *:636 # LDAP over SSL
|
||||
ExitPolicy accept *:706 # SILC
|
||||
ExitPolicy accept *:749 # kerberos
|
||||
ExitPolicy accept *:873 # rsync
|
||||
ExitPolicy accept *:902-904 # VMware
|
||||
ExitPolicy accept *:981 # Remote HTTPS management for firewall
|
||||
ExitPolicy accept *:989-990 # FTP over SSL
|
||||
ExitPolicy accept *:991 # Netnews Administration System
|
||||
ExitPolicy accept *:992 # TELNETS
|
||||
ExitPolicy accept *:993 # IMAP over SSL
|
||||
ExitPolicy accept *:994 # IRCS
|
||||
ExitPolicy accept *:995 # POP3 over SSL
|
||||
ExitPolicy accept *:1194 # OpenVPN
|
||||
ExitPolicy accept *:1220 # QT Server Admin
|
||||
ExitPolicy accept *:1293 # PKT-KRB-IPSec
|
||||
ExitPolicy accept *:1500 # VLSI License Manager
|
||||
ExitPolicy accept *:1533 # Sametime
|
||||
ExitPolicy accept *:1677 # GroupWise
|
||||
ExitPolicy accept *:1723 # PPTP
|
||||
ExitPolicy accept *:1755 # RTSP
|
||||
ExitPolicy accept *:1863 # MSNP
|
||||
ExitPolicy accept *:2082 # Infowave Mobility Server
|
||||
ExitPolicy accept *:2083 # Secure Radius Service (radsec)
|
||||
ExitPolicy accept *:2086-2087 # GNUnet, ELI
|
||||
ExitPolicy accept *:2095-2096 # NBX
|
||||
ExitPolicy accept *:2102-2104 # Zephyr
|
||||
ExitPolicy accept *:3128 # SQUID
|
||||
ExitPolicy accept *:3389 # MS WBT
|
||||
ExitPolicy accept *:3690 # SVN
|
||||
ExitPolicy accept *:4321 # RWHOIS
|
||||
ExitPolicy accept *:4643 # Virtuozzo
|
||||
ExitPolicy accept *:5050 # MMCC
|
||||
ExitPolicy accept *:5190 # ICQ
|
||||
ExitPolicy accept *:5222-5223 # XMPP, XMPP over SSL
|
||||
ExitPolicy accept *:5228 # Android Market
|
||||
ExitPolicy accept *:5900 # VNC
|
||||
ExitPolicy accept *:6660-6669 # IRC
|
||||
ExitPolicy accept *:6679 # IRC SSL
|
||||
ExitPolicy accept *:6697 # IRC SSL
|
||||
ExitPolicy accept *:8000 # iRDMI
|
||||
ExitPolicy accept *:8008 # HTTP alternate
|
||||
ExitPolicy accept *:8074 # Gadu-Gadu
|
||||
ExitPolicy accept *:8080 # HTTP Proxies
|
||||
ExitPolicy accept *:8082 # HTTPS Electrum Bitcoin port
|
||||
ExitPolicy accept *:8087-8088 # Simplify Media SPP Protocol, Radan HTTP
|
||||
ExitPolicy accept *:8332-8333 # Bitcoin
|
||||
ExitPolicy accept *:8443 # PCsync HTTPS
|
||||
ExitPolicy accept *:8888 # HTTP Proxies, NewsEDGE
|
||||
ExitPolicy accept *:9418 # git
|
||||
ExitPolicy accept *:9999 # distinct
|
||||
ExitPolicy accept *:10000 # Network Data Management Protocol
|
||||
ExitPolicy accept *:11371 # OpenPGP hkp (http keyserver protocol)
|
||||
ExitPolicy accept *:19294 # Google Voice TCP
|
||||
ExitPolicy accept *:19638 # Ensim control panel
|
||||
ExitPolicy accept *:50002 # Electrum Bitcoin SSL
|
||||
ExitPolicy accept *:64738 # Mumble
|
||||
ExitPolicy reject *:*
|
||||
IPv6Exit 1
|
||||
```
|
||||
# Noch fragen?
|
||||
### IPv6
|
||||
Falls euer Server eine IPv6 Addresse hat, dann müsst ihr an der jewaligen Config den folgenden Parameter angeben:
|
||||
`ORPort [INSERT_IPV6_ADDRESS]:9001`
|
||||
|
||||
### Danke!
|
||||
Ich bedanke mich fürs Lesen dieser Markdown Datei und wünsche euch viel Spaß beim unterstützten des Tor-Netzwerkes. Falls noch fragen oder Verbesserungsvorschläge sind, können sie mich per E-Mail, die versteckt in den Configurationen sind, erreichen :)
|
||||
75
docs/ts3audiobot_install_doc.md
Normal file
75
docs/ts3audiobot_install_doc.md
Normal file
@@ -0,0 +1,75 @@
|
||||
# Ts3AudioBot Install-Doc
|
||||
#### Debian 10 -> Zeile 5
|
||||
#### Ubuntu 19.04 -> Zeile 39
|
||||
|
||||
|
||||
# Debian 10
|
||||
**1. Install DOTNET-3.1**
|
||||
```
|
||||
apt install apt-transport-https gpg
|
||||
|
||||
wget -O- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
|
||||
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
|
||||
wget https://packages.microsoft.com/config/debian/10/prod.list
|
||||
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
|
||||
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
|
||||
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
|
||||
|
||||
apt update
|
||||
apt install dotnet-sdk-2.2 dotnet-sdk-3.1
|
||||
```
|
||||
|
||||
**2. Install Opus and FFMPEG**
|
||||
|
||||
```apt install libopus-dev ffmpeg -y```
|
||||
|
||||
**3. Install Youtube-DL**
|
||||
```
|
||||
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
|
||||
sudo chmod a+rx /usr/local/bin/youtube-dl
|
||||
```
|
||||
|
||||
**4. Install Ts3AudioBot**
|
||||
```
|
||||
wget -O Bot.zip https://splamy.de/api/nightly/ts3ab/develop/download
|
||||
apt install unzip -y && unzip Bot.zip -d Bot && cd Bot/
|
||||
```
|
||||
|
||||
**5. Running Ts3AudioBot**
|
||||
|
||||
`dotnet TS3AudioBot.dll`
|
||||
|
||||
# Ubuntu 18.04
|
||||
**1. Install DOTNET-3.1**
|
||||
```
|
||||
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
|
||||
sudo dpkg -i packages-microsoft-prod.deb
|
||||
|
||||
add-apt-repository universe
|
||||
apt update
|
||||
apt install apt-transport-https
|
||||
apt update
|
||||
apt install dotnet-sdk-2.2 dotnet-sdk-3.1
|
||||
```
|
||||
|
||||
**2. Install Opus and FFMPEG**
|
||||
|
||||
```apt install libopus-dev ffmpeg -y```
|
||||
|
||||
**3. Install Youtube-DL**
|
||||
```
|
||||
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
|
||||
sudo chmod a+rx /usr/local/bin/youtube-dl
|
||||
```
|
||||
|
||||
**4. Install Ts3AudioBot**
|
||||
```
|
||||
wget -O Bot.zip https://splamy.de/api/nightly/ts3ab/develop/download
|
||||
apt install unzip -y && unzip Bot.zip -d Bot && cd Bot/
|
||||
```
|
||||
|
||||
**5. Running Ts3AudioBot**
|
||||
|
||||
```dotnet TS3AudioBot.dll```
|
||||
|
||||
___
|
||||
35
sh_scripts/spigot_autobild.sh
Normal file
35
sh_scripts/spigot_autobild.sh
Normal file
@@ -0,0 +1,35 @@
|
||||
#/bin/bash
|
||||
clear
|
||||
echo "################################################"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# Spigot Buildtool #"
|
||||
echo "# Autostart Script #"
|
||||
echo "# #"
|
||||
echo "# by #"
|
||||
echo "# johanneskr.de #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "################################################"
|
||||
echo ""
|
||||
echo ""
|
||||
echo "DE >"
|
||||
echo "Dieses Script startet gleich automatisch. Es holt die aktuellste Version vom \"BuildTool\" und startet dann gleich damit."
|
||||
echo ""
|
||||
echo "EN >"
|
||||
echo "This script starts automatically. It gets the latest version of the \"BuildTool\" and then starts with it"
|
||||
sleep 5
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
rm BuildTools.jar
|
||||
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
|
||||
clear
|
||||
|
||||
echo "Checking software packages ..."
|
||||
apt-get install git default-jdk -y > /dev/null
|
||||
echo "start building ..."
|
||||
sleep 2
|
||||
java -jar BuildTools.jar
|
||||
25
sh_scripts/system_info.sh
Normal file
25
sh_scripts/system_info.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#/bin/bash
|
||||
clear
|
||||
echo "################################################"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# System_Info #"
|
||||
echo "# by #"
|
||||
echo "# johanneskr.de #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "################################################"
|
||||
|
||||
|
||||
print_info() {
|
||||
info title
|
||||
info underline
|
||||
|
||||
info "OS" distro
|
||||
info "Host" model
|
||||
info "CPU" cpu
|
||||
info "Memory" memory
|
||||
info "Kernel" kernel
|
||||
info "Uptime" uptime
|
||||
info "Packages" packages
|
||||
info "Public IP" public_ip
|
||||
266
sh_scripts/ts3audiobot_installer.sh
Normal file
266
sh_scripts/ts3audiobot_installer.sh
Normal file
@@ -0,0 +1,266 @@
|
||||
#/bin/bash
|
||||
# TS3AudioBot Installer
|
||||
# Init
|
||||
FILE="/tmp/out.$$"
|
||||
GREP="/bin/grep"
|
||||
|
||||
# Make sure only root can run our script
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script must be run as root" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
clear
|
||||
echo "################################################"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# TS3AudioBot #"
|
||||
echo "# Installer #"
|
||||
echo "# #"
|
||||
echo "# by #"
|
||||
echo "# johanneskr.de #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "################################################"
|
||||
|
||||
echo -n "Choose your System"
|
||||
echo ""
|
||||
|
||||
PS3='Please choose between 1-3:: '
|
||||
options=("Debian 10" "Debian 9" "Ubuntu 18.04" "Quit")
|
||||
select opt in "${options[@]}"
|
||||
do
|
||||
case $opt in
|
||||
"Debian 10")
|
||||
echo "starting installer for Debian 10..."
|
||||
sleep 2
|
||||
echo "install system packages ..."
|
||||
apt-get install apt-transport-https pgp -y > /dev/null
|
||||
echo "install Microsoft repository ..."
|
||||
wget -O- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
|
||||
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
|
||||
wget https://packages.microsoft.com/config/debian/10/prod.list
|
||||
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
|
||||
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
|
||||
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
apt install dotnet-sdk-2.2 dotnet-sdk-3.1 -y
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
echo "install FFMPEG and Opus ..."
|
||||
apt install ffmpeg libopus-dev -y
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
echo "install FFMPEG and Opus ..."
|
||||
echo "install youtube-dl ..."
|
||||
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
|
||||
sudo chmod a+rx /usr/local/bin/youtube-dl
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
echo "install FFMPEG and Opus ..."
|
||||
echo "install youtube-dl ..."
|
||||
echo "install TS3AudioBot ..."
|
||||
echo "Folder: Bot"
|
||||
wget -O Bot.zip https://splamy.de/api/nightly/ts3ab/develop/download
|
||||
apt install unzip -y && unzip Bot.zip -d Bot && cd Bot/
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
echo "install FFMPEG and Opus ..."
|
||||
echo "install youtube-dl ..."
|
||||
echo "install TS3AudioBot ..."
|
||||
echo "Folder: Bot"
|
||||
echo "cleanup this install ..."
|
||||
sleep 5
|
||||
clear
|
||||
echo "################################################"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# Thank you for use #"
|
||||
echo "# this installer #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# run this Bot with #"
|
||||
echo "# > cd Bot/ #"
|
||||
echo "# > dotnet TS3AudioBot.dll #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# johanneskr.de #"
|
||||
echo "################################################"
|
||||
echo ""
|
||||
break
|
||||
;;
|
||||
"Debian 9")
|
||||
echo "starting installer for Debian 9..."
|
||||
sleep 2
|
||||
echo "install system packages ..."
|
||||
apt-get install apt-transport-https pgp -y > /dev/null
|
||||
echo "install Microsoft repository ..."
|
||||
wget -O- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
|
||||
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
|
||||
wget https://packages.microsoft.com/config/debian/9/prod.list
|
||||
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
|
||||
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
|
||||
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
apt-get install dotnet-sdk-2.2 dotnet-sdk-3.1 -y
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
echo "install FFMPEG and Opus ..."
|
||||
apt-get install ffmpeg libopus-dev -y
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
echo "install FFMPEG and Opus ..."
|
||||
echo "install youtube-dl ..."
|
||||
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
|
||||
sudo chmod a+rx /usr/local/bin/youtube-dl
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
echo "install FFMPEG and Opus ..."
|
||||
echo "install youtube-dl ..."
|
||||
echo "install TS3AudioBot ..."
|
||||
echo "Folder: Bot"
|
||||
wget -O Bot.zip https://splamy.de/api/nightly/ts3ab/develop/download
|
||||
apt-get install unzip -y && unzip Bot.zip -d Bot && cd Bot/
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
echo "install FFMPEG and Opus ..."
|
||||
echo "install youtube-dl ..."
|
||||
echo "install TS3AudioBot ..."
|
||||
echo "Folder: Bot"
|
||||
echo "cleanup this install ..."
|
||||
sleep 5
|
||||
clear
|
||||
echo "################################################"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# Thank you for use #"
|
||||
echo "# this installer #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# run this Bot with #"
|
||||
echo "# > cd Bot/ #"
|
||||
echo "# > dotnet TS3AudioBot.dll #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# johanneskr.de #"
|
||||
echo "################################################"
|
||||
echo ""
|
||||
break
|
||||
;;
|
||||
"Ubuntu 18.04")
|
||||
echo "starting installer for Ubuntu 18.04 ..."
|
||||
sleep 2
|
||||
echo "install system packages ..."
|
||||
sudo add-apt-repository universe
|
||||
sudo apt-get update
|
||||
sudo apt-get install apt-transport-https pgp -y > /dev/null
|
||||
echo "install Microsoft repository ..."
|
||||
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
|
||||
sudo dpkg -i packages-microsoft-prod.deb -y > /dev/null
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
apt-get install dotnet-sdk-2.2 dotnet-sdk-3.1 -y
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
echo "install FFMPEG and Opus ..."
|
||||
apt-get install ffmpeg libopus-dev -y
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
echo "install FFMPEG and Opus ..."
|
||||
echo "install youtube-dl ..."
|
||||
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
|
||||
sudo chmod a+rx /usr/local/bin/youtube-dl
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
echo "install FFMPEG and Opus ..."
|
||||
echo "install youtube-dl ..."
|
||||
echo "install TS3AudioBot ..."
|
||||
echo "Folder: Bot"
|
||||
wget -O Bot.zip https://splamy.de/api/nightly/ts3ab/develop/download
|
||||
apt-get install unzip -y && unzip Bot.zip -d Bot && cd Bot/
|
||||
clear
|
||||
echo "starting installer for Debian 10..."
|
||||
echo "install system packages ..."
|
||||
echo "install Microsoft repository ..."
|
||||
echo "install Microsoft DOTNET-3.1 ..."
|
||||
echo "install FFMPEG and Opus ..."
|
||||
echo "install youtube-dl ..."
|
||||
echo "install TS3AudioBot ..."
|
||||
echo "Folder: Bot"
|
||||
echo "cleanup this install ..."
|
||||
sleep 5
|
||||
clear
|
||||
echo "################################################"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# Thank you for use #"
|
||||
echo "# this installer #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# run this Bot with #"
|
||||
echo "# > cd Bot/ #"
|
||||
echo "# > dotnet TS3AudioBot.dll #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "# johanneskr.de #"
|
||||
echo "################################################"
|
||||
echo ""
|
||||
break
|
||||
;;
|
||||
"Quit")
|
||||
break
|
||||
;;
|
||||
*) echo invalid option;;
|
||||
esac
|
||||
done
|
||||
Reference in New Issue
Block a user