Install XrayR on ArchLinux

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:

Bash
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:

Bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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:

Bash
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.

Author
Hsukqi Lee
Posted on

2023-11-19

Edited on

2023-11-19

Licensed under

CC BY-NC-ND 4.0

Comments

Name
Mail
Site
None yet