从iStoreOS的命令行中安装OpenClash
1、iStoreOS版本24.10,硬件设备为aarch64
2、ssh远程访问iStoreOS
ssh root@192.168.100.1
输入密码登录
3、更新并安装依赖
opkg update
opkg install bash dnsmasq-full curl ca-bundle ip-full ruby ruby-yaml kmod-tun kmod-inet-diag unzip kmod-nft-tproxy luci-compat luci luci-base
4、电脑上下载OpenClash 0.47.156.IPK文件
https://github.com/vernesong/OpenClash/releases
5、使用scp命令把本地的.IPK文件上传至iStoreOS的tmp文件夹下
scp ./luci-app-openclash_0.47.156_all.ipk root@192.168.100.1:/tmp/
6、在ssh上安装openclash
opkg install /tmp/luci-app-openclash_0.47.156_all.ipk
7、下载Mihomo内核
https://github.com/MetaCubeX/mihomo/releases
下载: mihomo-linux-arm64-v1.19.28.gz
8、通过scp命令将mihomo-linux-arm64-v1.19.28.gz文件(解压后)放置到iStoreOS上的/tmp文件夹下
scp ./mihomo-linux-arm64-v1.19.28 root@192.168.100.1:/tmp/
9、将mihomo文件再拷贝至openclash文件夹下
ssh中执行:
mkdir -p /etc/openclash/core
cp /tmp/mihomo-linux-arm64-v1.19.28 /etc/openclash/core/clash_meta
chmod +x /etc/openclash/core/clash_meta
/etc/openclash/core/clash_meta -v
如果返回:Mihomo Meta v1.xx.xx ,则说明内核安装成功!
评论
发表评论