心梦后花园

Back

现在直接使用 clash-meta 包即可,不需要配置其他内容。

安装 Clash-Meta#

如果你已经添加了archkinuxcn 源即可直接使用 pacman 进行安装:

sudo pacman -S clash-meta
plaintext

如果没有添加 cn 源可以使用aur helper工具,如 yay、paru 进行安装。也可以添加 cn 源后进行安装,因为 aur 下载的资源在 github ,部分地区无法直连 github ,可能导致安装失败。

配置Clash-Meta#

安装之后先启动一下服务,sudo systemctl start clash-meta@$USER.service,运行之后会在你当前用户的 ~/.config/clash 下创建文件夹和配置文件,先停止 clash-meta 服务 sudo systemctl stop clash-meta@$USER.service,修改 ~/.config/clash/config.yaml 配置文件,建议使用 Clash-Meta WiKi 的配置:

上面的配置文件中:

proxy-providers:
  provider1:
    <<: *p
    url: ""
    path: ./proxy_providers/provider1.yaml
plaintext

里面将url: "" 的引号换成订阅地址。

下载网页管理面板 Yacd-meta 。上面配置文件里的 external-ui: ui 表示管理面板在配置目录的 ui 文件夹下,即~/.config/clash/目录下,将下载压缩包解压并重命名为ui,压缩包下载地址为 https://github.com/MetaCubeX/yacd/archive/gh-pages.zip 如果下载不了可以使用 https://ghproxy.com/https://github.com/MetaCubeX/yacd/archive/gh-pages.zip 加速下载。

服务启动时会自动下载下面三个文件,如果网络不行就会下载失败,导致无法使用clash-meta,所以建议手动下载后放到~/.config/clash/目录下: https://ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb https://ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat https://ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat 下载后重新启动服务即可:

sudo systemctl enable --now clash-meta@$USER.service
plaintext

在浏览器打开 127.0.0.1:9090/ui 即可打开控制面板。

在Arch使用Clash
https://www.liyp.cc/blog/clash-setup-and-usage-on-archlinux
Author 万古一梦
Published at 2023年10月7日
Comment seems to stuck. Try to refresh?✨