Yanyg - Software Engineer

Wine使用记录

目录

1 Install WineHQ

See https://wiki.winehq.org/Download.

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key

Add winehq to sources.list:

~$ sudo vi /etc/apt/sources.list
# append follow line
deb https://dl.winehq.org/wine-builds/debian/ buster main

Install:

~$ sudo dpkg --add-architecture i386
~$ sudo apt update
~$ sudo apt install --install-recommends winehq-stable

Add env WINEPREFIX and WINEARCH:

~$ cat ~/.bashrc
...
export WINEARCH=win32
export WINEPREFIX=$HOME/.wine32

Re-login terminal and ensure the env is set properly

[yanyg@x1{192.168.1.109} ~ ]
$ echo $WINEARCH
win32
[yanyg@x1{192.168.1.109} ~ ]
$ echo $WINEPREFIX
/home/yanyg/.wine32

Write a start script:

~$ cat ~/bin/ms
#! /bin/bash
(
    kill -9 $(ps auxf | grep "C:.*exe" | grep -v grep |
                  sed "s/^$USER \+//; s/ .*//")
    [ -n "$1" ] && exit 1
    sleep 0.2
    XSIZE=$(xdpyinfo | grep dimensions | awk '{print $2}' 2>/dev/null)
    LC_ALL=zh_CN.UTF-8 Exec=env WINEARCH=win32 \
          WINEPREFIX="/home/yanyg/.wine32" \
          wine explorer /desktop=mywine,$XSIZE
) >/tmp/mywine.log 2>&1 &

Executes ms to start/restart Windows and ms 1 to stop Windows.

2 Install winetricks

Do not use apt to install winetricks because it's always has wrong link address.

Always use latest version: https://github.com/Winetricks/winetricks For git user:

~$ git clone https://github.com/Winetricks/winetricks.git
~$ cd winetricks && sudo make install

Or download zip tar ball in the same above site, uncompress and install.

Install riched20 so we can input in WeChat or other Apps.

~$ winetricks riched20

Set ddr=gdi for NetEaseCloudMusic(网易云音乐):

# Please ensure WINEARCH and WINEPREFIX is set properly
~$ winetricks ddr=gdi

3 Install WeChat(微信)

Download WeChat: https://pc.weixin.qq.com/ Install with default option:

# Please ensure WINEARCH and WINEPREFIX is set properly
~$ wine Downloads/WeChatSetup.exe

4 Install NetEaseCloudMusic(网易云音乐)

Download intall package: https://music.163.com/#/download Install with default option:

# Please ensure WINEARCH and WINEPREFIX is set properly
~$ wine Downloads/cloudmusicsetup2.7.5.198554.exe

Suggest to use native netease for cpu usage.

5 Run ms demo

ms-demo.png

6 Install youku

  • Misc errors
yanyg@t430:~/Videos$ wine ~/Downloads/youkuclient_setup_8.0.7.11061.exe
01af:fixme:wininet:query_global_option INTERNET_OPTION_CONNECTED_STATE: semi-stub
01af: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 th
e winbind package of your distribution.
008d:fixme:urlmon:InternetBindInfo_GetBindString not supported string type 20
008d:fixme:urlmon:InternetBindInfo_GetBindString not supported string type 20
008d:fixme:ieframe:PersistStorage_InitNew (00897690)->(003B3048)
008d:fixme:dwmapi:DwmIsCompositionEnabled 0E66DD14
0187:fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0xadef537, context 0x534dd0, init_notify 0, handle 0xf3bfce8): stub
008d:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
008d:fixme:imm:ImmGetDescriptionW (04090409, 00000000, 0): semi stub
008d:fixme:imm:ImmGetDescriptionW (04090409, 11A455D0, 9): semi stub
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032C3A0)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032C380)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032C3A0)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032C380)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032BA80)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032BA60)
008d:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
008d:fixme:ieframe:BrowserService_GetTravelLog 00898980 0032CA40
008d:fixme:ieframe:ClientSite_GetContainer (00897760)->(0032CB2C)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032B0D0)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032B0B0)
008d:fixme:ieframe:ClientSite_GetContainer (00897760)->(0032DDDC)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032C7A0)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032C780)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032C7A0)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032C780)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032C7A0)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032C780)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032C740)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032C720)
008d:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (0A86EA38)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0032C740)
  • winetricks install relative dlls
yanyg@t430:~/hub/winetricks$ winetricks dlls list | grep msctf
msctf                    MS Text Service Module (Microsoft, 2003) [downloadable]
~$ winetricks dlls msctf
~$ winetricks dlls wininet
~$ winetricks dlls urlmon
~$ winetricks dlls ie8
  • Install again and passed