Last active
January 28, 2021 03:23
-
-
Save codehz/f7153de5a20d099aa18654a0edeb1f22 to your computer and use it in GitHub Desktop.
Get BDSM (Bedrock Dedicated Server Manager) (Used for testing)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Bedrock Dedicated Server Manager | |
Documentation=https://github.com/bdsm-technology/BDSM | |
After=network.target | |
[Service] | |
User=user | |
Group=user | |
WorkingDirectory=/path/to/mcpe | |
ExecStart=/path/to/mcpe/bdsm daemon -profile %i | |
ExecStop=/usr/bin/dbus-send --system --print-reply --dest=one.codehz.bedrockserver.%i /one/codehz/bedrockserver one.codehz.bedrockserver.core.stop | |
Type=dbus | |
BusName=one.codehz.bedrockserver.%i | |
Restart=on-failure | |
TimeoutSec=10 | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Bedrock Dedicated Server Manager | |
Documentation=https://github.com/bdsm-technology/BDSM | |
After=network.target | |
[Service] | |
WorkingDirectory=/path/to/mcpe | |
ExecStart=/path/to/mcpe/bdsm daemon -user -profile %i | |
ExecStop=/usr/bin/dbus-send --print-reply --dest=one.codehz.bedrockserver.%i /one/codehz/bedrockserver one.codehz.bedrockserver.core.stop | |
Type=dbus | |
BusName=one.codehz.bedrockserver.%i | |
Restart=on-failure | |
TimeoutSec=10 | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo Simple Installer For BDSM | |
set -e | |
echo Checking Dependencis... | |
REQ=(tar sed sudo unzip) | |
errors=() | |
for c in ${REQ[@]}; do | |
command -v "$c" &>/dev/null || errors+=("$c") | |
done | |
if command -v wget >/dev/null 2>&1; then | |
_download() { wget -O- "$@" ; } | |
elif command -v curl >/dev/null 2>&1; then | |
_download() { curl -fL "$@" ; } | |
else | |
errors+=("curl" "wget") | |
fi | |
[ ${#errors[@]} -ne 0 ] && { | |
echo Missing commands: ${errors[*]} | |
exit 1 | |
} | |
echo Downloading... | |
_download 'http://cdn.codehz.one/lambda/minecraft/bedrock-server' > bds.zip | |
_download 'https://cdn.codehz.one/lambda/circleci/BedrockMod/0' > guile.zip | |
_download 'https://cdn.codehz.one/lambda/circleci/BedrockMod/1' > mods.tar.gz | |
_download 'https://cdn.codehz.one/lambda/circleci/bedrock-modloader/0' > ModLoader.so | |
_download 'https://cdn.codehz.one/lambda/circleci/arch-compat' > arch.tar.gz | |
_download 'https://cdn.codehz.one/lambda/bdsm/BDSM/0' > bdsm | |
echo Preparing... | |
chmod +x bdsm | |
unzip bds.zip | |
rm bds.zip | |
unzip guile.zip -d scm | |
rm guile.zip | |
mkdir -p mods | |
tar xvf mods.tar.gz -C mods | |
rm mods.tar.gz | |
mkdir libs | |
tar xvf arch.tar.gz -C libs | |
rm -rf arch.tar.gz | |
cp libs/libsystemd.so.0 scm/extensions/libsystemd.so | |
echo Done! | |
echo Usage: ./bdsm r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment