What to Make of the Explosive New WeChat and QQ Spying Revelations?
昨天晚上看到了这个文章,不论真假,按最坏的打算(毕竟这么干也不是不能够),准备卸载QQ微信重新刷机了,然而微信这个东西有些时候真的是不得不用,毕竟见过银行内部工作人员拿微信群办公,客户资料啥的群里一堆。。。(无Fuck说)
安装教程参考了官方文档(EN),建议大家用一台网络环境好点的机器来跑,以免因为网络状况丢失消息
克隆代码 ,进入目录
git clone https://github.com/blueset/ehForwarderBot.git
cd ehForwarderBot
接下来创建一个存储的目录(文件夹)
mkdir storage
chmod +rw ./storage
安装非Python依赖
apt-get install python3 python3-setuptools
apt-get install libwebp-dev
apt-get install libmagic-dev ffmpeg
安装Python依赖
apt-get install python3-pip
pip3 install -r requirements.txt
至此已经安装完成,修改配置文件
cp config.sample.py config.py
nano config.py
在配置文件中,token 后引号里面的内容替换为你之前获得的 Bot 密钥,admins 后方括号里面填入你自己的 Telegram ID。后面的 6 行是用来配置语音转文字功能的,不是必要功能
配置完成后就可以启动了,
python3 daemon.py start
配置进程守护来确保时刻在线
apt-get install supervisor -y
写入配置(客户端)
nano /etc/supervisor/conf.d/EFB.conf
写入以下内容
[program:EFB]
command=python /root/ehForwarderBot/daemon.py
autorestart=true
autostart=true
user=root
重启Supervisor服务
/etc/init.d/supervisor restart
重启客户端
supervisorctl restart EFB
查看Supervisor服务运行状态。
supervisorctl status
如果遇到问题,可以检查日志:
supervisorctl tail -f EFB stderr