- (Clash-for-linux)[https://drive.google.com/file/d/1PS5MEw35xFqM9-lRAfHQ5hs_B5Ex2v_T/view?usp=sharing]
# 下载后解压
tar -xzvf Clash-*...
# 授权限
mv Clash-*... Clash
cd Clash
sudo chmod +x cfw
# 开启clash-GUI
./cfw
- 填入订阅链接(链接或者
config.yaml
) - 订阅链接参考
- 设置代理端口
Ubuntu-->Setting-->NetWork-->Proxy-->Mannual
http:127.0.0.1:7890 https:127.0.0.1:7890
(clash-linux-amd64.tar.gz)[https://github.com/Kuingsmile/clash-core/releases/tag/1.18]
unzip clash*
chmod +x clash
# clash默认读取当前目录下的config.yaml文件,或者手动指定
.clash -d .
# 执行后,会同时开启HTTP代理和Sockets代理
# 可以选择配置在.bashrc里面,全局shell生效
export https_proxy=http://127.0.0.1:7890
export http_proxy=http://127.0.0.1:7890
export all_proxy=socks5://127.0.0.1:7890
# 7890是你的代理端口,在config.yaml里面配置
# config.yaml这个文件来自于你的订阅链接
- 查看
clash Dashboard
- Google的文件或者文件夹的share格式
https://drive.google.com/file/d/FILE_ID/view?usp=sharing
https://drive.google.com/file/d/xxxxxxxxxxxxxxxxxx/view?usp=sharing
- 下载方式
gdown 'https://drive.google.com/uc?id=FILE_ID'
Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator.
- 一般是下载文件过大,或者访问过多导致的问题
- 此时需要
google api
- 获取
google api
- 进入链接
https://developers.google.com/oauthplayground/
- 在
Select the Scope
栏复制https://www.googleapis.com/auth/drive.readonly
- 点击
Authorize APIs
然后Exchange authorization code for tokens
- 复制
Access token
- 在命令行终端运行
- 进入链接
curl -H "Authorization: Bearer Access token" https://www.googleapis.com/drive/v3/files/FILE_ID?alt=media -o FILE_NAME