OSDN Git Service

xray-core: Update to 1.5.2
[v2raya/v2raya-openwrt.git] / README.md
1 # v2raya-openwrt
2
3 opkg feed of v2rayA for OpenWrt users.
4
5 ## How to install
6
7 1. Add v2rayA usign key
8
9    ```sh
10    wget-ssl https://osdn.net/projects/v2raya/storage/openwrt/v2raya.pub  -O /etc/opkg/keys/94cc2a834fb0aa03
11
12    # Mirror
13    # wget-ssl https://mirrors.tuna.tsinghua.edu.cn/osdn/storage/g/v/v2/v2raya/openwrt/v2raya.pub -O /etc/opkg/keys/94cc2a834fb0aa03
14    ```
15
16 2. Import v2rayA feed
17
18    ```sh
19    echo "src/gz v2raya https://osdn.net/projects/v2raya/storage/openwrt/$(. /etc/openwrt_release && echo "$DISTRIB_ARCH")" | tee -a "/etc/opkg/customfeeds.conf"
20
21    # Mirror
22    # echo "src/gz v2raya https://mirrors.tuna.tsinghua.edu.cn/osdn/storage/g/v/v2/v2raya/openwrt/$(. /etc/openwrt_release && echo "$DISTRIB_ARCH")" | tee -a "/etc/opkg/customfeeds.conf"
23    ```
24
25 3. Update feeds
26
27    ```sh
28    opkg update
29    ```
30
31 4. Install v2rayA and its dependencies
32
33    ```sh
34    opkg install v2raya
35
36    # Choose a core you'd like to use, v2ray or Xray
37    # If you have both installed, the former is preferred by default
38    opkg install v2ray-core
39    # opkg install xray-core
40
41    # Optional
42    # opkg install v2fly-geoip v2fly-geosite
43    ```
44
45 ## How to use
46
47 1. Setup v2rayA
48
49    ```sh
50    # For advanced usage, please see /etc/config/v2raya
51    uci set v2raya.config.enabled='1'
52    uci commit v2raya
53    ```
54
55 2. Start v2rayA
56
57    ```sh
58    /etc/init.d/v2raya start
59    ```
60
61 3. Visit v2rayA webUI and enjoy
62
63    http://openwrt.lan:2017