huan / docker-wechat Goto Github PK
View Code? Open in Web Editor NEWDoChat is a Dockerized WeChat (盒装微信) PC Windows Client for Linux
Home Page: https://hub.docker.com/r/zixia/wechat
License: Apache License 2.0
DoChat is a Dockerized WeChat (盒装微信) PC Windows Client for Linux
Home Page: https://hub.docker.com/r/zixia/wechat
License: Apache License 2.0
Hi
I've tried using it on Deepin and the program won't start
uname -a
Linux zeus 4.15.0-30deepin-generic #31 SMP Fri Nov 30 04:29:02 UTC 2018 x86_64 GNU/Linux
It will only show the window with the information regarding the zoom: "提示微信已按系统设置的比例放大到125%。如不需放大,可在“设置->通用设置->适配系统缩放比例”取消勾选。确定"
My docker version is: Docker version 18.09.6, build 481bc77
你好~盒装微信非常好用,很棒很厉害。
在使用的时候我遇到了这样子的问题:
输入框内输入的文字并没有显示,无论是中文或英文。
虽然文字在输入框中不可见,但当我点击发送时,我的输入文字是被发送的,在聊天记录中可见。(即我的输入实际上输入到了我的输入框,但我无法看到它,除非我将它发送出去)
请问这个有什么好的解决方法吗?
谢谢!
+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 10001 '!=' 1000 ']'
+ groupmod -o -g 10001 group
++ id -u user
+ '[' 10001 '!=' 1000 ']'
+ usermod -o -u 10001 user
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 10001 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
+ VERSION=0.8.3
+ echo '[DoChat] 盒装微信 v0.8.3'
+ disableUpgrade
[DoChat] 盒装微信 v0.8.3
+ wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f
+ echo 'FAIL: "reg add HKEY_CURRENT_USER\Software\Tencent\WeChat /v NeedUpdateType /d 0"'
FAIL: "reg add HKEY_CURRENT_USER\Software\Tencent\WeChat /v NeedUpdateType /d 0"
+ CONFIG_EX_INI_FILE='/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini'
+ '[' -e '/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini' ']'
+ setupFontDpi
+ DELETE_KEYS=('HKEY_CURRENT_USER\Control Panel\Desktop' 'HKEY_CURRENT_USER\Software\Wine\Fonts')
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Control Panel\Desktop' /v LogPixels /f
+ true
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Software\Wine\Fonts' /v LogPixels /f
+ true
+ wine reg ADD 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts' /v LogPixels /t REG_DWORD /d 120 /f
问题描述:
第一次成功启动了,但字体不正常,安装字体后还是未能解决,尝试删除映射目录后无法正常启动了
删除的目录:
-v "$HOME/DoChat/WeChat Files/":'/home/user/WeChat Files/' \
-v "$HOME/DoChat/Applcation Data":'/home/user/.wine/drive_c/users/user/Application Data/' \
-v /tmp/.X11-unix:/tmp/.X11-unix \
错误日志:
Using default tag: latest
latest: Pulling from zixia/wechat
Digest: sha256:0599e8b6688e17c40bed497d8c487e0f2e0eeb53a0abc001ede0e67c9d87d839
Status: Image is up to date for zixia/wechat:latest
docker.io/zixia/wechat:latest
🚀 Pulling the latest docker image done.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...
+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 1000 '!=' 1000 ']'
++ id -u user
+ '[' 1000 '!=' 1000 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 1000 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
+ VERSION=0.7.0
+ echo '[DoChat] 盒装微信 v0.7.0'
+ disableUpgrade
[DoChat] 盒装微信 v0.7.0
+ wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f
+ CONFIG_EX_INI_FILE='/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini'
+ '[' -e '/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini' ']'
+ setupFontDpi
+ DELETE_KEYS=('HKEY_CURRENT_USER\Control Panel\Desktop' 'HKEY_CURRENT_USER\Software\Wine\Fonts')
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Control Panel\Desktop' /v LogPixels /f
+ true
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Software\Wine\Fonts' /v LogPixels /f
+ wine reg ADD 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts' /v LogPixels /t REG_DWORD /d 120 /f
+ '[' -n true ']'
+ wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat'
HKEY_CURRENT_USER\Software\Tencent\WeChat
NeedUpdateType REG_DWORD 0x0
+ true
+ echo '[DoChat] Starting...'
+ '[' -n true ']'
+ unset WINEDEBUG
[DoChat] Starting...
+ wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'
0031:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0031:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
003f:err:dbghelp:pe_load_dbg_file Couldn't find .DBG file "dll\\riched20.dbg" (L"C:\\Program Files\\Tencent\\WeChat")
003f:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
003f:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
[DoChat] 盒装微信 v0.8.0
[DoChat] WeChat 2.8.0.112
[DoChat] Starting...
[DoChat] Found new version
[DoChat] WeChat.exe exited
📦 DoChat Exited with code [0]
it consistently gives "Exited with code [0]:
🚀 Starting DoChat /dɑɑˈtʃæt/ ...
[DoChat] 盒装微信 v0.5.4
[DoChat] Starting...
[DoChat] Found new version
[DoChat] WeChat.exe exited
📦 DoChat Exited with code [0]
Run with debug on:
Using default tag: latest
latest: Pulling from zixia/wechat
Digest: sha256:660fd47f3e4687e8d1ad4468553d9dd32001472350c5f39ade22ce997b1f0cf3
Status: Image is up to date for zixia/wechat:latest
🚀 Pulling the latest docker image done.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...
+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 1000 '!=' 1000 ']'
++ id -u user
+ '[' 1000 '!=' 1000 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 1000 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
+ VERSION=0.5.4
+ echo '[DoChat] 盒装微信 v0.5.4'
+ disableUpgrade
[DoChat] 盒装微信 v0.5.4
+ wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f
+ CONFIG_EX_INI_FILE='/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini'
+ '[' -e '/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini' ']'
+ setupFontDpi
+ DELETE_KEYS=('HKEY_CURRENT_USER\Control Panel\Desktop' 'HKEY_CURRENT_USER\Software\Wine\Fonts')
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Control Panel\Desktop' /v LogPixels /f
+ true
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Software\Wine\Fonts' /v LogPixels /f
+ wine reg ADD 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts' /v LogPixels /t REG_DWORD /d 120 /f
+ '[' -n true ']'
+ wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat'
HKEY_CURRENT_USER\Software\Tencent\WeChat
NeedUpdateType REG_DWORD 0x0
+ true
+ echo '[DoChat] Starting...'
+ '[' -n true ']'
+ unset WINEDEBUG
[DoChat] Starting...
+ wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'
0031:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0031:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
003f:err:dbghelp:pe_load_dbg_file Couldn't find .DBG file "dll\\riched20.dbg" (L"C:\\Program Files\\Tencent\\WeChat")
运行一切都正常,感谢作者分享,非常好的东西!
不过输入中文后显示不正常,无论输入什么只显示格子
输入法:搜狗
字体:Win字体全集
To improve the user experience.
Because we are using our docker container as a stateless runner by adding the --rm
arg, so we will lose data in the container every time we exit WeChat PC.
Currently, we have one volume: /WeChatFiles/
to store local files.
We still need another volume to store the login data.
To be implemented.
can the input box be close to the cursor? sometimes makes me crazy
os:
mmc@debian ~ $ screenfetch
_,met$$$$$gg. xxx@debian
,g$$$$$$$$$$$$$$$P. OS: Debian 10 buster
,g$$P"" """Y$$.". Kernel: x86_64 Linux 4.19.0-8-amd64
,$$P' `$$$. Uptime: 1h 15m
',$$P ,ggs. `$$b: Packages: 1672
`d$$' ,$P"' . $$$ Shell: zsh 5.7.1
$$P d$' , $$P Resolution: 1366x768
$$: $$. - ,d$$' DE: XFCE
$$\; Y$b._ _,d$P' WM: Xfwm4
Y$$. `.`"Y$$$$P"' WM Theme: JacWin10
`$$b "-.__ GTK Theme: Windows10 [GTK2]
`Y$$ Icon Theme: Faenza
`Y$$. Font: 文泉驿等宽微米黑 10
`$$b. CPU: Intel Core i5-3320M @ 4x 3.3GHz [54.0°C]
`Y$$b. GPU: intel
`"Y$b._ RAM: 5093MiB / 15741MiB
`""""
great thanks.
Related: vufa/deepin-wine-wechat-arch#4
1, 是我这里字体发虚,不知道需要什么字体,我的字体
apt search fonts-wqy
正在排序... 完成
全文搜索... 完成
fonts-wqy-microhei/stable,now 0.2.0-beta-3 all [已安装]
Sans-serif style CJK font derived from Droid
fonts-wqy-zenhei/stable,now 0.9.45-7 all [已安装]
"WenQuanYi Zen Hei" A Hei-Ti Style (sans-serif) Chinese font
xfonts-wqy/stable,now 1.0.0~rc1-6 all [已安装]
WenQuanYi Bitmap Song CJK font for X
2, 默认选中的那个适配窗口能不能外面配置开关不启用?我这里默认很大,更丑了
3, 打开以后,窗口放着不动,几秒以后,窗口拖动会卡,我的机器16g内存。ssd,不可能是机器问题的,平时开3个virtualbox都不卡顿。
4, 另外,输入法框框能否跟随? 这个和那个字体问题一样,让我很是郁闷
5, 默认的微信的表情,似乎不能识别。
I tried to run wechat with latest docker image, but failed.
$ docker run zixia/wechat
[DoChat] 盒装微信 v0.10.4
[DoChat] WeChat 2.7.1.88
[DoChat] Starting...
[DoChat] Found new version
[DoChat] WeChat.exe exited
The environment is: Ubuntu 18.04
root@ddb767bd49e8:/# ps axf
PID TTY STAT TIME COMMAND
1 pts/0 Ss 0:00 /bin/bash
9 pts/0 SLl 0:06 C:\Program Files\Tencent\WeChat\WeChat.exe
31 ? Ss 0:01 /usr/lib/wine/wineserver32 -p0
37 ? Ssl 0:00 C:\windows\system32\services.exe
40 ? Sl 0:00 C:\windows\system32\winedevice.exe
48 ? Sl 0:00 C:\windows\system32\plugplay.exe
50 pts/0 Sl 0:00 C:\windows\system32\explorer.exe /desktop
55 ? Sl 0:00 C:\windows\system32\winedevice.exe
218 pts/0 R+ 0:00 ps axf
WeChat.exe is doing the job.
0
234 ? Ss 0:01 C:\Program Files\Tencent\WeChat\WeChatUpdate.exe 1003
303 ? Ss 0:05 C:\Program Files\Tencent\WeChat\WeChatUpdate.exe 1001
The WeChatUpdate.exe will exit after the upgrading.
when i click close button of the right-top chatting window, the strange shadow disappeared.
os:
mmc@debian ~ $ screenfetch
_,met$$$$$gg. xxx@debian
,g$$$$$$$$$$$$$$$P. OS: Debian 10 buster
,g$$P"" """Y$$.". Kernel: x86_64 Linux 4.19.0-8-amd64
,$$P' `$$$. Uptime: 1h 15m
',$$P ,ggs. `$$b: Packages: 1672
`d$$' ,$P"' . $$$ Shell: zsh 5.7.1
$$P d$' , $$P Resolution: 1366x768
$$: $$. - ,d$$' DE: XFCE
$$\; Y$b._ _,d$P' WM: Xfwm4
Y$$. `.`"Y$$$$P"' WM Theme: JacWin10
`$$b "-.__ GTK Theme: Windows10 [GTK2]
`Y$$ Icon Theme: Faenza
`Y$$. Font: 文泉驿等宽微米黑 10
`$$b. CPU: Intel Core i5-3320M @ 4x 3.3GHz [54.0°C]
`Y$$b. GPU: intel
`"Y$b._ RAM: 5093MiB / 15741MiB
`""""
There is a small black block about wine in the middle of the screen,which cannot be turned off
There are several issues listed below:
We should install WeChat PC from Tencent's official website instead of unpacking from a binary package when building Dockerfile because install unpacked binary might make some peoples not very comfortable.
According to the WeChat Term of Service: https://www.wechat.com/en/service_terms.html
You may not copy, modify, create derivative works, reverse compile, reverse engineer or extract source codes from WeChat Software, and you may not sell, distribute, redistribute or sublicense WeChat or the WeChat Software, except in each case to the extent that we may not prohibit you from doing so under applicable laws or regulations or you have our prior written consent to do so. Where applicable laws or regulations entitle you to reverse compile or extract source codes from WeChat Software, you will first contact us to request the information you need.
So if we want to distribute, redistribute the WeChat Software, we have to doing so under applicable laws or regulations or you have our prior written consent to do so.
curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \
> | DOCHAT_DEBUG=true bash
____ ____ _ _
| _ \ ___ / ___| |__ __ _| |_
| | | |/ _ \| | | '_ \ / _` | __|
| |_| | (_) | |___| | | | (_| | |_
|____/ \___/ \____|_| |_|\__,_|\__|
https://github.com/huan/docker-wechat
+--------------+
/| /|
/ | / |
*--+-----------* |
| | | |
| | 盒装 | |
| | 微信 | |
| +-----------+--+
| / | /
|/ |/
*--------------*
DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:
📦 a Docker image
🤐 for running PC Windows WeChat
💻 on your Linux desktop
💖 by one-line of command
🚀 Pulling the docker image...
2.7.1.85: Pulling from zixia/wechat
Digest: sha256:e6e9d21c7cd1dfae0484e697f12f5f3c401de2f02e771d061868740e0d26549d
Status: Image is up to date for zixia/wechat:2.7.1.85
docker.io/zixia/wechat:2.7.1.85
🚀 Pulling the docker image done.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...
++ id -u
+ '[' 0 -ne 0 ']'
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 1000 '!=' 1000 ']'
++ id -u user
+ '[' 1000 '!=' 1000 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user:group /entrypoint.sh
++ id -u
+ '[' 1000 -ne 0 ']'
+ '[' -n true ']'
+ wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat'
reg��ϵͳ���ҵ�ָ����ע��������ֵ
Register for Wechat not found ?
+ echo 'Register for Wechat not found ?'
+ exec wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'
📦 DoChat Exited with code [0]
🐞 Bug Report: https://github.com/huan/docker-wechat/issues
I am running on Ubuntu 16.04 LTS and using dochat.sh
+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 1001 '!=' 1000 ']'
+ groupmod -o -g 1001 group
++ id -u user
+ '[' 1001 '!=' 1000 ']'
+ usermod -o -u 1001 user
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 1001 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
[DoChat] 盒装微信 v0.5.2
+ VERSION=0.5.2
+ echo '[DoChat] 盒装微信 v0.5.2'
+ disableUpgrade
+ wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f
Need to change line 92 from
-v "$HOME/DoChat/WeChat Files/":'/home/user/WeChat Files/' \
to
-v "$HOME/DoChat/WeChat Files/":'/home/user/My Documents/WeChat Files/' \
or WeChat will not be able to store files
NAME="openSUSE Leap"
VERSION="15.1"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.1"
PRETTY_NAME="openSUSE Leap 15.1"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
Client:
Version: 19.03.1
API version: 1.40
Go version: go1.12.6
Git commit: 74b1e89e8ac6
Built: Fri Jul 26 12:00:00 2019
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 19.03.1
API version: 1.40 (minimum version 1.12)
Go version: go1.12.6
Git commit: 74b1e89e8ac6
Built: Fri Jul 26 12:00:00 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.2.6
GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc:
Version: 1.0.0-rc8
GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
docker-init:
Version: 0.1.3_catatonit
GitCommit:
🚀 Starting DoChat /dɑɑˈtʃæt/ ...
+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 492 ']'
+ groupmod -o -g 492 audio
+ '[' -n 484 ']'
+ groupmod -o -g 484 video
++ id -g user
+ '[' 100 '!=' 1000 ']'
+ groupmod -o -g 100 group
++ id -u user
+ '[' 1000 '!=' 1000 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 1000 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
+ VERSION=0.5.3
+ echo '[DoChat] 盒装微信 v0.5.3'
+ disableUpgrade
[DoChat] 盒装微信 v0.5.3
+ wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f
+ CONFIG_EX_INI_FILE='/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini'
+ '[' -e '/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini' ']'
+ setupFontDpi
+ DELETE_KEYS=('HKEY_CURRENT_USER\Control Panel\Desktop' 'HKEY_CURRENT_USER\Software\Wine\Fonts')
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Control Panel\Desktop' /v LogPixels /f
+ true
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Software\Wine\Fonts' /v LogPixels /f
+ wine reg ADD 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts' /v LogPixels /t REG_DWORD /d 120 /f
+ '[' -n true ']'
+ wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat'
HKEY_CURRENT_USER\Software\Tencent\WeChat
NeedUpdateType REG_DWORD 0x0
+ true
+ echo '[DoChat] Starting...'
+ '[' -n true ']'
[DoChat] Starting...
+ wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'
And exited with code 5 .
OS: Manjaro 19.0.2 Kyria
Kernel: x86_64 Linux 5.4.28-1-MANJARO
shell: fish 3.1.0
Resolution: 1366x768
VM:i3
DEBUG_LOG:
++ id -u
Hi, my laptop is small, the default option of wechat makes everything too big, and could you please make it as an option that user can set manually? thank you very much!
os:
mmc@debian ~ $ screenfetch
_,met$$$$$gg. xxx@debian
,g$$$$$$$$$$$$$$$P. OS: Debian 10 buster
,g$$P"" """Y$$.". Kernel: x86_64 Linux 4.19.0-8-amd64
,$$P' `$$$. Uptime: 1h 15m
',$$P ,ggs. `$$b: Packages: 1672
`d$$' ,$P"' . $$$ Shell: zsh 5.7.1
$$P d$' , $$P Resolution: 1366x768
$$: $$. - ,d$$' DE: XFCE
$$\; Y$b._ _,d$P' WM: Xfwm4
Y$$. `.`"Y$$$$P"' WM Theme: JacWin10
`$$b "-.__ GTK Theme: Windows10 [GTK2]
`Y$$ Icon Theme: Faenza
`Y$$. Font: 文泉驿等宽微米黑 10
`$$b. CPU: Intel Core i5-3320M @ 4x 3.3GHz [54.0°C]
`Y$$b. GPU: intel
`"Y$b._ RAM: 5093MiB / 15741MiB
`""""
The WeChat PC said there's no audio device when it needs to play any audio.
However, the winecfg
can configure sounds and t also can play sound without any problem.
To be fixed.
I have try run on my archlinux, but it has an error with it.
OS
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux
Start log
+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 995 ']'
+ groupmod -o -g 995 audio
+ '[' -n 986 ']'
+ groupmod -o -g 986 video
++ id -g user
+ '[' 1000 '!=' 1000 ']'
++ id -u user
+ '[' 1000 '!=' 1000 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 1000 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
+ VERSION=0.7.0
+ echo '[DoChat] 盒装微信 v0.7.0'
[DoChat] 盒装微信 v0.7.0
+ disableUpgrade
+ wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f
+ CONFIG_EX_INI_FILE='/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini'
+ '[' -e '/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini' ']'
+ setupFontDpi
+ DELETE_KEYS=('HKEY_CURRENT_USER\Control Panel\Desktop' 'HKEY_CURRENT_USER\Software\Wine\Fonts')
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Control Panel\Desktop' /v LogPixels /f
+ true
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Software\Wine\Fonts' /v LogPixels /f
+ wine reg ADD 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts' /v LogPixels /t REG_DWORD /d 120 /f
+ '[' -n true ']'
+ unset WINEDEBUG
+ wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat'
HKEY_CURRENT_USER\Software\Tencent\WeChat
NeedUpdateType REG_DWORD 0x0
[DoChat] DISPLAY=:0
[DoChat] Starting...
+ echo '[DoChat] DISPLAY=:0'
+ true
+ echo '[DoChat] Starting...'
+ '[' -n true ']'
+ wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'
0040:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
[0229/150228:INFO:exception_record.cc(518)] [QB]Process ID: 50 Type: 1
[0229/150228:ERROR:network_change_notifier_win.cc(156)] WSALookupServiceBegin failed with: 8
Docker version 19.03.8
zixia/wechat:2.9.0.114
$ wine home/user/.wine/drive_c/Program\ Files/Tencent/WeChat/WeChat.exe
[0426/191233:INFO:exception_record.cc(518)] [QB]Process ID: 8 Type: 1
[0426/191233:ERROR:network_change_notifier_win.cc(156)] WSALookupServiceBegin failed with: 8
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 628
Current serial number in output stream: 627
$ glxinfo
name of display: :1
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 63
Current serial number in output stream: 62
Maybe it's related to #29
Thank you!
请问docker run 之后一气呵成自动结束exit是怎么回事呀,是我的问题吗?
[DoChat] 盒装微信 v0.10.3
[DoChat] WeChat 2.8.0.121
[DoChat] Starting...
[DoChat] Found new version
[DoChat] WeChat.exe exited
我用的是:
docker run \
--name DoChat \
--rm \
-i \
\
-v "$HOME/DoChat/WeChat Files/":'/home/user/WeChat Files/' \
-v "$HOME/DoChat/Applcation Data":'/home/user/.wine/drive_c/users/user/Application Data/' \
-v /tmp/.X11-unix:/tmp/.X11-unix \
\
-e DISPLAY \
\
-e XMODIFIERS=@im=fcitx \
-e GTK_IM_MODULE=fcitx \
-e QT_IM_MODULE=fcitx \
-e GID="$(id -g)" \
-e UID="$(id -u)" \
\
--ipc=host \
--privileged \
\
zixia/wechat
I just install Ubuntu 19.10 inside Vmware
and run docker.io
use your dochat.sh
then it keep looping this error
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 0 '!=' 0 ']'
++ id -u user
+ '[' 0 '!=' 0 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
^C+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 0 '!=' 0 ']'
++ id -u user
+ '[' 0 '!=' 0 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
I have try to run it on my mac,but some Linux commond not found in macos
bash: line 75: getent: command not found bash: line 75: getent: command not found [DoChat] 盒装微信 v0.7.0 FAIL: "reg add HKEY_CURRENT_USER\Software\Tencent\WeChat /v NeedUpdateType /d 0"
default 120 DPI (125%)
my fonts info
apt search fonts-wqy
正在排序... 完成
全文搜索... 完成
fonts-wqy-microhei/stable,now 0.2.0-beta-3 all [已安装]
Sans-serif style CJK font derived from Droid
fonts-wqy-zenhei/stable,now 0.9.45-7 all [已安装]
"WenQuanYi Zen Hei" A Hei-Ti Style (sans-serif) Chinese font
xfonts-wqy/stable,now 1.0.0~rc1-6 all [已安装]
WenQuanYi Bitmap Song CJK font for X
os info:
mmc@debian ~ $ screenfetch
_,met$$$$$gg. xxx@debian
,g$$$$$$$$$$$$$$$P. OS: Debian 10 buster
,g$$P"" """Y$$.". Kernel: x86_64 Linux 4.19.0-8-amd64
,$$P' `$$$. Uptime: 1h 15m
',$$P ,ggs. `$$b: Packages: 1672
`d$$' ,$P"' . $$$ Shell: zsh 5.7.1
$$P d$' , $$P Resolution: 1366x768
$$: $$. - ,d$$' DE: XFCE
$$\; Y$b._ _,d$P' WM: Xfwm4
Y$$. `.`"Y$$$$P"' WM Theme: JacWin10
`$$b "-.__ GTK Theme: Windows10 [GTK2]
`Y$$ Icon Theme: Faenza
`Y$$. Font: 文泉驿等宽微米黑 10
`$$b. CPU: Intel Core i5-3320M @ 4x 3.3GHz [54.0°C]
`Y$$b. GPU: intel
`"Y$b._ RAM: 5093MiB / 15741MiB
`""""
Only a blank page can be shown.
It's mainly because the Gecko is not working as expected, so is the iexplorer.exe.
Needs to be fixed.
硬件:Nvidia Jetson Nano
系统:Ubuntu 18.04 LTS
架构:Arm64
输出:
nano@jetsonnano:~/Desktop$ sudo bash dochat.sh
____ ____ _ _
| _ \ ___ / ___| |__ __ _| |_
| | | |/ _ \| | | '_ \ / _` | __|
| |_| | (_) | |___| | | | (_| | |_
|____/ \___/ \____|_| |_|\__,_|\__|
https://github.com/huan/docker-wechat
+--------------+
/| /|
/ | / |
*--+-----------* |
| | | |
| | 盒装 | |
| | 微信 | |
| +-----------+--+
| / | /
|/ |/
*--------------*
DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:
📦 a Docker image
🤐 for running PC Windows WeChat
💻 on your Linux desktop
💖 by one-line of command
🚀 Pulling the docker image...
2.7.1.85: Pulling from zixia/wechat
Digest: sha256:e6e9d21c7cd1dfae0484e697f12f5f3c401de2f02e771d061868740e0d26549d
Status: Image is up to date for zixia/wechat:2.7.1.85
docker.io/zixia/wechat:2.7.1.85
🚀 Pulling the docker image done.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...
standard_init_linux.go:211: exec user process caused "exec format error"
Debian amd64 10.3.0
Docker version 19.03.8, build afacb8b7f0
我用了命令 "curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | sudo bash".如果没sudo的话,报错显示权限不够.
但是加上sudo,就出现这个结果.
____ ____ _ _ | _ \ ___ / ___| |__ __ _| |_ | | | |/ _ \| | | '_ \ / _
| |
| || | () | || | | | (| | |_
|/ _/ _|| ||_,|_|
https://github.com/huan/docker-wechat
+--------------+
/| /|
/ | / |
*--+-----------* |
| | | |
| | 盒装 | |
| | 微信 | |
| +-----------+--+
| / | /
|/ |/
*--------------*
DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:
📦 a Docker image
🤐 for running PC Windows WeChat
💻 on your Linux desktop
💖 by one-line of command
🚀 Pulling the docker image...
2.7.1.85: Pulling from zixia/wechat
93956c6f8d9e: Pull complete
46bddb84d1c5: Pull complete
15fa85048576: Pull complete
8aa40341c4fa: Pull complete
1e85f9d3a0e2: Pull complete
1e7ba6fed8ef: Downloading [==================================================>] 141.2MB/141.2MB
522c0a74c4cc: Download complete
bb6c04ebadfd: Download complete
2d5b3070ed76: Downloading [==================================================>] 65.85MB/65.85MB
375ed383c7a8: Download complete
4e20fedae17a: Download complete
517d52506e35: Download complete
be64ac073317: Download complete
unexpected EOF
`
Ran the following commands on openSUSE Tumbleweed and got the wechat window.
xhost +
curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | DOCHAT_DEBUG=true bash
But after clicking the button, the window disappeared and the container hanged after logging the following messages.
0043:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
[0302/071923:INFO:exception_record.cc(518)] [QB]Process ID: 49 Type: 1
[0302/071923:ERROR:network_change_notifier_win.cc(156)] WSALookupServiceBegin failed with: 8
Re-runing the command generates the same messages and the window does not show up anymore.
Whatever the value of DOCHAT_DPI
set, there is no change for the UI. See below picture, I set DOCHAT_DPI= 144
, the display is not clear.
VERSION=2.7.1.85
NAME="openSUSE Leap"
VERSION="15.1"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.1"
Tried VERSION=2.8.0.121, this is no DPI problem, but has other problems.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.