0%

1
2
3
4
5
cat >> /etc/sysctl.conf << EOF
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
EOF
reboot

kvm debian:

1
2
wget https://github.com/tcp-nanqinlang/general/releases/download/3.4.5.1/tcp_nanqinlang-pro-3.4.5.1-nocheckvirt.sh  
bash tcp_nanqinlang-pro-3.4.5.1-nocheckvirt.sh

安装 bind-dig,curl,openssl-util

wget https://raw.githubusercontent.com/fyfh/AliDDNSBash/master/ali_ddns.sh

修改 setting字

1
2
3
4
5
6
7
AccessKeyId="MyID"  
AccessKeySec="MySecret"
DomainRecordId="00000"
DomainRR="www"
DomainName="example.com"
DomainType="A"
DNSServer="dns9.hichina.com"

如果不清楚DomainRecordId的话,修改main函数,在里面调用describe_record,如:

1
2
3
4
5
main()
{
describe_record
#update_record
}

执行

修改main函数:

1
2
3
4
5
main()
{
#describe_record
update_record
}

执行

加入cron

1
wget -N --no-check-certificate https://github.com/91yun/serverspeeder/raw/master/serverspeeder.sh && bash serverspeeder.sh
1
chattr -i /serverspeeder/etc/apx* && /serverspeeder/bin/serverSpeeder.sh uninstall -f

设置时区为北京时间

1
2
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

设置ntp同步时间
debian

1
2
apt-get update
apt-get install ntp ntpdate -y

centos

1
yum install ntp ntpdate -y
1
2
3
service ntpd stop                 #停止ntp服务
ntpdate us.pool.ntp.org #同步ntp时间
service ntpd start #启动ntp服务

完成

方法1, 重启后失效
修改ip,子网掩码

1
ifconfig eth0 192.168.1.18 netmask 255.255.255.0

修改网关

1
route add default gw 102.168.0.254

修改dns

1
echo "nameserver x.x.x.x" >> /etc/resolv.conf

方法2, 永久生效
修改添加

1
2
3
4
BOOTPROTO=static #dhcp 改为static
IPADDR=219.136.241.211
NETMASK=255.255.255.128
GATEWAY=219.136.241.254

Debian 10 源列表 (sources.list)

1
2
3
4
5
6
7
8
deb http://ftp.us.debian.org/debian/ buster main non-free contrib
deb http://ftp.us.debian.org/debian/ buster-proposed-updates main non-free contrib
deb-src http://ftp.us.debian.org/debian/ buster main non-free contrib
deb-src http://ftp.us.debian.org/debian/ buster-proposed-updates main non-free contrib
deb http://ftp.us.debian.org/debian/ buster-backports main contrib non-free
deb-src http://ftp.us.debian.org/debian/ buster-backports main contrib non-free
deb http://security.debian.org/ buster/updates main
deb-src http://security.debian.org/ buster/updates main

Debian 9 源列表 (sources.list)

1
2
3
4
5
6
7
8
deb http://ftp.us.debian.org/debian/ stretch main non-free contrib
deb http://ftp.us.debian.org/debian/ stretch-proposed-updates main non-free contrib
deb-src http://ftp.us.debian.org/debian/ stretch main non-free contrib
deb-src http://ftp.us.debian.org/debian/ stretch-proposed-updates main non-free contrib
deb http://ftp.us.debian.org/debian/ stretch-backports main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch-backports main contrib non-free
deb http://security.debian.org/ stretch/updates main
deb-src http://security.debian.org/ stretch/updates main

Debian 8 源列表 (sources.list)

1
2
3
4
5
6
7
8
deb http://ftp.us.debian.org/debian/ jessie main non-free contrib
deb http://ftp.us.debian.org/debian/ jessie-proposed-updates main non-free contrib
deb-src http://ftp.us.debian.org/debian/ jessie main non-free contrib
deb-src http://ftp.us.debian.org/debian/ jessie-proposed-updates main non-free contrib
deb http://ftp.us.debian.org/debian/ jessie-backports main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie-backports main contrib non-free
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

Ubuntu 16.04 源列表 (sources.list)

1
2
3
4
5
6
7
8
9
10
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

1
2
apt install -y wget zip
wget https://cdn.ipip.net/17mon/besttrace4linux.zip
1
unzip besttrace*
1
chmod +x besttrace
1
./besttrace 119.6.6.6

root密码: MoeClub.org

1
apt-get install -y xz-utils openssl gawk file
1
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 8 -v 64 -a