WINE for 32/64bit FreeBSD

Configuration

by ross at 09:32:28 on July 27, 2015

Initialize

Initialize Wine by runninig winecfg as your regular user.

Go to Drives tab and add /media/cdrom as drive D: (cdrom type). Now you can mount cdrom or an iso image and it will be available to Wine programs.

Quit winecfg.

If you do not like the font rendering try this patch:

> http://daemon-notes.com/downloads/assets/misc/wine-fix-fonts.reg
> wine regedit wine-fix-fonts.reg

Start winecfg again to test the new rendering.

Winetricks

# cd /usr/local/bin
# fetch https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
# chmod +x winetricks

Get some basic libraries:

> rehash
> winetricks corefonts vcrun6

Install Steam

> winetricks steam

Steam in separate X Window server

This will improve performance. Create a wrapper:

#!/bin/sh

X :2 -ac -terminate & 
pid=$!
sleep 3

export DISPLAY=:2
export WINEDEBUG=fixme-all
export WINEPREFIX="$HOME/.local/share/wineprefixes/steam"

xbindkeys&

cd "$WINEPREFIX/drive_c/Program Files/Steam"
wine Steam.exe

kill $pid

chmod it to be executable for everyone and start it.

Delete everything

If you ever want to delete everything and start over:

> cd $HOME
> rm -rf .wine
> rm -rf .cache/wine*
> rm -rf .local/share/wineprefixes
> rm -rf .local/share/applications/wine*
> rm -rf .config/menus/applications-merged/wine*
> rm -rf .local/share/desktop-directories/wine*
> rm -rf .local/share/icons/????_*.{xpm,png}
> rm -rf .local/share/icons/*-x-wine-*.{xpm,png}

Now run winecfg again and repeat the installation of programs.

Comments