Files
archived-rtty/OPENWRT_ZH.md
Jianhui Zhao bb80857ed7 Update doc
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2019-05-29 16:44:46 +08:00

72 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 直接在设备里面安装
opkg update
opkg list | grep rtty
opkg install rtty-nossl
# 自己编译
## 添加feedopenwrt 14.04,15.05,Lede,openwrt 18或者更高版本
**如果你的OpenWrt根目录存在feeds.conf,则使用feeds.conf而不是feeds.conf.default**
Openwrt 14.04
echo 'src-git rtty https://github.com/zhaojh329/rtty.git;openwrt-14-15' >> feeds.conf.default
Openwrt 15.05
echo 'src-git rtty https://github.com/zhaojh329/rtty.git;openwrt-lede' >> feeds.conf.default
openwrt 18或者更高版本
echo 'src-git rtty https://github.com/zhaojh329/rtty.git;openwrt-18' >> feeds.conf.default
## 安装feedopenwrt 14.04,15.05,Lede and openwrt 18
./scripts/feeds uninstall -a
./scripts/feeds update rtty
./scripts/feeds install -a -f -p rtty
./scripts/feeds install -a
## 安装feedmaster
./scripts/feeds update -a
./scripts/feeds install -a
## 在menuconfig中选择rtty然后重新编译固件。
Utilities --->
Terminal --->
<*> rtty-mbedtls............................ A reverse proxy WebTTY (mbedtls)
< > rtty-nossl............................... A reverse proxy WebTTY (NO SSL)
< > rtty-openssl............................ A reverse proxy WebTTY (openssl)
< > rtty-wolfssl............................ A reverse proxy WebTTY (wolfssl)
# 配置
配置服务器参数
uci add rtty rtty # 如果是第一次配置
uci set rtty.@rtty[0].host='your server host'
uci set rtty.@rtty[0].port='your server port'
你可以给你的设备自定义一个ID。如果未指定RTTY将使用指定的网络接口的MAC地址作为其ID
uci set rtty.@rtty[0].id='your-device-id'
给你的设备添加一个描述
uci set rtty.@rtty[0].description='My device'
使用SSL
uci set rtty.@rtty[0].ssl='1'
认证
uci set rtty.@rtty[0].token='your-token'
保存配置并应用
uci commit
/etc/init.d/rtty restart