1 Star 0 Fork 277

harold / rtty

forked from 赵建辉 / rtty 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
OPENWRT.md 2.02 KB
一键复制 编辑 原始数据 按行查看 历史
Jianhui Zhao 提交于 2019-05-29 16:42 . Update doc

Install directly in the device(master)

opkg update
opkg list | grep rtty
opkg install rtty-nossl

Compile it yourself

Add feed for openwrt 14.04,15.05,Lede,openwrt 18 and higher version

If you have feeds.conf in your Openwrt root directory, use feeds.conf instead of 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 or higher version

echo 'src-git rtty https://github.com/zhaojh329/rtty.git;openwrt-18' >> feeds.conf.default

install feed for openwrt 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

install feed for master

./scripts/feeds update -a
./scripts/feeds install -a

Select rtty in menuconfig and compile new image

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)

Configure

Configuring the server parameter

uci add rtty rtty   # If it is configured for the first time
uci set rtty.@rtty[0].host='your server host'
uci set rtty.@rtty[0].port='your server port'

You can customize an ID for your device. If the ID is not configured, RTTY will use the MAC address of the specified network interface as the ID.

uci set rtty.@rtty[0].id='your-device-id'

You can add a description to your device

uci set rtty.@rtty[0].description='My device'

Use SSL

uci set rtty.@rtty[0].ssl='1'

Authorization

uci set rtty.@rtty[0].token='your-token'

Save configuration and apply

uci commit
/etc/init.d/rtty restart
C
1
https://gitee.com/harold_zhu/rtty.git
git@gitee.com:harold_zhu/rtty.git
harold_zhu
rtty
rtty
master

搜索帮助