注意事项 不支持Arm架构电脑

1
2
3
4
apt update && apt install apt-transport-https ca-certificates
mv /etc/apt/sources.list /etc/apt/sources.list.bak
apt update && apt upgrade
apt install net-tools iputils-ping vim wget git unzip zip proxychains -y
1
2
3
4
export https_proxy=http://192.168.0.188:33007 http_proxy=http://192.168.0.188:33007 all_proxy=socks5://192.168.0.188:33006
unset http_proxy
unset https_proxy
unset all_proxy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# wget  http://ftp.barfooze.de/pub/sabotage/tarballs/proxychains-ng-4.14.tar.xz
wget https://github.com/rofl0r/proxychains-ng/archive/v4.14.zip
unzip v4.14.zip
# docker cp proxychains-ng-4.14 upload-labs:/root/proxychains-ng-4.14
cd proxychains-ng-4.14
./configure --prefix=/usr --sysconfdir=/etc
cp src/proxychains.conf /etc/ && cd .. && rm -rf proxychains-ng-4.14/ && rrm v4.14.zip

echo -e "strict_chain \nproxy_dns \nremote_dns_subnet 224 \ntcp_read_time_out 15000 \ntcp_connect_time_out 8000 \n[ProxyList] \
\nsocks5 192.168.0.188 33006" > /etc/proxychains.conf

# -----------------------
strict_chain
proxy_dns
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
[ProxyList]
socks4 127.0.0.1 9050
# -----------------------

debian

阿里源

debian 7.x (wheezy)

1
2
3
4
5
echo -e "deb http://mirrors.aliyun.com/debian/ wheezy main non-free contrib \
\ndeb http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ wheezy main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib" \
> /etc/apt/sources.list

debian 8.x (jessie)

1
2
3
4
5
echo -e "deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib \
\ndeb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib" \
> /etc/apt/sources.list

debian 9.x (stretch)

1
2
3
4
5
6
7
8
9
echo -e "deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib \
\ndeb http://mirrors.aliyun.com/debian-security stretch/updates main \
\ndeb-src http://mirrors.aliyun.com/debian-security stretch/updates main \
\ndeb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib \
\ndeb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib \
\ndeb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib" \
> /etc/apt/sources.list

清华源

1
2
3
4
5
6
7
8
9
echo -e "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie main contrib non-free \
\n# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie main contrib non-free \
\ndeb https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-updates main contrib non-free \
\n# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-updates main contrib non-free \
\ndeb https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-backports main contrib non-free \
\n# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-backports main contrib non-free \
\ndeb https://mirrors.tuna.tsinghua.edu.cn/debian-security jessie/updates main contrib non-free \
\n# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security jessie/updates main contrib non-free" \
> /etc/apt/sources.list

163

1
2
3
4
5
6
7
echo -e "deb http://mirrors.163.com/debian/ jessie main non-free contrib \
\ndeb http://mirrors.163.com/debian-archive/debian/ jessie-backports main non-free contrib \
\ndeb-src http://mirrors.163.com/debian/ jessie main non-free contrib \
\ndeb-src http://mirrors.163.com/debian-archive/debian/ jessie-backports main non-free contrib \
\ndeb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib \
\ndeb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib" \
> /etc/apt/sources.list

ubuntu

1
2
mv /etc/apt/sources.list /etc/apt/sources.list.bak
apt update && apt upgrade

Ubuntu 14.04.5 LTS

1
2
3
4
5
6
7
8
9
10
11
12
echo -e "deb https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse \
\ndeb-src https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse \
\ndeb https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse \
\ndeb-src https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse \
\ndeb https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse \
\ndeb-src https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse \
\ndeb https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse \
\ndeb-src https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse \
\n## Not recommended \
\n# deb https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse \
\n# deb-src https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse" \
> /etc/apt/sources.list

ubuntu 16.04

1
2
3
4
5
6
7
8
9
10
11
12
13
echo -e "deb http://mirrors.aliyun.com/ubuntu/ xenial main \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial main \
\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-updates main \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main \
\ndeb http://mirrors.aliyun.com/ubuntu/ xenial universe \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial universe \
\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe \
\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-security main \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main \
\ndeb http://mirrors.aliyun.com/ubuntu/ xenial-security universe \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe" \
> /etc/apt/sources.list

ubuntu 18.04(bionic)

1
2
3
4
5
6
7
8
9
10
11
echo -e "deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse" \
> /etc/apt/sources.list

ubuntu 20.04(focal)

1
2
3
4
5
6
7
8
9
10
11
echo -e "deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse \
\ndeb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse \
\ndeb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse" \
> /etc/apt/sources.list

Kali

1
2
3
echo -e "deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src https://mirrors.aliyun.com/kali kali-rolling main non-free contrib" \
> /etc/apt/sources.list

Python

1
2
mkdir ~/.pip
~/.pip/pip.conf
1
2
3
4
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

or

1
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

Centos

1
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

CentOS 8

1
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
1
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo

Centos 7

1
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
1
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

Centos 6

1
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
1
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo

Npm

1
alias cnpm="npm --registry https://registry.npm.taobao.org $@"
1
npm --registry https://registry.npm.taobao.org %*

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way