Giter VIP home page Giter VIP logo

docker's Introduction

Fuck 学习强国

一款帮助成年人(或许未来包括小朋友)自动学刁的软件

下载

Windows  |  镜像1  |  镜像2

Mac  |  镜像1  |  镜像2

Linux x86_64  |  镜像1  |  镜像2

树莓派 (Linux armv7l)  |  镜像1  |  镜像2

app.asar 更新包  |  镜像1  |  镜像2
(记得校验sha256)

在 IPFS 上的镜像

ipns://QmXBUF7nWwQeQfdiewCFUtQvb5YDPdMZ81J1EyfXpbeLVw

IPFS镜像1  |  IPFS镜像2  |  IPFS镜像3  |  IPFS镜像4  |  IPFS镜像5

使用方法

  • 请解压后点击 Fuck学习强国.exe 来启动程序。
  • 对于Linux用户,请在使用前为程序添加可执行权限: chmod +x Fuck学习强国
  • 如果你没有登录账号,请在打开的页面中扫描二维码登录。
  • 等待打开的窗口中的程序自动完成“学刁”,你可以用这台电脑做其他事情,但不要 最小化 或 关闭 那个窗口已经解决此问题)。

直接在命令行界面运行

以 Ubuntu 系统 (Linux x86_64) 为例

# 安装依赖
sudo apt update
sudo apt upgrade
sudo apt-get install -y \
    wget \
    unzip \
    libgtk-3-0 \
    xvfb \
    libxss1 \
    libnss3 \
    libasound2

Xvfb -ac -screen scrn 1280x2000x24 :9.0 &
export DISPLAY=:9.0

# 下载并解压程序
wget -O fuck-xuexiqiangguo.zip https://github.com/fuck-xuexiqiangguo/Fuck-XueXiQiangGuo/raw/master/Fuck学习强国-linux.zip
unzip -q -d ./fuck-xuexiqiangguo/ fuck-xuexiqiangguo.zip

cd fuck-xuexiqiangguo
chmod +x ./Fuck学习强国

# 运行程序
./Fuck学习强国 --headless

# 等待片刻,使用学习强国APP扫描屏幕上的二维码登录

命令行选项

使用 ./Fuck学习强国 --help 查看命令行选项帮助

更新方法

使用最新的app.asar替换resources/app.asar

对于Mac用户,请替换Contents/Resources/app.asar

version.json文件中有app.asar的sha256校验值,可自行核对。

Changelog

CHANGELOG.md

License

Fuck XueXiQiangGuo is licensed under MIT License

源代码


本软件为公益性质,永久免费使用

如果你为本软件支付过费用,请立即退款

不接受捐款

docker's People

Contributors

fxxk-xuexiqiangguo avatar lmmsoft avatar xz-dev avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

docker's Issues

安卓上二维码缩进问题以及登陆挂了

一是登陆挂了,验证码问题还是存在。
二是我试过所有安卓端的ssh工具去跑服务器上的docker日志显示的二维码走形(缺空格等)导致无法扫描并登陆,电脑显示正常,但这样一来只能用电脑就很不方便。

误删container导致的错误,不知道如何解决

之前误删了container,后来又重新按照readme中的doker run命令来了一遍
现在日志显示这个错误
Server is already active for display 9
If this server is no longer running, remove /tmp/.X9-lock
可是我并没有/tmp/.X9-lock这个文件

我有很多错误

2019/4/23 13:48:11 今日积分: 24 总积分: 1378 阅读文章积分: 6 / 6 观看视频积分: 6 / 6 文章时长积分: 6 / 6 视频时长积分: 5 / 6
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default

docker开启后的问题

docker开启后,听说每天会自动刷。
我想问每天大概什么时间开始刷?是固定的定时任务,还是随机的时间?

启动docker失败,给小弟点指点

PS E:\Xuexi> docker logs -f xuexi
failed: Connection refused.
failed: Cannot assign requested address.
....
....
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Unable to find a valid app
at Object. (/app/resources/electron.asar/browser/init.js:121:9)
at Object. (/app/resources/electron.asar/browser/init.js:191:3)
at Module._compile (internal/modules/cjs/loader.js:711:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:753:10)
at startup (internal/bootstrap/node.js:241:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:579:3)

那边issues太多了,过来提一下真正的问题

我在腾讯云上跑docker扫二维码登陆后打印如下信息,是因为vps上没有视频音频设备导致的?
ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
[97:0311/015005.100417:ERROR:adm_helpers.cc(73)] Failed to query stereo recording.

新版存在内存泄漏的风险

如图:已确定是该服务引起的。已经复现。

1

2

我们可以仔细观察下内存的图片。约9.30的时候docker服务启动,内存上升至70%左右,这都是非常的合理的。
在大概10点左右的时候,任务跑完了(通过查看日志)。但服务并没有stop。
从10点开始,内存一路飙升,飙升至95%,最终我kill掉了docker,内存回归正常。

最终确定为内存泄漏,麻烦作者好好查下代码。尤其是任务跑完后,执行的那些代码。

用户名密码自动登录不支持docker运行

使用dockerfile
修改scriptl.sh的最后一行,避免扫码,每天自动登录

/app/Fuck学习强国 --headless --username=18812345678 --passwd="123456"

不能自动学习,错误日志如下

2019-05-04 05:26:17 URL:https://raw.githubusercontent.com/fuck-xuexiqiangguo/Fuck-XueXiQiangGuo/master/app.asar [227025/227025] -> "/app/resources/app.asar" [1]
[76:0504/052619.217665:ERROR:adm_helpers.cc(73)] Failed to query stereo recording.
[76:0504/052659.057095:ERROR:stunport.cc(88)] Binding request timed out from 172.17.0.x:41459 (eth0)

问题解决:后来发现是钉钉和学习的密码不一致
请关闭

构建镜像第八步失败了

Step 8/10 : COPY script.sh /
COPY failed: stat /var/lib/docker/tmp/docker-builder469359622/script.sh: no such file or directory

求解

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.