安装v2rayA
参照v2rayA在Debian / Ubuntu上的安装教程。教程中的Method 1是无效的(本博客发布时),它提供的apt source过期。
使用Method 2安装v2rayA,使用v2rayA的预编译文件。.deb预编译文件在v2raya-apt库(源文件库v2ray-core只有zip分发,需要解压)。
安装v2ray-core
参考v2rayA · Discussion #1453安装v2ray-core。使用的是v2ray-core的releases。
本节的代码需要在root权限下执行:使用su root或sudo bash。
下载地理信息文件。
cd /etc/v2raya/
wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat安装v2ray-core。注意需要根据架构修改文件名,这里使用的是arm64架构。
mkdir v2ray
cd v2ray
wget https://github.com/v2fly/v2ray-core/releases/download/v5.25.1/v2ray-linux-arm64-v8a.zip
unzip v2ray-linux-*
mv v2ray /usr/bin/为v2rayA配置文件添加v2ray-core的路径。
mkdir -p /etc/v2raya
echo '{"v2ray_path": "/usr/bin/v2ray"}' > /etc/v2raya/config.json然后重启v2rayA服务。
systemctl restart v2raya脚本式安装
我把上面的安装过程整理成了bash shell脚本。直接获取并执行:
curl -fSsL https://gist.githubusercontent.com/recynie/6839f0055327316f67a3c89fbe9e5381/raw/c989e8367f75f9dc9eb804db65d9fcb3a39461d6/install_v2raya_arm64.sh | bash