0%

wine tricks

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
2
$ sudo dpkg --add-architecture i386
$ sudo apt-get update

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
2
$ mkdir -p ~/.wine
$ mkdir -p ~/.wine32

we can switch between these 2 different location by setting WINEPREFIX and WINEARCH environment variables.

1
2
3
$ export WINEARCH=win32
$ export WINEPREFIX=~/.wine32
$ winecfg

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