Git Product home page Git Product logo

docker_wechat's Introduction

About

用于运行微信Hook的Docker配置。

  • 运行环境:Docker、Wine、LXDE、xRDP
    • LXDE:轻量的桌面环境,微信只能在图形界面下安装和运行。
    • xRDP:用于从Windows远程连接桌面进行配置。
  • 基于WeChatFerry部署,thanks to lich0821
  • 资源使用情况:
    • 磁盘:构建的镜像大小约4.6G。安装微信后达到7G,长期使用将持续扩大;
    • 内存:启动微信后MEM USAGE:1.86G;

Usage

获取资源

Releases 下载安装包WeChatSetup和工具包v??.?.?.zip,放到工程目录docker/res

WeChatFerry迭代频繁,最新版本PyPiWeChatFerry-Release获取

构建镜像

$ cd docker
$ sudo ./docker_build.sh

Dockerfile中,默认root密码为123,请按需修改。

启动镜像

$ sudo ./docker_run.sh

docker_run.sh默认端口映射,请按需调整:

  • xRDP端口:3389,映射到主机13389
  • WeChatFerry命令端口:8001,映射到主机18001
  • WeChatFerry消息端口:8002,映射到主机18002

安装应用

  • Windows启动远程桌面连接地址服务器IP:13389
  • 进入xRDP登录窗口,usernamerootpassword123
  • 进入桌面,启动安装程序。提供2种方式:
    1. 命令行启动:左下角启动终端LXTerminal,执行:
      $ wine res/WeChatSetup-3.9.2.23.exe
    2. 新增快捷方式启动:双击桌面图标WeChatSetup

开始常规安装流程,完成安装后关闭。

启动应用

  • 进入桌面,启动应用。提供2种方式:
    1. 命令行启动:
      $ ./launch.sh
    2. 新增快捷方式启动:双击桌面图标WeChatFerry
  • 微信常规配置,左下角Settings:
    • Notifications:关闭所有
    • General -> General:不选所有
    • Manage Files -> Auto-Download:不选
  • 启动并登录后,直接关闭远程桌面,不要Logout。因为登出后图形界面下运行的所有程序都会退出。

测试

在主机运行测试脚本:./test/test_wcferry.py,消息默认发送给文件传输助手

docker_wechat's People

Contributors

saroth avatar

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.