elegycloud / clash-for-linux-backup Goto Github PK
View Code? Open in Web Editor NEW基于Clash Core 制作的Clash For Linux备份仓库 A Clash For Linux Backup Warehouse Based on Clash Core
License: GNU General Public License v3.0
基于Clash Core 制作的Clash For Linux备份仓库 A Clash For Linux Backup Warehouse Based on Clash Core
License: GNU General Public License v3.0
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
【标题】问题:arm64的linux平台无法解析订阅
是否自己检查过日志?
是,脚本全部运行完毕后,发现配置文件和web中均为代理,检查start.sh后发现仅对x86_64和amd64的平台进行了base64解码。
是否自己尝试解决此问题?
是,目前我的操作就是现在其他平台运行好后,把正确的config.yaml覆盖到我的arm64的linux上,然后删掉start.sh中覆盖config.yaml的命令
是否认真详细看过README.md?
是,已按照README中的步骤一步一步验证运行,且在其他平台成功运行了。
$ sudo git clone https://github.com/Elegybackup/clash-for-linux-backup.git
正克隆到 'clash-for-linux-backup'...
remote: Enumerating objects: 571, done.
remote: Counting objects: 100% (168/168), done.
remote: Compressing objects: 100% (124/124), done.
fatal: 远端意外挂断了571), 14.47 MiB | 19.00 KiB/sss
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败
clash已经成功启动了,也顺利进入WEBui,但他要求我填写Label(optional)一栏,我该填写什么?
请问没有管理员权限,无法sudo bash start.sh怎么办?
在服务器中启动clash之后,服务器会变得卡顿,top之后会发现clash CPU占用率异常高,甚至有时会将SSH远程连接卡掉
比如使用香港、新加坡。。等等
如何对使用的这个端口进行修改呢?
谢谢
重启电脑需要修改配置文件使其生效
订阅的地址是正确的,但是每次重启需要添加备注地址,在取消备注(其实没有修改任何文件)这样才能正确下载订阅,不知道是不是我设备的问题,感觉有一点奇怪。
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
你好!我看到网络上有一些教程用的版本是没有用sudo的,比如:
https://zhyq118.com/2023/02/07/clash-for-linux-%E5%AE%A2%E6%88%B7%E7%AB%AF%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95/
请问这个版本的release保存了吗
hm@nsdse:~/clash-for-linux-backup$ cat .env
export CLASH_URL='订阅地址'
export CLASH_SECRET='https://595780.xyz/api/v1/client/subscribe?token=b5b148494'(地址删除了部分内容,但确实没问题)
hm@nsdse:~/clash-for-linux-backup$ sudo bash start.sh
CPU architecture: x86_64
正在检测订阅地址...
curl: (6) Could not resolve host: xn--ces6a6602a5xi
curl: (6) Could not resolve host: xn--ces6a6602a5xi
curl: (6) Could not resolve host: xn--ces6a6602a5xi
curl: (6) Could not resolve host: xn--ces6a6602a5xi
curl: (6) Could not resolve host: xn--ces6a6602a5xi
curl: (6) Could not resolve host: xn--ces6a6602a5xi
Clash订阅地址不可访问! [FAILED]
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
在这里自行添加了CLASH_URL=订阅地址的条目,但是执行第二步显示CLASH_URL为空或没有设置。
因为服务器无法访问github所以是自行下载项目后解压,对这个有影响吗
可以在代理里指定使用ipv4和ipv6流量吗?
在issue里没有看到ipv4和ipv6相关字眼。是在9090/ui/#/rules里配置的吗?
netstat -tln | grep -E '9090|789.' 之前步骤一切正常
但 netstat -tln | grep -E '9090|789.' 命令无显示,同时ping不通外网
想问问怎么开启clash的tun mode,这个还是走的系统代理应该,有些应用好像不走系统代理
root@orangepi5plus:~/clash-for-linux/scripts# bash clash_profile_conversion.sh
cat: /temp/clash.yaml: No such file or directory
解码后的内容不符合clash标准,尝试将其转换为标准格式
clash_profile_conversion.sh: line 24: /logs/subconverter.log: No such file or directory
awk: cannot open /temp/clash_config.yaml (No such file or directory)
配置文件转换标准格式失败
作者您好,有一些问题想询问下您:
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
你的 /etc/profile.d/clash.sh 会把 xrdp 搞崩溃。
这是 xrdp 的调试过程。
+ export XDG_DATA_DIRS=/usr/local/share:/usr/share
+ snap_xdg_path=/var/lib/snapd/desktop
+ [ -n /usr/local/share:/usr/share ]
+ [ -n /usr/local/share:/usr/share ]
+ export XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
+ [ -r /etc/profile.d/bash_completion.sh ]
+ . /etc/profile.d/bash_completion.sh
+ [ x != x -a x$ != x -a x = x ]
+ [ -r /etc/profile.d/cedilla-portuguese.sh ]
+ . /etc/profile.d/cedilla-portuguese.sh
+ [ = pt -a en != pt ]
+ [ -r /etc/profile.d/clash.sh ]
+ . /etc/profile.d/clash.sh
/etc/xrdp/startwm.sh: 2: /etc/profile.d/clash.sh: Syntax error: "(" unexpected
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
请问有Clash Dashboard的详细用法嘛,Label(Opentional)以及Add的用法,我无法登陆,谢谢
感谢大佬,我能用了,只是在yacd那个界面添加地址的时候显示Unauthorized,登陆http://:9090也是显示Unauthorized,请问这个问题能解决么,不胜感激
用不了!!!
#netstat -tln | grep -E '9090|789.'
返回空,没有端口开放启用
所以就无法连接到代理的7890端口上网。
请帮助解决此问题,谢谢!!!
如题
windows 上的clash 客户端能用这个订阅地址
2024/02/19 Mon 16:12:36.432341 [468543 10739128][INFO] Generate target: Clash
2024/02/19 Mon 16:12:36.466407 [468543 10739128][WARN] Failed to fetch ruleset or ruleset is empty: 'rules/DivineEngine/Surge/Ruleset/Guard/Hijacking.list'!
2024/02/19 Mon 16:12:36.468796 [468543 10739128][WARN] Failed to fetch ruleset or ruleset is empty: 'rules/DivineEngine/Surge/Ruleset/Extra/Telegram/Telegram.list'!
2024/02/19 Mon 16:12:36.480100 [468543 10739128][INFO] Generate completed.
2024/02/19 Mon 16:12:36.481800 [468543 10739128][INFO] User Info for artifact 'test': Stream Used: 1.00 B Stream Total: N/A Expiry Time: N/A
2024/02/19 Mon 16:12:36.481878 [468543 10739128][INFO] Artifact 'test' generate SUCCESS!
2024/02/19 Mon 16:12:36.481964 [468543 10739128][INFO] Generating artifact 'test_profile'...
2024/02/19 Mon 16:12:36.482083 [468543 10739128][INFO] Trying to load profile 'profiles/example_profile.ini'.
2024/02/19 Mon 16:12:36.482166 [468543 10739128][INFO] Trying to parse profile 'profiles/example_profile.ini'.
2024/02/19 Mon 16:12:36.482371 [468543 10739128][VERB] Imported 0 item(s).
2024/02/19 Mon 16:12:36.482461 [468543 10739128][INFO] Fetching node data from url 'ss://[email protected]:1080#Example'.
2024/02/19 Mon 16:12:36.484715 [468543 10739128][VERB] Received Link.
2024/02/19 Mon 16:12:36.484884 [468543 10739128][INFO] Generate target: Clash
2024/02/19 Mon 16:12:36.513747 [468543 10739128][WARN] Failed to fetch ruleset or ruleset is empty: 'rules/DivineEngine/Surge/Ruleset/Guard/Hijacking.list'!
2024/02/19 Mon 16:12:36.516108 [468543 10739128][WARN] Failed to fetch ruleset or ruleset is empty: 'rules/DivineEngine/Surge/Ruleset/Extra/Telegram/Telegram.list'!
2024/02/19 Mon 16:12:36.520363 [468543 10739128][INFO] Generate completed.
2024/02/19 Mon 16:12:36.522044 [468543 10739128][INFO] Artifact 'test_profile' generate SUCCESS!
time="2024-02-19T16:16:51+08:00" level=fatal msg="Parse config error: proxy 0: ss 147.182.203.143:80 initialize error: cipher not supported"
# sudo bash start.sh
CPU architecture: amd64
正在检测订阅地址...
Clash订阅地址可访问! [ OK ]
正在下载Clash配置文件...
配置文件config.yaml下载成功! [ OK ]
判断订阅内容是否符合clash配置文件标准:
订阅内容符合clash标准
正在启动Clash服务...
服务启动成功! [ OK ]
Clash Dashboard 访问地址: http://<ip>:9090/ui
Secret: 1234
く__,.ヘヽ. / ,ー、 〉
\ ', !-─‐-i / /´
/`ー' L//`ヽ、
/ /, /| , , ',
イ / /-‐/ i L_ ハ ヽ! i
レ ヘ 7イ`ト レ'ァ-ト、!ハ| |
!,/7 '0' ´0iソ| |
|.从 _ ,,,, / |./ |
レ'| i>.、,,__ _,.イ / .i |
レ'| | / k_7_/レ'ヽ, ハ. |
| |/i 〈|/ i ,.ヘ | i |
.|/ / i: ヘ! \ |
kヽ>、ハ _,.ヘ、 /、!
!'〈//`T´', \ `'7'ーr'
レ'ヽL__|___i,___,ンレ|ノ
ト-,/ |___./
'ー' !_,.:
本项目完全免费,若你是收费买的,恭喜您,您被骗了!
项目地址:https://github.com/Elegybackup/clash-for-linux-backup
项目随时会寄,且行且珍惜!
请执行以下命令加载环境变量: source /etc/profile.d/clash.sh
请执行以下命令开启系统代理: proxy_on
若要临时关闭系统代理,请执行: proxy_off
# source /etc/profile.d/clash.sh
# proxy_on
[√] 已开启代理
#netstat -tln | grep -E '9090|789.'
此时netstat返回为空,没有端口开放
或者说我先下载到自己电脑上面然后再传到服务器上面?
输入 netstat -tln | grep -E '9090|789.'后显示的
tcp6 0 0 :::7890 :::* LISTEN
tcp6 0 0 :::7891 :::* LISTEN
tcp6 0 0 :::7892 :::* LISTEN
tcp6 0 0 :::9090 :::* LISTEN
在bash页面上也没有监控到流量
说订阅内容无法转换为配置文件是怎么回事,在其他平台都能正常使用。
bash start.sh后启动正常。
CPU architecture: amd64
正在检测订阅地址...
Clash订阅地址可访问! [ OK ]
正在下载Clash配置文件...
配置文件config.yaml下载成功! [ OK ]
判断订阅内容是否符合clash配置文件标准:
订阅内容符合clash标准
正在启动Clash服务...
服务启动成功! [ OK ]
Clash Dashboard 访问地址: http://<ip>:9090/ui
查看服务端口和环境变量均成功。执行scripts/clash_proxy-selector.sh选择不了节点。
(base) root@ubuntu:~/clash-for-linux-backup# bash scripts/clash_proxy-selector.sh
========== Clash代理配置 ==========
1. 选择代理模式
2. 选择代理节点
3. 退出
===================================
请选择操作(输入编号):2
jq: error (at <stdin>:1): Cannot iterate over null (null)
========== 代理节点列表 ==========
===================================
请选择代理节点(输入编号):3
无效的选择!
执行sudo bash start.sh后,各步骤全部显示ok,但proxy_on后netstat -tln | grep -E '9090|789.'无输出。
查看logs/clash.log后发现如下报错:
time="2024-01-12T16:43:06Z" level=fatal msg="Parse config error: yaml: unmarshal errors:\n line 373: mapping key \"socks-port\" already defined at line 5"
使用ps -ef | grep 'clash-linux'也没有输出,似乎服务并没有启动
可能是因为什么原因导致的捏?
Thank you for the great work. I had been using this tool for months, but recent days an issue occurred.
After proxy_on
, I git clone a repo with error like this:
fatal: unable to access 'https://github.com/krychu/llama/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
the clash url is tested well in Mac an IOS environment.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
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.