Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // RUN CHMOD+X scriptname.sh before executing
- #!/bin/bash
- echo '==============================================================================';
- echo 'Starting Script.....';
- echo 'Installing dependendencies, needed software and setting default values.....';
- echo '==============================================================================';
- cd ~;
- apt-get update -y && apt-get upgrade -y;
- apt-get install lib32gcc1 -y ;
- apt-get install screen -y;
- iptables -A INPUT -p udp -m udp --sport 27015:27020 --dport 1025:65355 -j ACCEPT;
- iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT;
- apt-get install zip -y;
- echo '==============================================================================';
- echo 'Installing apache2, php, ssh2 and vsftpd';
- echo '==============================================================================';
- apt-get install apache2 -y;
- apt install -y curl wget gnupg2 ca-certificates lsb-release apt-transport-https;
- wget https://packages.sury.org/php/apt.gpg;
- sudo apt-key add apt.gpg;
- echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.list
- sudo apt update;
- sudo apt install -y php7.2 php7.2-cli php7.2-common;
- sudo update-alternatives --set php /usr/bin/php7.2;
- sudo apt install -y php7.2-ssh2;
- sudo apt-get install vsftpd -y;
- systemctl start vsftpd;
- systemctl enable vsftpd;
- rm -rf /etc/adduser.conf && cd /etc && wget 109.230.236.94/adduser.conf;
- cd ~;
- rm -rf /etc/vsftpd.conf && cd /etc && wget 109.230.236.94/vsftpd.conf;
- echo '==============================================================================';
- echo 'Configuring cstrike directories and installing data for game servers';
- echo '==============================================================================';
- cd /home && mkdir cstrike && cd cstrike && mkdir instalacija && mkdir servers;
- cd ~;
- cd /home/cstrike/instalacija;
- wget 95.156.230.138/pub.zip;
- wget 95.156.230.138/linked.tar.gz;
- unzip pub.zip;
- tar -xzf linked.tar.gz;
- mkdir backup && mv linked.tar.gz backup && mv pub.zip backup;
- echo '==============================================================================';
- echo 'The script has finished working, check for bugs.....'
- echo 'This script was coded by puNisher.....';
- echo '==============================================================================';
- exit 0;
Add Comment
Please, Sign In to add comment