0、Introduction
An Xray-based backend framework that supports V2ay, Trojan, and Shadowsocks protocols, is easily expandable, and supports multi-panel docking.
——XrayR Project
1. Problem description
One-click installation script:
1 | bash <(curl -Ls https://raw.githubusercontent.com/XrayR-project/XrayR-release/master/install.sh) |
When installing using ArchLinux, an error will be reported:
System version not detected, please contact the script author!
2.Solution
After testing, ArchLinux can be installed and used normally with XrayR and one-click scripts. You only need to bypass the detection.
Lines 13-30 of the one-click script are system architecture detection:
1 | # check os if [[ -f /etc/redhat-release ]]; then release="centos" elif cat /etc/issue | grep -Eqi "debian"; then release="debian" elif cat /etc/issue | grep -Eqi "ubuntu"; then release="ubuntu" elif cat /etc/issue | grep -Eqi "centos|red hat|redhat"; then release="centos" elif cat /proc/version | grep -Eqi "debian"; then release="debian" elif cat /proc/version | grep -Eqi "ubuntu"; then release="ubuntu" elif cat /proc/version | grep -Eqi "centos|red hat|redhat"; then release="centos" else echo -e "${red}The system version is not detected, please contact the script author! ${plain}\n" && exit 1 fi |
You can delete it directly and change it to:
1 | release="archlinux" |
The installation is complete. In addition, after the installation is completed, the commands XrayR
and xrayr
cannot be started, and an error is still reported that the system version is not detected, so use the same method to edit:
/usr/bin/XrayR
or
/bin/XrayR
With the same content, you can use the script normally after replacing it.
Install XrayR on ArchLinux
Comments