Debian / Ubuntu
The function of v2rayA depends on the V2Ray core, so the kernel needs to be installed.
Install V2Ray core / Xray core
Official script of V2Ray / Xray
V2Ray installation: https://github.com/v2fly/fhs-install-v2ray
Xray installation: https://github.com/XTLS/Xray-install
Mirror script provided by v2rayA (recommended)
curl -Ls https://mirrors.v2raya.org/go.sh | sudo bash
You can turn off the service after installation, because v2rayA does not depend on the systemd service.
sudo systemctl disable v2ray --now ### Xray needs to replace the service with xray
Install v2rayA
Method 1: Install through the software source
Add public key
wget -qO - https://apt.v2raya.org/key/public-key.asc | sudo tee /etc/apt/trusted.gpg.d/v2raya.asc
Add V2RayA software source
echo "deb https://apt.v2raya.org/ v2raya main" | sudo tee /etc/apt/sources.list.d/v2raya.list
sudo apt update
Install V2RayA
sudo apt install v2raya
Method 2: Manually install the deb package
After downloading the deb package , you can use graphical tools such as Gdebi, QApt to install, or you can use the command line:
sudo apt install /path/download/installer_debian_xxx_vxxx.deb ### Replace the actual path where the deb package is located by yourself
Start v2rayA / Enable v2rayA start automatically
From the 1.5 version, it will no longer default start v2rayA and set auto-start.
Start v2rayA
sudo systemctl start v2raya.service
Set auto-start
sudo systemctl enable v2raya.service
Switch iptables to iptables-nft
For Debian11 users, iptables has been deprecated. Use nftables as the backend of iptables for adaptation:
update-alternatives --set iptables /usr/sbin/iptables-nft
update-alternatives --set ip6tables /usr/sbin/ip6tables-nft
update-alternatives --set arptables /usr/sbin/arptables-nft
update-alternatives --set ebtables /usr/sbin/ebtables-nft
If you want to switch back to the legacy version:
update-alternatives --set iptables /usr/sbin/iptables-legacy
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
update-alternatives --set arptables /usr/sbin/arptables-legacy
update-alternatives --set ebtables /usr/sbin/ebtables-legacy
Restart after switching.
Last update on: Jun 18, 2022 16:55 +0800