其他

通过 Web 浏览器访问终端 rtty | 软件推介

2018-01-15 zhaojh329 开源中国


通过 Web 浏览器访问你的终端。项目名称里面的“r”是指“反向代理”或者“远程”。它由客户端和服务端组成。 你可以根据MAC地址通过Web浏览器访问你的任意一台终端。

授权协议:GPLv3

开发语言:JavaScript

操作系统:跨平台

软件作者:zhaojh329


rtty非常适合远程维护你的或者你公司的部署在全球各地的成千上万的Linux设备。



如何在 OpenWRT 中使用


在 “feeds.conf.default” 中添加新的 Feed:


src-git libuwsc https://github.com/zhaojh329/libuwsc-feed.git

src-git rtty https://github.com/zhaojh329/rtty-feed.git


for chaos_calmer(15.05)


src-git libuwsc https://github.com/zhaojh329/libuwsc-feed.git;for-15.05

src-git rtty https://github.com/zhaojh329/rtty-feed.git;for-15.05


安装 rtty 包:


./scripts/feeds update libuwsc rtty

./scripts/feeds install -a -p rtty


在 menuconfig 中选择包 rtty 并编译新的映像。


Utilities  --->

    Terminal  --->

        <*> rtty................................... Share your terminal over the web


配置服务器参数



uci set rtty.@server[0].host='your server host'

uci set rtty.@server[0].port='your server port'

uci commit

/etc/init.d/rtty restart


部署服务端


安装依赖


sudo apt install python3 python3-pip

sudo pip3 install aiohttp uvloop


克隆代码


git clone https://github.com/zhaojh329/rtty.git


手动运行


cd rtty/server && ./rtty.py -p 5912


安装自启动脚本,后台运行


sudo ./install.sh

sudo /etc/init.d/rtty start


如何使用


使用你的Web浏览器访问你的服务器,然后输入你要访问的终端的MAC地址,然后点击连接按钮。http://your-server-host:5912



推荐阅读

《绝地求生》外挂源代码被公布,或迎神仙大战时代?

2017 开源中国新增开源项目排行榜 TOP 100

Intel 芯片曝重大缺陷:主流 OS 全中招,紧急采取补救措施

TIOBE 年度榜单揭晓!C 语言成功逆袭摘得桂冠

2018 年 Linux 八大发展预测,Ubuntu 将主宰物联网

点击“阅读原文”查看更多精彩内容

您可能也对以下帖子感兴趣

文章有问题?点此查看未经处理的缓存