Giter Club home page Giter Club logo

ericliyee / yrssf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erblocker/yrssf

0.0 0.0 0.0 15.7 MB

一个分布式(p2p)云教学/云课堂/直播平台系统CMS,睿易派的开源替代品

License: GNU General Public License v3.0

Shell 0.21% JavaScript 6.07% C++ 10.31% Python 0.07% Perl 0.04% C 76.02% PHP 0.01% Objective-C 4.45% Lua 0.25% CSS 0.19% Pascal 0.29% SAS 0.02% Makefile 0.66% HTML 1.02% CMake 0.10% GLSL 0.01% DIGITAL Command Language 0.24% Module Management System 0.01% Roff 0.04% Perl 6 0.01%

yrssf's Introduction

YRSSF(Yun'er Study System Framework 或者 Shuang Si Ruiyi Famework),这是一个p2p架构的 云教学系统/直播平台框架(CMS),目的是开发一个睿易云的免费替代品。
本项目遵守GPL-3.0协议
如需用于商业用途等需要改协议,请联系qq

  • 2577199574
  • 3068750058

特点:

  • 基于UDP协议,并且可以通讯加密(虽然是使用web界面来管理,并且目前不支持https……)
  • 内置内网穿透(废话,不然怎么P2P)
  • 使用“区块树”存储数据
  • 使用“数(fang)字(mao)证书”来验证用户身份
  • 数据库为LevelDB,但是使用LUA开发时可以用runsql来调用sqlite
  • 内置锁机(#喷)(没办法,这是校内云教学软件……)
  • 操作系统兼容POSIX,比如Android,Linux。
  • 可通过web管理(但是不能https)
  • 支持cgi和fastcgi(可以直接移植php项目什么的了)
  • 目前尚不支持Windows,可通过VNC来使用Windows程序

文档:

APIs

警告:

lock目录下的东西极度危险!极度危险!极度危险!重要的事说三遍
经测试,在原版linux下可导致百度等常见网站DNS解析错误,并且会自动关闭大多数端口
在android下会同时卸载包括蓝牙在内的大多数系统app,并且结束未允许的用户app的进程(具体效果见睿易派)
如果不需要限制设备功能(比如说防止学生用平板电脑打游戏……),请不要在lock目录里面乱make,否则后果很严重……
如果真的make了,在里面make clean一下可以解除锁机效果
此工具请勿用于非法用途,否则后果自负

编译:

Linux:

下载并编译:

$ git clone https://github.com/cgoxopx/YRSSF
或者是$ git clone http://git.oschina.net/cgoxopx/YRSSF(如果网速慢的话)
$ cd YRSSF && make
安装人工智能组件(可省略,因为一般人用不到,而且atulocher项目进展非常缓慢,并且可能会用到一些硬件特性)
$ make atulocher
$ cd core && make
$ cd ../launcher && make
$ cd ../build

让系统重新生成密钥:

$ rm data/cert.txt生成后第一行是公钥,第二行是私钥

重新生成数据库:

$ rm data/yrssf.db

添加信任的公钥:

$ echo "public key" >> data/allowcert.txt
public key 换成可能要连接的服务器公钥

设置用户名:

$ vim data/user.txt

最后运行项目:

$ ./launcher

结束进程(如果需要的话):

$ killall YRSSF launcher daemon
launcher和daemon会相互保护,单独结束其中任意一个都会被另一个复活

Android编译:

请直接使用cmake

插件开发:

编译完成后,/build 整个目录可以直接复制出来在其他位置执行
/build/static 为www目录(存放网页以及cgi文件)
/build/live 下的文件为直播的管道文件
/build/static 目录支持cgi文件或者php文件,但是使用cgi文件时请注意:如果cgi程序有错误,http服务器关闭时会直接Segmentation fault(这似乎是cgi的通病)

鸣谢

  • lua
  • lua-cjson
  • leveldb
  • zlib
  • sqlite
  • cppjieba
  • studyHttpd
  • tinyhttpd
  • SDL

最后还是要感谢睿易派

yrssf's People

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.