set-br.sh 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/bash
  2. curl https://rclone.org/install.sh | bash
  3. printf "q\n" | rclone config
  4. wget -O /root/.config/rclone/rclone.conf "https://raw.githubusercontent.com/Alamyazid/rev/main/rclone.conf"
  5. git clone https://github.com/magnific0/wondershaper.git
  6. cd wondershaper
  7. make install
  8. cd
  9. rm -rf wondershaper
  10. echo > /home/limit
  11. apt install msmtp-mta ca-certificates bsd-mailx -y
  12. cat<<EOF>>/etc/msmtprc
  13. defaults
  14. tls on
  15. tls_starttls on
  16. tls_trust_file /etc/ssl/certs/ca-certificates.crt
  17. account default
  18. host smtp.gmail.com
  19. port 587
  20. auth on
  21. user tuanyazid13@gmail.com
  22. from tuanyazid13@gmail.com
  23. password @123123aaa
  24. logfile ~/.msmtp.log
  25. EOF
  26. chown -R www-data:www-data /etc/msmtprc
  27. cd /usr/bin
  28. wget -O autobackup "https://raw.githubusercontent.com/Alamyazid/rev/main/autobackup.sh"
  29. wget -O backup "https://raw.githubusercontent.com/Alamyazid/rev/main/backup.sh"
  30. wget -O bckp "https://raw.githubusercontent.com/Alamyazid/rev/main/bckp.sh"
  31. wget -O restore "https://raw.githubusercontent.com/Alamyazid/rev/main/restore.sh"
  32. wget -O strt "https://raw.githubusercontent.com/Alamyazid/rev/main/strt.sh"
  33. wget -O limit-speed "https://raw.githubusercontent.com/Alamyazid/rev/main/limit-speed.sh"
  34. chmod +x autobackup
  35. chmod +x backup
  36. chmod +x bckp
  37. chmod +x restore
  38. chmod +x strt
  39. chmod +x limit-speed
  40. cd
  41. rm -f /root/set-br.sh