-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetupXray.sh
More file actions
executable file
·19 lines (13 loc) · 930 Bytes
/
setupXray.sh
File metadata and controls
executable file
·19 lines (13 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
sudo bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --beta
sudo systemctl enable --now xray
cur_dir=$(pwd)
cd /usr/local/share/xray
sudo wget -O geoip.dat -N https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
sudo wget -O geosite.dat -N https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat
sudo wget -O geoip_IR.dat -N https://github.com/chocolate4u/Iran-v2ray-rules/releases/latest/download/geoip.dat
sudo wget -O geosite_IR.dat -N https://github.com/chocolate4u/Iran-v2ray-rules/releases/latest/download/geosite.dat
sudo wget -O geoip_VN.dat https://github.com/vuong2023/vn-v2ray-rules/releases/latest/download/geoip.dat
sudo wget -O geosite_VN.dat https://github.com/vuong2023/vn-v2ray-rules/releases/latest/download/geosite.dat
cd $cur_dir
echo "Please modify '/usr/local/etc/xray/config.json'"