vocabvictor / clash-for-autodl Goto Github PK
View Code? Open in Web Editor NEWThis project forked from lopsdir/clash-for-linux
AutoDL平台服务器适配梯子, 使用 Clash 作为代理工具
This project forked from lopsdir/clash-for-linux
AutoDL平台服务器适配梯子, 使用 Clash 作为代理工具
It seems there is no file named .env.example in the repo? which is needed in the command cp .env.example .env
自己创建的 .env文件和start.sh在同一目录下面,似乎没啥用,我查了start.sh的代码,没找到问题。
我在自己的梯子网站看到了连接密码、UUID、自定义加密等属性,是否要填写进去呢,还说空着就好。
你好!谢谢你的这个仓库,我成功在autodl服务器上开启了我的clash代理
不过clash dashboard我不是很清楚应该怎么使用,在我执行了sudo bash start.sh
后,我的输出结果是:
CPU architecture: amd64
正在检测订阅地址...
Clash订阅地址可访问! [ OK ]
正在下载Clash配置文件...
配置文件config.yaml下载成功! [ OK ]
判断订阅内容是否符合clash配置文件标准:
解码后的内容不符合clash标准,尝试将其转换为标准格式
配置文件已成功转换成clash标准格式
正在启动Clash服务...
服务启动成功! [ OK ]
Clash Dashboard 访问地址: http://<ip>:9090/ui
Secret: <这里我隐去了>
请执行以下命令加载环境变量: source /etc/profile.d/clash.sh
请执行以下命令开启系统代理: proxy_on
若要临时关闭系统代理,请执行: proxy_off
上面的clash dashboard访问地址中显示的并不是一个具体的ip地址,显示的就是**<ip>**,请问我应该如何去访问clash dashboard?
另外,之前有咨询过autodl的客服,在容器中使用代理有下次无法ssh连接的风险,这个是真的吗?(为了避免这种事情发生,我会将clash完全关掉再关机,不过不清楚不关的话会发生什么
谢谢!
加速
source /etc/network_turbo
取消加速
unset http_proxy && unset https_proxy
执行这个命令就可以翻墙了。
“打开一个新的shell,都会自动启动Clash”
请问怎么设置关闭这一功能呢
代理挂上去了,也成功开启了
但是下数据集的时候返回了urllib.error.HTTPError: HTTP Error 502: Bad Gateway
是谷歌的数据集FaceForensics,是不是访问网址的时候还是被墙住了啊
2.清理系统盘请参考:https://www.autodl.com/docs/qa/
[√] clash 进程已存在,代理已开启
(base) root@autodl-container-a899408bbc-d018641c:/autodl-tmp# git clone https://huggingface.co/moka-ai/m3e-base/autodl-tmp# git clone https://github.com/casper-hansen/AutoAWQ.git
Cloning into 'm3e-base'...
fatal: unable to access 'https://huggingface.co/moka-ai/m3e-base/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
(base) root@autodl-container-a899408bbc-d018641c:
Cloning into 'AutoAWQ'...
fatal: unable to access 'https://github.com/casper-hansen/AutoAWQ.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
(base) root@autodl-container-a899408bbc-d018641c:~/autodl-tmp#
(base) root@autodl-container-a899408bbc-d018641c:~/autodl-tmp/clash-for-AutoDL# source ./start.sh
正在检测订阅地址...
Clash订阅地址可访问! [ OK ]
正在下载Clash配置文件...
配置文件config.yaml下载成功! [ OK ]
日志文件 logs/clash.log 已创建。
正在启动Clash服务...
服务启动成功! [ OK ]
Clash Dashboard 访问地址: http://:6006/ui
Secret: e9af2a3cd6f6d8d14ef169cb1c35808a9078c3d67cc290cdcf48fd1abfd6c43b
已添加代理函数到 .bashrc,并设置为自动执行。\n
请执行以下命令启动系统代理: proxy_on
若要临时关闭系统代理,请执行: proxy_off
若需要彻底删除,请调用: shutdown_system
2.清理系统盘请参考:https://www.autodl.com/docs/qa/
服务关闭成功! [ OK ]
服务启动成功! [ OK ]
[×] 尝试重启后,clash 进程未能启动。代理启动失败
我在clash.log里看到:time="2024-07-03T16:24:11+08:00" level=fatal msg="Parse config error: yaml: unmarshal errors:\n line 1097: cannot unmarshal !!map into string"
我将第1097行从:
关掉clash后再运行:[√] clash 进程已存在,代理已开启
当下的clash.log:time="2024-07-03T16:26:32+08:00" level=info msg="Start initial compatible provider Proxy"
time="2024-07-03T16:26:32+08:00" level=info msg="Start initial compatible provider Domestic"
time="2024-07-03T16:26:32+08:00" level=info msg="Start initial compatible provider Others"
time="2024-07-03T16:26:32+08:00" level=info msg="Start initial compatible provider GlobalTV"
time="2024-07-03T16:26:32+08:00" level=info msg="Start initial compatible provider AsianTV"
time="2024-07-03T16:26:32+08:00" level=info msg="RESTful API listening at: 127.0.0.1:6006"
访问外网情况:
(base) root@autodl-container-a899408bbc-d018641c:/autodl-tmp# export http_proxy="http://127.0.0.1:7890"/autodl-tmp# git clone https://github.com/casper-hansen/AutoAWQ.git
export https_proxy="http://127.0.0.1:7890"
(base) root@autodl-container-a899408bbc-d018641c:
Cloning into 'AutoAWQ'...
fatal: unable to access 'https://github.com/casper-hansen/AutoAWQ.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
(base) root@autodl-container-a899408bbc-d018641c:~/autodl-tmp# git clone https://huggingface.co/moka-ai/m3e-base
Cloning into 'm3e-base'...
fatal: unable to access 'https://huggingface.co/moka-ai/m3e-base/': gnutls_handshake() failed: Error in the pull function.
奇怪的提示:
(base) root@autodl-container-9403468337-b429962d:~/clash-for-AutoDL# proxy_on
bash: proxy_on: command not found
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.