首先你需要在你的Linux上安装wine。

建议编译安装。

安装依赖的库

╭─root at kali in ~ using
╰─○ apt-get install flex bison qt4-qmake

╭─root at kali in ~ using
╰─○ apt-get install libfreetype6-dev

╭─root at kali in ~ using
╰─○ apt-get install libjpeg-dev libpng-dev libxslt-dev libxml2-dev

╭─root at kali in ~ using
╰─○ apt-get install libxrender-dev

╭─root at kali in ~ using
╰─○ apt-get install libgl1-mesa-dev

╭─root at kali in ~ using
╰─○ apt-get install libglu1-mesa-dev

╭─root at kali in ~ using
╰─○ apt-get install freeglut3-dev

╭─root at kali in ~ using
╰─○ apt-get install prelink

╭─root at kali in ~ using
╰─○ apt-get install libasound2-dev

到官方下载源码:

╭─root at kali in ~ using
╰─○ wget https://dl.winehq.org/wine/source/3.0/wine-3.0-rc1.tar.xz

╭─root at kali in ~ using
╰─○ tar xvf wine-3.0-rc1.tar.xz

╭─root at kali in ~ using
╰─○ cd wine-3.0-rc1

╭─root at kali in ~/wine-3.0-rc1 using
╰─○ ./configure --enable-win64

╭─root at kali in ~/wine-3.0-rc1 using
╰─○ make

╭─root at kali in ~/wine-3.0-rc1 using
╰─○ make install

╭─root at kali in ~/wine-3.0-rc1 using
╰─○ wine64 -v

第一次启动需要做些调整。

因为wine刚刚安装好后是乱码的我们要将Windows上的simsun.ttc复制到Linux上的/.wine/drive-c/windows/fonts/目录下。

╭─root at kali in ~/wine-3.0-rc1 using╰─○ winecfg

没乱码了

创建一个wine的链接,不然会有很多指令无法使用

╭─root at kali in ~/wine-3.0-rc1 using
╰─○ ln -s /usr/local/bin/wine64 /usr/local/bin/wine

建立一个1.reg

╭─root at kali in ~/wine-3.0-rc1 using
╰─○ vim 1.reg

输入以下内容

REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial"="simsun"
"Arial CE,238"="simsun"
"Arial CYR,204"="simsun"
"Arial Greek,161"="simsun"
"Arial TUR,162"="simsun"
"Courier New"="simsun"
"Courier New CE,238"="simsun"
"Courier New CYR,204"="simsun"
"Courier New Greek,161"="simsun"
"Courier New TUR,162"="simsun"
"FixedSys"="simsun"
"Helv"="simsun"
"Helvetica"="simsun"
"MS Sans Serif"="simsun"
"MS Shell Dlg"="simsun"
"MS Shell Dlg 2"="simsun"
"System"="simsun"
"Tahoma"="simsun"
"Times"="simsun"
"Times New Roman CE,238"="simsun"
"Times New Roman CYR,204"="simsun"
"Times New Roman Greek,161"="simsun"
"Times New Roman TUR,162"="simsun"
"Tms Rmn"="simsun"

保存退出

使用regedit来导出注册表。

╭─root at kali in ~ using
╰─○ regedit 1.reg

然后基本的配置就设置完了。

╭─root at kali in ~ using
╰─○ apt install winetricks

╭─root at kali in ~ using
╰─○ winetricks

安装vc运行库,和一些常用的dll就完成了。

0

正因为生来什么都没有,因此我们能拥有一切。