installing wine 1.3.1 in slackware 13.1

here is how to install and configure wine 1.3.1 from source with additional configurations for nVidia card owners.
download the source here.

open up the tarball:
tar -jvxf wine-1.3.1.tar.bz2

cd into the newly created directory:
cd wine-1.3.0

configure and make dependencies:
./configure --with-x && make depend && make

install wine you may need to sudo this one
make install

create the .wine directory in your home folder:

install winetricks for additional .dll’s:
cd .wine/

make winetricks executable:
sudo chmod +x ./winetricks

install additional .dll’s using winetricks:
./winetricks d3dx9 droid winxp sound=alsa volnum vcrun2008 dotnet20 ie6 corefonts

recommended for nvidia card users: for the physx gaming engine – make sure your card is supported
./winetricks physx

now, after you have done all this, there is still more to do in order to properly configure wine:

configure the wine registry for windows gaming:
wine regedit

browse to HK_CURRENT_USER/Software/Wine/ and add a new key named Direct3D. then add the following strings and values:

string value
DirectDrawRenderer opengl
Nonpower2Mode repack
OffscreenRenderingMode fbo
RenderTargetLockMode auto
UseGLSL readtex
VertexShaderMode hardware
VideoDescription NVIDIA GeForce GT 220
VideoDriver nv4_disp.dll
VideoMemorySize 1024

no images were found


you can add it manually as shown above, or, copy and paste the following to a graphics.reg file and import it to wines registry.


"VideoDescription"="NVIDIA GeForce GT 220"


enable support for misc binaries:

edit /etc/rc.d/rc.modules and uncomment the following line:

/sbin/modprobe binfmt_misc

then add the following to /etc/fstab:

none /proc/sys/fs/binfmt_misc binfmt_misc defaults 0 0

now add the following to /etc/rc.d/rc.local”:
echo ':windows:M::MZ::/path/to/wine:' > /proc/sys/fs/binfmt_misc/register
echo ':windowsPE:M::PE::/path/to/wine:' > /proc/sys/fs/binfmt_misc/register

now reboot the machine