Beispiel News

Beispiel News

echo "Installing configs"
sed -i 's/^# CdParentSmart =/CdParentSmart = backspace/' /etc/mc/mc.default.keymap
wget -O $SCRIPT_AUTOFIX "http://pxe.ddd-cloud/autofix.sh" && chmod 777 $SCRIPT_AUTOFIX && chmod +x $SCRIPT_AUTOFIX
echo "@reboot sleep 10s && bash $SCRIPT_AUTOFIX" >> $CRONTAB_PATH && chown root:crontab $CRONTAB_PATH && chmod 600 $CRONTAB_PATH
wget -O /etc/screenrc "http://pxe.ddd-cloud/config/screenrc"
wget -O /etc/bash.bashrc "http://pxe.ddd-cloud/config/bashrc" && cp /etc/bash.bashrc /etc/skel/.bashrc
find / -type f -name ".bashrc" -exec cp -f /etc/skel/.bashrc {} \;
#find / -name ".bashrc" -exec sed -i 's/\.bashrc/\/etc\/bash.bashrc/g' {} +
########## Prometheus
echo "Installing Prometheus"
apt-get install -y prometheus-node-exporter
IPV4_ADDR=$(ip -4 addr show eth1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
echo "ARGS=\"--collector.tcpstat --collector.network_route --collector.logind --collector.mountstats --collector.meminfo_numa --collector.processes --web.listen-address=\"$IPV4_ADDR:9100\"\"" > /etc/default/prometheus-node-exporter && systemctl restart prometheus-node-exporter
########## WireGuard Installation
echo "Installing wireguard"
apt-get install -y sudo wireguard
nano /etc/wireguard/main.conf && wg-quick up main && systemctl enable wg-quick@main
bash $SCRIPT_AUTOFIX
netplan status
echo "Fertig"


Gepostet am 30. Mai 2025 von ddd-it-admin

0

CONNECTED PLAYERS

+5000

REGISTERED PLAYERS

+30

PLAYER RECORD