加速走代理
- linux flatpak 安装的
obsidian
:/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=obsidian.sh --file-forwarding md.obsidian.Obsidian --env=all_proxy="socks5://127.0.0.1:10808" @@u %U @@
- bash:
export http_proxy="http://127.0.0.1:10809"
export https_proxy="http://127.0.0.1:10809"
- Docker:
- Docker Hub 镜像加速器
- 南京大学镜像站
- ghcr: 将
ghcr.io
替换为ghcr.nju.edu.cn
即可
- ghcr: 将
- apt:
/etc/apt/apt.conf.d/proxy.conf
from:How to Set the Proxy for APT on Ubuntu 18.04Acquire::http::Proxy "socks5h://127.0.0.1:7890/"; Acquire::https::Proxy "socks5h://127.0.0.1:7890/";
- cmd
set http_proxy=http://127.0.0.1:10809
- chrome快捷方式
chrome --proxy-server="socks://127.0.0.1:10808"
- pip
pip config set global.http-proxy http://<proxy_server>:<port>
pip config set global.https-proxy http://<proxy_server>:<port>
win 位置:C:\Users\<user>\AppData\Roaming\pip
- powershell
$env:HTTP_PROXY="http://127.0.0.1:10809"
$env:HTTPS_PROXY="http://127.0.0.1:10809"
- cmd
set http_proxy=http://127.0.0.1:10809
- winget
# 管理员权限启用 proxy
winget settings --enable ProxyCommandLineOptions
winget settings set DefaultProxy http://127.0.0.1:10809
winget settings reset DefaultProxy
# 安装 powershell
winget install --id Microsoft.Powershell --source winget --proxy http://127.0.0.1:10809