全球主机交流论坛

标题: 【更新】一键网络重装系统 - 神改版(适用于Linux / Windows) [打印本页]

作者: sxzcy    时间: 2020-9-15 15:46
标题: 【更新】一键网络重装系统 - 神改版(适用于Linux / Windows)
上代码

#Debian/Ubuntu
apt-get update
apt-get install -y xz-utils openssl gawk file

#RedHat/CentOS
yum update
yum install -y xz openssl gawk file


Usage:
        bash InstallNET.sh      -d/--debian [dist-name]
                                -u/--ubuntu [dist-name]
                                -c/--centos [dist-version]
                                -v/--ver [32/i386|64/amd64]
                                --ip-addr/--ip-gate/--ip-mask
                                -apt/-yum/--mirror
                                -dd/--image
                                -a/-m
                                -p/--password

# dist-name:发行版本代号
# dist-version:发行版本号
# -apt/-yum/--mirror:使用定义镜像
# -a/-m:询问是否能进入VNC自行操作。 -a为不提示(一般用于全自动安装), -m为提示。

  1. bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 9 -v 64 -a
复制代码



默认密码:你猜?


赠送神秘代码1:
#!/bin/bash
echo root:Vicer |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo reboot

赠送神秘代码2:
# This line below add by user.
fs.file-max = 104857600
fs.nr_open = 1048576
vm.overcommit_memory = 1
net.ipv4.ip_forward = 1
net.core.somaxconn = 4096
net.core.optmem_max = 262144
net.core.rmem_max = 8388608
net.core.wmem_max = 8388608
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.netdev_max_backlog = 65536
net.ipv4.tcp_mem = 262144 6291456 8388608
net.ipv4.tcp_rmem = 16384 262144 8388608
net.ipv4.tcp_wmem = 8192 262144 8388608
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_syn_retries = 4
net.ipv4.tcp_synack_retries = 3
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_fin_timeout = 24
net.ipv4.tcp_keepalive_intvl = 32
net.ipv4.tcp_keepalive_probes = 3
net.ipv4.tcp_keepalive_time = 900
net.ipv4.tcp_retries1 = 3
net.ipv4.tcp_retries2 = 8
#net.ipv4.icmp_echo_ignore_all = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_slow_start_after_idle = 0
#net.ipv4.tcp_fastopen = 3
#net.core.default_qdisc = fq
#net.ipv4.tcp_congestion_control = bbr


不用感谢我。我只是搬运工,麻烦在评论区,大声说出 卢本伟牛逼!

作者: h20    时间: 2020-9-15 15:47
提示: 作者被禁止或删除 内容自动屏蔽
作者: sxzcy    时间: 2020-9-15 15:47
Vicer牛逼
作者: 木子喵    时间: 2020-9-15 15:49
神...神...神改版,能否只分一个区?
作者: huajiwuyan    时间: 2020-9-15 15:59
net.ipv4.tcp_rmem 等net.ipv4.tcp_mem调太高会有问题,要经常重启才能恢复速度
作者: synology    时间: 2020-9-15 16:05
密码到底是啥????
作者: llmwxt    时间: 2020-9-15 16:15
提示: 作者被禁止或删除 内容自动屏蔽
作者: lost1984    时间: 2020-9-15 16:20
能否把神秘代码也添加到系统中去啊
作者: h20    时间: 2020-9-15 16:23
提示: 作者被禁止或删除 内容自动屏蔽
作者: sxzcy    时间: 2020-9-15 16:28
synology 发表于 2020-9-15 16:05
密码到底是啥????

MoeClub.org
作者: yanaxiao    时间: 2020-9-15 16:31
神秘代码是什么意思?小白路过。
作者: nico    时间: 2020-9-15 16:37
提示: 作者被禁止或删除 内容自动屏蔽
作者: chrome    时间: 2020-9-15 16:42
np 神魔大战
作者: lost1984    时间: 2020-9-15 16:44
yanaxiao 发表于 2020-9-15 16:31
神秘代码是什么意思?小白路过。


1. 开启ssh root
2.开启连接数等之类的加速优化?
作者: Sonniferi    时间: 2020-9-15 17:55
有没有能用的 windows  dd到linux的脚本啊
作者: …沧ネ月ザ    时间: 2020-9-15 18:01
synology 发表于 2020-9-15 16:05
密码到底是啥????

Vicer
作者: _____________Cc    时间: 2020-9-15 18:03
萌咖大佬隐退了,好可惜
作者: yangyzp    时间: 2020-9-18 01:42
我重装了,为啥 Vicer 密码不对~~~
作者: 某知    时间: 2020-9-18 02:30
前段时间用过~
作者: huxinly    时间: 2020-9-18 10:26
牛批啊,马飞
作者: 老坛酸菜    时间: 2020-9-18 10:26
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 全球主机交流论坛 (https://www.91ai.net/) Powered by Discuz! X3.4