Here are some keynotes from wine usage.
installation
unlike windows, 32 bit exe binary (PE/COFF) cannot be executed under 64 bit wine system.
on ubuntu, apt package manager provides both 32-bits and 64-bits binary.
1 | $ sudo dpkg --add-architecture i386 |
but on centos, since version7, only wine x86-64 will be installed through yum install wine
thus we need to build from source to get wine 32-bit working.
reference this script https://github.com/zma/usefulscripts/blob/master/script/install-wine-5.0-centos7.sh
to build from source
assitant tools
winecfg is included in wine package
winetricks could be downloaded here https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
Switch between 32 and 64 bits
1 | $ mkdir -p ~/.wine |
we can switch between these 2 different location by setting WINEPREFIX and WINEARCH environment variables.
1 | $ export WINEARCH=win32 |
above will create the 32-bit wine system under ~/.wine32.
by unset WINEARCH
and unset WINEPREFIX
will return to 64-bit wine system under ~/.wine
customize
1 change windows theme by using winecfg (theme package could be downloaded from Internet)
2 display chinese
* install chinese fonts by using winetricks
* change locale by running wine: LC_ALL=zh_CN wine xxx