无代理下安装V2RayA(Debian/Ubuntu)

阿安装v2ray的一般方法需要梯子,这几乎是个死循环,这里有两个不常见的方法

方法一:通过软件源安装(推荐)

安全添加 V2RayA 软件源的 GPG 公钥

1
wget -qO - https://apt.v2raya.org/key/public-key.asc | sudo tee /etc/apt/keyrings/v2raya.asc

添加V2RayA软件源

1
2
echo "deb [signed-by=/etc/apt/keyrings/v2raya.asc] https://apt.v2raya.org/ v2raya main" | sudo tee /etc/apt/sources.list.d/v2raya.list
sudo apt update

安装V2RayA

1
sudo apt install v2raya v2ray 

启动v2rayA/自启动v2rayA

  • 启动v2rayA

    1
    sudo systemctl start v2raya.service
  • 设置开机自启动

    1
    sudo systemctl enable v2raya.service

方法二:通过Snap包安装

安装Snap

1
2
sudo apt update
sudo apt install snapd

安装V2RayA

1
sudo snap install v2raya  #默认启动和自启动

为什么不推荐snap 呢,因为snap安装的v2raya有时候有点bug