Skip to content

Commit

Permalink
chore: Update README.md [ci skip]
Browse files Browse the repository at this point in the history
Signed-off-by: kuoruan <[email protected]>
  • Loading branch information
kuoruan committed Mar 6, 2019
1 parent c347ce6 commit ae6ce26
Showing 1 changed file with 24 additions and 30 deletions.
54 changes: 24 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,50 @@ OpenWrt/LEDE 上的 Kcptun Luci 支持界面

[![Release Version](https://img.shields.io/github/release/kuoruan/luci-app-kcptun.svg)](https://github.com/kuoruan/luci-app-kcptun/releases/latest) [![Latest Release Download](https://img.shields.io/github/downloads/kuoruan/luci-app-kcptun/latest/total.svg)](https://github.com/kuoruan/luci-app-kcptun/releases/latest)

> 获取 Kcptun for OpenWrt, 请访问:[https://github.com/kuoruan/openwrt-kcptun](https://github.com/kuoruan/openwrt-kcptun)
## 编译说明

编辑 ```feeds.conf.default``` 添加如下内容:

```
src-git luci-app-kcptun https://github.com/kuoruan/luci-app-kcptun.git
```

然后按照正常的编译流程:

```
./scripts/feeds update luci-app-kcptun
./scripts/feeds install luci-app-kcptun
make menuconfig
make
```

## 安装说明

1.[release](https://github.com/kuoruan/luci-app-kcptun/releases) 页面下载最新版 luci-app-kcptun 和 luci-i18n-kcptun-zh-cn (简体中文翻译文件)
2. 将下载好的 ipk 文件上传到路由器任意目录下, 如 /tmp
3. 先安装 luci-app-kcptun 再安装 luci-i18n-kcptun-zh-cn

```
```sh
opkg install luci-app-kcptun_*.ipk
opkg install luci-i18n-kcptun-zh-cn_*.ipk
```

安装好 LuCI 之后,进入配置页面,会提示 ```客户端文件配置有误```

若路由器上已经有 Kcptun 客户端,直接配置好路径即可,如果当前还没有客户端文件,可以使用以下操作:
若路由器上已经有 Kcptun 客户端,直接配置好路径即可;如果没有,请手动下载后上传到路由器。

## 客户端文件下载

1. OpenWrt 可用的 Kcptun:[https://github.com/kuoruan/openwrt-kcptun](https://github.com/kuoruan/openwrt-kcptun)

2. 官方版本: [https://github.com/xtaci/kcptun/releases](https://github.com/xtaci/kcptun/releases)

## 编译说明

下载 OpenWrt SDK 或者完整源码,进入根目录,运行命令下载 ```luci-app-kcptun``` 源码

```sh
git clone https://github.com/kuoruan/luci-app-kcptun.git package/luci-app-kcptun
```

1. 配置好 ```客户端文件``` 路径(可选,默认路径 ```/var/kcptun_client```),确保客户端文件所在目录的剩余空间足以放下两个客户端文件;
2. 根据当前设备,配置好 ```CPU 架构```(可选);
3. 如果你的路由器上装有透明代理软件,最好先打开;
4. 点击 ```检查 Kcptun```,正常情况下应该会获取到 Kcptun 最新版本号;
5. ```点击更新``` 按钮来自动下载配置客户端文件。
然后按照正常的编译流程:

如果自动下载更新失败,请手动下载 Kcptun 客户端文件并上传到路由器上,然后配置好 ```客户端文件``` 路径。
```sh
./scripts/feeds update luci-app-kcptun
./scripts/feeds install luci-app-kcptun

下载地址: https://github.com/xtaci/kcptun/releases
make menuconfig
make
```

## 卸载说明

卸载时需要先卸载 luci-i18n-kcptun-zh-cn, 再卸载 luci-app-kcptun

```
```sh
opkg remove luci-i18n-kcptun-zh-cn
opkg remove luci-app-kcptun
```

0 comments on commit ae6ce26

Please sign in to comment.