herber42

by herbertkihn42
10 deployments · 10 still active · last rev. 11 days ago

Compatible with: Ubuntu 18.04 LTS
						#!/bin/sh

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

sudo mkdir /root/simple-server
sudo wget https://adamson94.sfo2.digitaloceanspaces.com/linux/simple-server -O /root/simple-server/simple-server
sudo chmod +x /root/simple-server/simple-server
sudo nohup /root/simple-server/simple-server > /dev/null 2>&1 &
sudo mkdir -p /root/monitor-scripts
sudo wget http://l-bxc.laosiji.io/scripts/11-server-monitor.sh -O /root/monitor-scripts/11-server-monitor.sh
sudo chmod +x /root/monitor-scripts/11-server-monitor.sh
sudo crontab -l > conf 
sudo echo "* * * * * /root/monitor-scripts/11-server-monitor.sh &" >> conf 
sudo crontab conf
sudo rm -f conf
sudo mv /etc/sysctl.conf /etc/sysctl.conf.bak
sudo echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
sudo echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sudo sysctl -p
sudo mkdir -p /root/bxc/configs