代码语言:javascript复制注意事项 不支持Arm架构电脑
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
代码语言:javascript复制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
代码语言:javascript复制# 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)
代码语言:javascript复制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)
代码语言:javascript复制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)
代码语言:javascript复制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
清华源
代码语言:javascript复制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
代码语言:javascript复制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
代码语言:javascript复制mv /etc/apt/sources.list /etc/apt/sources.list.bak
apt update && apt upgrade
Ubuntu 14.04.5 LTS
代码语言:javascript复制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
代码语言:javascript复制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)
代码语言:javascript复制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)
代码语言:javascript复制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
代码语言:javascript复制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
代码语言:javascript复制mkdir ~/.pip
~/.pip/pip.conf
代码语言:javascript复制[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
or
代码语言:javascript复制pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
Centos
代码语言:javascript复制mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
CentOS 8
代码语言:javascript复制wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
代码语言:javascript复制curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
Centos 7
代码语言:javascript复制curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
代码语言:javascript复制wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
Centos 6
代码语言:javascript复制wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
代码语言:javascript复制curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
Npm
代码语言:javascript复制alias cnpm="npm --registry https://registry.npm.taobao.org $@"
代码语言:javascript复制npm --registry https://registry.npm.taobao.org %*