Coder Social home page Coder Social logo

fsn_server's Introduction

华工DrCOM登录端(FSCUTNET)

运行环境

本程序是适用于 linux平台(ubuntu 和 openwrt已测试) 依赖库只有 pthread(一般系统自带) 目前,测试成功路由器: 小米路由器青春版、极路由1S、极路由2、TPLink-wr720n、水星MW305R v1改装版、树莓派3 (raspbian)

版本历史

1.6.3

(2016.12.23)

加大drcom协议的udp重发次数为5次,降低断连的概率 缩短断开重连8021x的时间

1.6.2

(2016.10.28)

修复drcom协议的一些bug 修复 8021x的内存泄露问题 加入隐藏功能 /options,来解决部分人的夜间断网问题

1.6.1

(2016.09.05)

第一次登录后,会记住账户和密码,重启程序后可以自动登录

1.6

(2016.09.02)

去除了配置文件。 美化了WEB页面,并添加了登录界面。 同时,在登录状态下,当连接断开时,将会以两秒的间隔,无限尝试自动重连。

跑起来(OpenWrt路由器)

windows系统

准备工具: WinSCP(文件传输)

步骤:

  1. 配置好路由器的WAN为学校提供的静态IP和DNS,并克隆MAC(这一步不会的,请放弃使用fscutnet)

  2. 打开WinSCP,新建站点,协议为SCP,IP为路由器后台管理界面IP,用户名为root,密码为路由器后台管理界面密码

  3. 登录成功后,根据CPU架构,把相应的fsn_server_xxx拷贝到路由器任意目录(如 /bin, /root, /data 等),推荐放 /root 下,方便后面更新升级。

    路由器 CPU架构
    小米路由器青春版 mt762x
    小米路由器mini mt762x
    极路由1S mt762x
    极路由2 mt762x
    TPLink-wr720n ar71xx
    水星MW305R v1 mt762x
  4. 右击 fsn_server_xxx 文件,点击属性,然后把X都勾上。

  5. 然后在WinSCP中右击编辑文件 /etc/rc.local, 并在 exit 0 前面添加以下两句:

    sleep 20;
    (/dddd/fsn_server_xxx &);

其中,dddd为你存放的目录路径,xxx为CPU架构。 例如,放置于 /root下,cpu为mt762x的,就是 (/root/fsn_server_mt762x &)

  1. 重启路由器,然后使用浏览器打开 http://路由器IP:7288 ,例如 http://192.168.10.1:7288/ 不断刷新,直到登录界面出现,输入学号登录即可。 界面内容较为高级,但是需要知道的是:8021x的更新时间是 上次断线重连的时间,drcom的更新时间是 在线的时间,12秒自动刷新一次 。

  2. 以后需要更新 fsn_server_xxx 的时候,先把对应目录里的 fsn_server_xxx 文件删除,然后再放上去(直接替换可能会报错),最后修改X属性(第4步),重启即可。

linux系统

一般使用linux都为高手,你们直接用scp拷贝上去,并用ssh登录修改 /etc/rc.local,其他步骤类似。

声明

特别指出禁止任何个人或者公司将 该程序投入商业使用,由此造成的后果和法律责任均与本人无关。

fsn_server's People

Contributors

ysunlin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

snowback jezachen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.