[脚本收集] 常用脚本备份

普度币 2021-11-22 4652


DD 重装

· 甲骨文

  1. bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 9 -v 64 -a -firmware
复制代码



· 三毛

  1. wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/dd/master/dd-gd.sh && chmod +x dd-gd.sh && ./dd-gd.sh
复制代码



· gcore

  1. wget git.io/auto.sh
  2. bash auto.sh -d 9 -v 64 -a -p 密码
复制代码



· 轻量

  1. bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a
复制代码



以上内容来自这条帖子

· 带 WebUI 可查看进度的

  1. https://raw.githubusercontent.com/flyqie/dd-shell/master/Core_Install.sh
复制代码


国内机可使用

  1. https://ghproxy.com/https://raw.githubusercontent.com/flyqie/dd-shell/master/Core_Install.sh
复制代码


感谢 @flyqie 大佬 原帖地址

最近在使用 @insightfy 大佬的(不知道为啥萌咖大佬的我DD到11 貌似没成功过这个大佬的可以)  帖子地址

  1. bash <(wget --no-check-certificate -qO- 'https://file.geekn.net/CNODnjau/InstallNET.sh') -d 11 -v 64 -a -firmware
复制代码



目前我所知道的一些参数(可能有的不准确,欢迎大佬指出)

  1. -firmware  额外的驱动支持
  2. -d             后面是系统版本号
  3. -v             后面写64位 32位
  4. -a             (不清楚这个干啥的但是每个脚本都带)
  5. --mirror     后面是镜像源地址
  6. -p             后面写自定义密码
复制代码
  1. 镜像站地址
  2. 官方给出的地址列表:https://www.debian.org/mirror/list

  3. 一些国内的
  4. ftp.cn.debian.org
  5. mirror.bjtu.edu.cn
  6. mirror.lzu.edu.cn       
  7. mirror.nju.edu.cn       
  8. mirrors.163.com       
  9. mirrors.bfsu.edu.cn       
  10. mirrors.hit.edu.cn       
  11. mirrors.huaweicloud.com       
  12. mirror.sjtu.edu.cn       
  13. mirrors.tuna.tsinghua.edu.cn       
  14. mirrors.ustc.edu.cn       

  15. 使用方法:(大致都是一样的)

  16. 清华源
  17. --mirror 'https://mirrors.ustc.edu.cn/debian/'

  18. 腾讯源
  19. --mirror 'https://mirrors.aliyun.com/debian/'

  20. 阿里源
  21. --mirror 'https://mirrors.aliyun.com/debian/'

  22. 华为源
  23. --mirror 'https://mirrors.huaweicloud.com/debian/'

复制代码



宝塔面板&AApanel

Debian系统

  1. # 宝塔
  2. wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh

  3. # aapanel
  4. wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh

复制代码



有次无聊看了看文件发现aapanel就是宝塔的换皮,语言换成了英语,所以破解方法一样。

  1. # 宝塔去实名认证
  2. rm -rf /www/server/panel/data/bind.pl

  3. # 宝塔&aapanel破解
  4. 编辑 /www/server/panel/class/panelplugin.py
  5. 找到 softList['list'] = tmpList 这行代码
  6. 在下面添加以下代码,注意缩进

  7. softList['pro'] = 1
  8. for soft in softList['list']:
  9. soft['endtime'] = 0

  10. 编辑完毕后保存重启面板即可
复制代码



常用脚本

一键开启BBR

  1. echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
  2. echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
  3. sysctl -p
  4. sysctl net.ipv4.tcp_available_congestion_control
  5. lsmod | grep bbr
复制代码



superbench

  1. wget -qO- git.io/superbench.sh | bash
复制代码



Bench.sh

  1. wget -qO- bench.sh | bash
复制代码



三网测速

  1. bash <(curl -Lso- http://yun.789888.xyz/speedtest.sh)
复制代码



流媒体

  1. #第一个
  2. bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

  3. # 第二个
  4. bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")
复制代码



回程

  1. # 第一个
  2. wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh
  3. bash testrace.sh

  4. # 第二个
  5. wget -qO- git.io/besttrace | bash
复制代码



国内机一件安装docker

  1. curl -sSL https://get.daocloud.io/docker | sh
复制代码


卸载docker

  1. sudo apt-get remove docker docker-engine
  2. rm -fr /var/lib/docker/
复制代码


国内机安装docker-compose

  1. curl -L https://get.daocloud.io/docker/compose/releases/download/v2.1.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
  2. chmod +x /usr/local/bin/docker-compose
复制代码


最新回复 (0)
    • 普度社会大学
      2
          
返回
######
免责声明:本站内容资源源于网络,如有侵权请发邮件告知我们,我们将会在24小时内处理。