Outils personnels
Vous êtes ici : Accueil GNU / Linux Installer DirectX 9.0c avec Wine
Actions sur le document
  • Send this page to somebody
  • Print this page
  • Add Bookmarklet

Install DirectX 9.0c on Linux using Wine

Par Pierre-Yves Landuré - Dernière modification 09/03/2009 12:48

Wine is a implementation of Windows API on Linux. Even if it is quite complete, it still miss some DirectX functionalities. This article present how to add this missing functionalities by installing native DirectX 9.0c in your Wine environment.

Warning

It seems that many people have problems following this guide. So we sure that you are using the last version of Wine.

For Ubuntu 8.04 Hardy Heron, use :

sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/hardy-winehq.list
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
sudo apt-get update

For Ubuntu 7.10 Gutsy Gibbon, use :

sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/gutsy-winehq.list
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
sudo apt-get update

You will now be able to install the last version of Wine with apt-get.

Wine environment setup

First, we install needed softwares:

/usr/bin/sudo /usr/bin/apt-get install wine cabextract wget

We create the Wine environment folder:

/usr/bin/wineprefixcreate

We configure the sound so that Wine use ALSA:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/audio.reg \
--output-document=/tmp/audio.reg
/usr/bin/regedit /tmp/audio.reg

Video memory amount setup

We must tell Wine the amount of Video memory present on our graphic adapter. First, download the template registry file:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/video_ram.reg \
--output-document=/tmp/video_ram.reg

We update the template with a auto-detected value that should fit to our system (if you have more than 256 MB of Video memory, the auto-detected value will only be of 256 MB):

/usr/bin/lspci | /bin/grep VGA | /bin/sed -e 's/^\([^ ]* \).*/\1/' \
| /usr/bin/xargs -iPCIID /bin/sh -c "/usr/bin/lspci -v -s PCIID" \
 | /bin/grep Memory | /bin/sed -e 's/.*size=\([0-9]*\).*/\1/' \
 | /usr/bin/sort -g | /usr/bin/tail -n1 \
| /usr/bin/xargs -iVIDEORAM /bin/sed -i -e 's/VIDEO_RAM/VIDEORAM/' /tmp/video_ram.reg

And we insert the corresponding registry key into Wine registry:

/usr/bin/regedit /tmp/video_ram.reg

DOS memory space access

In Ubuntu 8.04 Hardy Heron, access to the beginning of memory space is disabled for security reasons. For some old games (Caesar III for exemple), this access is needed. To allow access to this memory area, une these command lines:

/usr/bin/sudo /bin/cp /etc/sysctl.conf /etc/sysctl.conf.back
/usr/bin/sudo /bin/sed -i -e 's/^\(vm.mmap_min_addr =\) .*/\1 0/' /etc/sysctl.conf
/usr/bin/sudo /sbin/sysctl -p

DirectX installation

Once Wine configured, we download some files needed to install DirectX:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/mscoree.dll \
--output-document=$HOME/.wine/drive_c/windows/system32/mscoree.dll
/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/streamci.dll \
--output-document=$HOME/.wine/drive_c/windows/system32/streamci.dll
/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/gm.dls \
--output-document=$HOME/.wine/drive_c/windows/system32/drivers/gm.dls

And we register DirectX DLLs as native in the registry:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/directx.reg \
--output-document /tmp/directx.reg
/usr/bin/regedit /tmp/directx.reg

We download DirectX 9.0c installer:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/directx_mar2008_redist.exe \
--output-document=/tmp/directx_redist.exe

We extract its contents:

/bin/mkdir $HOME/.wine/drive_c/DIRECTX
/usr/bin/cabextract -d $HOME/.wine/drive_c/DIRECTX /tmp/directx_redist.exe

And we install DirectX 9 :

/usr/bin/wine "C:\DIRECTX\DXSETUP.exe"

You can now test your installation by running dxdiag:

/usr/bin/wine "C:\windows\system32\dxdiag.exe"

Note: The test is to actually run dxdiag, don't expect all tests runned by this software to work.

Once the install done and tested, we can do a little clean up:

/bin/rm /tmp/directx_redist.exe
/bin/rm -r $HOME/.wine/drive_c/DIRECTX

HTML renderer install

This step is mandatory for installing Source games (Half-Life 2, Counter Strike, etc...):

First, download WineTricks :

/usr/bin/wget http://www.kegel.com/wine/winetricks \
--output-document=$HOME/.wine/winetricks

Then install Gecko HTML render with this command line:

/bin/sh $HOME/.wine/winetricks gecko

Now, test your installation with:

/usr/bin/wine "C:\Program Files\Internet Explorer\IEXPLORE.EXE" http://appdb.winehq.com/

Active Movie installation

Active Movie is needed for displaying video for some games. First, dowload the DLL file needed to install this software:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/dciman32.dll \
--output-document=$HOME/.wine/drive_c/windows/system32/dciman32.dll

And download the Active Movie installer:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/amov4ie.exe \
     --output-document=/tmp/amov4ie.exe

Install Active Movie:

/usr/bin/wine /tmp/amov4ie.exe

And configure wine to use natively the amstream DLL:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/amstream.dll \
--output-document=$HOME/.wine/drive_c/windows/system32/amstream.dll
/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/active_movie.reg \
--output-document=/tmp/active_movie.reg
/usr/bin/regedit /tmp/active_movie.reg

And registrer this DLL in the registry:

/usr/bin/regsvr32 "c:\windows\system32\amstream.dll"

QuickTime installation

QuickTime is needed to display videos in some games, such as Myst, RHEM 2, etc. First, download the QuickTime 6.5.2 installer:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/quicktimefullinstaller-6-5-2.exe \
--output-document=/tmp/quicktimefullinstaller-6-5-2.exe

And run it:

/usr/bin/wine /tmp/quicktimefullinstaller-6-5-2.exe
At the end of the install, your screen black out (at least, it is what it does on my computer). Don't worry, it is a little display bug. We are going to solve it. Launch the QuickTime settings software:
/usr/bin/wine "c:\windows\system32\rundll32.exe" shell32.dll,Control_RunDLL QuickTime.cpl

And change the following parameters:

  • In section "Browser Plug-in", uncheck "QuickTime system tray icon".
  • In section "Video Settings", choose "Save Mode (GDI Only)".

You can now close the QuickTime settings.

Internet Explorer 6 installation

Warning: This is NOT recommanded. It is there because I need it for testing.

First, move the files that can create problems when installing:

/bin/mv $HOME/.wine/drive_c/Program\ Files/Internet\ Explorer/iexplore.exe $HOME/.wine/drive_c/Program\ Files/Internet\ Explorer/iexplore.exe.back
/bin/mv $HOME/.wine/drive_c/windows/system32/mshtml.dll $HOME/.wine/drive_c/windows/system32/mshtml.dll.back
/bin/mv $HOME/.wine/drive_c/windows/system32/shdoclc.dll $HOME/.wine/drive_c/windows/system32/shdoclc.dll.back
/bin/mv $HOME/.wine/drive_c/windows/system32/shdocvw.dll $HOME/.wine/drive_c/windows/system32/shdocvw.back
/bin/mv $HOME/.wine/drive_c/windows/system32/shlwapi.dll $HOME/.wine/drive_c/windows/system32/shlwapi.dll.back
/bin/mv $HOME/.wine/drive_c/windows/system32/urlmon.dll $HOME/.wine/drive_c/windows/system32/urlmon.dll.back
/bin/mv $HOME/.wine/drive_c/windows/system32/wininet.dll $HOME/.wine/drive_c/windows/system32/wininet.dll.back

And setup the registry keys needed for the install to run correctly:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/ie6.reg \
--output-document=/tmp/ie6.reg
/usr/bin/regedit /tmp/ie6.reg

We download the Internet Explorer 6 installer, and we run it:

/usr/bin/wget http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/ie6setup.exe \
--output-document=$HOME/.wine/drive_c/ie6setup.exe
/usr/bin/wine "C:\ie6setup.exe"

Now, we register the newly installed DLLs (you need to repeat two times the same command):

for i in $HOME/.wine/drive_c/windows/system32/*.dll $HOME/.wine/drive_c/windows/system32/*.ocx; do /usr/bin/regsvr32 /i $i; done
for i in $HOME/.wine/drive_c/windows/system32/*.dll $HOME/.wine/drive_c/windows/system32/*.ocx; do /usr/bin/regsvr32 /i $i; done

Note: Ignore errors shown by this two commands.

Once this done, we install the msls31.dll file:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/msls31.dll \
--output-document=$HOME/.wine/drive_c/windows/system32/msls31.dll

You can now run Internet Explorer with this command line:

/usr/bin/wine iexplore.exe

Going deeper

If you want to go further into Wine configuration, I encourage you to read:

Games

Guild Wars

First, download the game installer:

/usr/bin/wget http://www.guildwars.com/downloads/gwsetup.zip \
--output-document=$HOME/.wine/drive_c/gwsetup.zip

Uncompress it:

/usr/bin/unzip -d $HOME/.wine/drive_c/ $HOME/.wine/drive_c/gwsetup.zip

Download the optimized settings for Guild Wars and add them to the Wine registry:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/guild_wars.reg \
--output-document /tmp/guild_wars.reg
/usr/bin/regedit /tmp/guild_wars.reg

Now, install Guild Wars:

/usr/bin/wine "C:\GwSetup.exe"

Once this install done, you can go slash some monsters :D (arrrgh, I'm waiting for Diablo III to show up !).

Civilization IV

First, download WineTricks:

/usr/bin/wget http://www.kegel.com/wine/winetricks \
--output-document=$HOME/.wine/winetricks

And use it to install Microsoft XML 3:

/bin/sh $HOME/.wine/winetricks msxml3
Then, install Civilization IV from the game CD-Rom. And download patch 1.74:
wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/civilization_iv_patch_v1-74_multi-langues_40669.exe \
--output-document=/tmp/civilization_iv_patch_v1.74_multi-langues_40669.exe

And install it:

/usr/bin/wine /tmp/civilization_iv_patch_v1.74_multi-langues_40669.exe

Steam

Steam allow you to install Half-Life 2, Counter Strike, etc. In order to make Steam work, you need the Gecko HTML renderer:

First, download WineTricks :

/usr/bin/wget http://www.kegel.com/wine/winetricks \
--output-document=$HOME/.wine/winetricks

And use it to install the Gecko HTML renderer:

/bin/sh $HOME/.wine/winetricks gecko
Download the Steam installer:
/usr/bin/wget http://steampowered.com/download/SteamInstall_French.msi \
--output-document=$HOME/.wine/drive_c/SteamInstall_French.msi

And run it:

/usr/bin/msiexec /i $HOME/.wine/drive_c/SteamInstall_French.msi

Once the install done, you can delete the Steam installer:

/bin/rm  $HOME/.wine/drive_c/SteamInstall_French.msi

You can now apply the registry settings for the Source engine (for Half-Life 2, Counter Strike, Source, Day of Defeat Source, Portal, etc...):

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/hl2.reg \
--output-document /tmp/hl2.reg
/usr/bin/regedit /tmp/hl2.reg

You can now install Half-Life 2, Counter Strike Source, Day of Defeat, Portal, etc...

Trackmania Nations Forever

To run Trackmania Nations Forever, first, apply registry settings for this game:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/tmforever.reg \
--output-document /tmp/tmforever.reg
/usr/bin/regedit /tmp/tmforever.reg

Once this done, install the game with Steam.

Once the installation done, replace the file wrap_oal.dll in order to get the sound to work:

/bin/mv $HOME/.wine/drive_c/Program\ Files/Steam/steamapps/common/trackmania\ nations\ forever/wrap_oal.dll $HOME/.wine/drive_c/Program\ Files/Steam/steamapps/common/trackmania\ nations\ forever/wrap_oal.dll.back
/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/wrap_oal.dll \
--output-document=$HOME/.wine/drive_c/Program\ Files/Steam/steamapps/common/trackmania\ nations\ forever/wrap_oal.dll

Crimson Skies

Crimson Skies needs you to install Active Movie. The install of this software is described earlier in this article.

You also need to install the native imm32 DLL:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/imm32.dll \
--output-document=$HOME/.wine/drive_c/windows/system32/imm32.dll
/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/cskies_install.reg \
--output-document=/tmp/cskies_install.reg
/usr/bin/regedit /tmp/cskies_install.reg

Once this done, install the game from the CD-Rom with this command line:

/usr/bin/wine /media/C_SKIES/install.exe

And download a NO-CD patch, the game can not work without it:

/bin/mv $HOME/.wine/drive_c/Program\ Files/Microsoft\ Games/Crimson\ Skies/crimson.exe $HOME/.wine/drive_c/Program\ Files/Microsoft\ Games/Crimson\ Skies/crimson.exe.back
/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/crimson.exe \
--output-document=$HOME/.wine/drive_c/Program\ Files/Microsoft\ Games/Crimson\ Skies/crimson.exe

Now, we copy some files from the CD-ROM so that we can run the game without errors:

/bin/mkdir $HOME/.wine/drive_c/Program\ Files/Microsoft\ Games/Crimson\ Skies/LAUNCHER
/bin/cp /media/C_SKIES/install.exe $HOME/.wine/drive_c/Program\ Files/Microsoft\ Games/Crimson\ Skies/LAUNCHER/
/bin/cp /media/C_SKIES/setupenu.dll $HOME/.wine/drive_c/Program\ Files/Microsoft\ Games/Crimson\ Skies/LAUNCHER/

To run the game, use the following command line, or a error message about broken database will show up:

/usr/bin/wine "C:\Program Files\Microsoft Games\Crimson Skies\LAUNCHER\install.exe"

Note: The mouse cursor is quite bogus in the menus. On my own, I get it to the target by doing great circular mouvements.

Once you have seen the introduction video, I encourage you to delete it, since i've found no way to bypass it. Without doing this, you will lost 3 minutes each time you launch the game:

/bin/rm $HOME/.wine/drive_c/Program\ Files/Microsoft\ Games/Crimson\ Skies/GOSDATA/ASSETS/GRAPHICS/MPG/msopen1.mpg
/bin/rm $HOME/.wine/drive_c/Program\ Files/Microsoft\ Games/Crimson\ Skies/GOSDATA/ASSETS/GRAPHICS/MPG/zipper.mpg
/bin/rm $HOME/.wine/drive_c/Program\ Files/Microsoft\ Games/Crimson\ Skies/GOSDATA/ASSETS/GRAPHICS/MPG/chap0.mpg

RHEM 2

RHEM 2 needs you to install QuickTime as described earlier in this article.

Once this done, install the game using for exemple the following command line (if it does not work, launch the "setup.exe" from the "setup" folder on the CD-ROM).

/usr/bin/wine /media/cdrom/setup/setup.exe

and download the No-CD Patch. The game is using the Starforce 2 protection (thank you, Micro Application... ), and it can not work without such a patch.

Supreme Commander

Warning: GPGNet work only since Wine 0.9.60.

Warning: GPGNet does not work well. But i've manage to get automatic updates to work. But do not expect to enter internet games with GPGNet. This install guide is not complete and it does not seems that completing it is possible in the actual state of Wine.

First, download WineTricks :

/usr/bin/wget http://www.kegel.com/wine/winetricks \
--output-document=$HOME/.wine/winetricks

Install the Gecko HTML render:

/bin/sh $HOME/.wine/winetricks gecko

Install Flash:

/bin/sh $HOME/.wine/winetricks flash

Install Dot Net 2.0 framework:

/bin/sh $HOME/.wine/winetricks dotnet20

Install Visual Java #:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/vjredist.exe \
--output-document=/tmp/vjredist.exe
/bin/mkdir $HOME/.wine/drive_c/VISUALJAVA
/usr/bin/cabextract -d $HOME/.wine/drive_c/VISUALJAVA /tmp/vjredist.exe
/usr/bin/wine "C:\VISUALJAVA\install.exe"

Once this done, you can do a little clean up:

/bin/rm /tmp/vjredist.exe
/bin/rm -fr $HOME/.wine/drive_c/VISUALJAVA

We now download some DLLs:

/bin/mv $HOME/.wine/drive_c/windows/system32/shdocvw.dll $HOME/.wine/drive_c/windows/system32/shdocvw.dll.back
/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/shdocvw.dll \
--output-document=$HOME/.wine/drive_c/windows/system32/shdocvw.dll
/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/shlwapi.dll \
--output-document=$HOME/.wine/drive_c/windows/system32/shlwapi.dll
/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/msimtf.dll \
--output-document=$HOME/.wine/drive_c/windows/system32/msimtf.dll
/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/msctf.dll \
--output-document=$HOME/.wine/drive_c/windows/system32/msctf.dll

And we setup Wine to use them as native:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/gpgnet.reg \
--output-document /tmp/gpgnet.reg
/usr/bin/regedit /tmp/gpgnet.reg

We now install the game from the CD-ROM.

Then, run GPGNet with the following command line.Login and let the software update itself. Run GPGNet as many times as necessary.

/usr/bin/wine "C:\Program Files\THQ\Gas Powered Games\GPGNet\GPG.Multiplayer.Client.exe"

Use this command until GPGNet version is 1.5.188.1. Since this version, GPGNet crash just after login. To correct this problem, we install a missing DLL:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/gpg-multiplayer-plugin.dll \
--output-document=$HOME/.wine/drive_c/Program\ Files/THQ/Gas\ Powered\ Games/GPGNet/GPG.Multiplayer.Plugin.dll

Then, when GPGNet version is the last one, login to a Supreme Commander session in order to get all the game updates.

Next, in order to get Supreme Commander sound, you need to install more DLLs:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/xactengine-dlls-tar.bz2 \
    --output-document=/tmp/xactengine-dlls-tar.bz2
/bin/tar --directory $HOME/.wine/drive_c/windows/system32/ -xjf /tmp/xactengine-dlls-tar.bz2
/usr/bin/regsvr32 $HOME/.wine/drive_c/windows/system32/xactengine2_*.dll

And apply some optimizations for Supreme Commander in the Wine registry:

/usr/bin/wget http://howto.landure.fr/gnu-linux/installer-directx-9-0c-avec-wine/spc.reg \
--output-document /tmp/spc.reg
/usr/bin/regedit /tmp/spc.reg

You can now play to Supreme Commander on local network.

Wine environment reset

Warning : THE FOLLOWING COMMAND LINES DELETE ALL OF YOUR WINE ENVIRONMENT. This include:

  • YOUR GAMES BACKUPS

  • YOUR GAMES INSTALLS

  • YOUR TRICKS

EVERYTHING THAT NEED WINE OR IS ABOUT WINE.

USE THESE COMMAND LINES AT YOUR OWN RISKS:

rm -fr ~/.wine
rm -r ~/.local/share/desktop-directories/wine-*
rm -r ~/.config/menus/applications-merged/wine-*
rm -r ~/.local/share/applications/wine/

Thanks

Attachements

Great website and scripts

Posté par Sudhi le 12/06/2008 05:51
Hey there!
First of all thanks a lot for this information
I used the howto wine page extensively.
I am a gentoo user. but the commands and all the scripts were really great and helpful
(I just needed to change few paths here and there.)
Your site is great and so are the scripts
keep up the good work

~S

Very helpful

Posté par Luke le 16/06/2008 01:24
This was very very helpful! Thanks!

Best wine howto...

Posté par Frank le 20/06/2008 20:17
... I've ever read! Thanks for this great howto!

guest test title

Posté par GuestagecyJN le 14/06/2018 18:00
guest test post
<a href=" http://temresults2018.com/ ">bbcode</a>
<a href="http://temresults2018.com/">html</a>
http://temresults2018.com/ simple

Thanks!

Posté par Dan Kegel le 22/06/2008 10:01
Looks like a good set of recipes.
A lot of this should be rolled into winetricks, I'll see about that.

OK... try winetricks now

Posté par Dan Kegel le 22/06/2008 11:02
winetricks now has a vjrun20 verb to install the Visual J# runtime,
and the directx9 verb now actually does the install and overrides.
This should simplify your recipe somewhat, please test.

Also, winetricks has had a working quicktime verb for some
time, can that replace most of your quicktime recipe?
(And the black screen bug can also be suppressed
by setting vista mode, btw.)

dxdiag segfaults on Wine 1.0

Posté par Flandry le 24/06/2008 15:44
Your howto avoids a "Fatal Error" during the DXSETUP i get using the wine review howto, but even when it finishes without error dxdiag always segfaults for me like so:

fixme:dsound:IKsPrivatePropertySetImpl_Get unsupported property: {1aeaa606-35f0-11d1-b161-00c04fc28aca}
Segmentation fault

I have wine 1.0 freshly installed on Kubuntu Hardy LTS AMD64. 3D acceleration is properly set up. I tried using the June and the March redistributables with the same results.

Is anyone else having this trouble?


dsound error

Posté par lwolf le 24/06/2008 16:47
Hi,

for me it sounds like a misconfigured sound. Either your system does not have a working alsa sound, either you need to use winecfg to change your sound settings.

Good Luck

Lone Wolf

Call of Duty 4

Posté par Ron le 07/07/2008 03:09
What would I have to do so I can run Call of Duty 4

humf

Posté par lwolf le 07/07/2008 04:44
Since i do not own CoD 4, i can not help you, but you should visit:

http://appdb.winehq.org/

for more informations.

robi

Posté par robi le 08/07/2011 08:28
zjuj

New to ubuntu

Posté par Ron le 07/07/2008 04:16
When I try to update the video memory I keep getting this error not sure if I am inputting the commands wrong or what.

ron@ron-desktop:~$ /usr/bin/lspci | /bin/grep VGA | /bin/sed -e 's/^\([^ ]* \).*/\1/' \ | /usr/bin/xargs -iPCIID /bin/sh -c "/usr/bin/lspci -v -s PCIID"/ | /bin/grep Memory | /usr/bin/sort -g | /usr/bin/tail -n1\ | /usr/bin/xargs -iVIDEORAM | /bin/sed -i -e 's/VIDEO_RAM/VIDEORAM/' /tmp/video_ram.reg
/bin/sed: can't read : No such file or directory
/usr/bin/tail: 1 : invalid number of lines

this guide has been written for ubuntu

Posté par lwolf le 07/07/2008 04:43
so, on other distribution, it can fail.
Try by removing full path from commands:

lspci | grep VGA | sed -e 's/^\([^ ]* \).*/\1/' \ | xargs -iPCIID sh -c "lspci -v -s PCIID"/ | grep Memory | sort -g | tail -n1\ | xargs -iVIDEORAM | sed -i -e 's/VIDEO_RAM/VIDEORAM/' /tmp/video_ram.reg

Good luck.

written for ubuntu

Posté par fub le 01/01/2009 23:31
Great many thank for this howto!
or better: merci beaucoup!

in OpenSuse 11.0 it works if you leave out the full path and use su for the lspci part.
Lets see if my slideshow software will run now.

fub

Thanks - got Empire At War working

Posté par Stephan Beal le 09/07/2008 11:09
Thanks a ton for this article. i finally got "Star Wars: Empire at War" (and the expansion, "Forces of Corruption") running on Linux.

:)

amazing!!!

Posté par johnnybravo@mac le 05/09/2008 09:13
Many Thanks for the posts! You guys are great. I was looking for the clear instruction of installation of wine from scratch. My plan was to use it with Office2007.
Unfortunately this crap DirectX9 installing using "setup.exe" did not work for me. Now with your instructions it worked fine!!! Also these tricks with getting libs
directly.... Great!
I have tested CrossOver with Office2007 which did not work at all. After one day testing I dropped the App to the trash.
Now I have copied all the instructions above to rebuild my wine env if something fails in between. Just FYI I am running following configuration:
port wine 1.0_rc1 (devel 1.1.3 did not work)
X11 updated from xorg to Xquartz 2.3.0 (xorg-server 1.4.2-apple5)
on MacBook Pro

Once again... Many Thanks!
Cheers

thx

Posté par koocho le 16/09/2008 18:46
thank you for this wonderful instructions! everything installed fine!

OMFG

Posté par Alejandro le 02/10/2008 23:32
Let me say it this way, OH MY FUCKING GOD
Dude u own!

GW Worked great and it also helps a lot running damn windows apps on linux

great job u got +1000000000 points

:)

Posté par Alejandro le 02/10/2008 23:33
by the way, it worked under Arch Linux x86_64 =)

Cabal Online

Posté par cpb le 15/10/2008 01:45
does ne1 know if this make cabal online bootable??

VERY GOOD

Posté par rowman le 17/10/2008 19:43
Thank you very much

thankyou very muchacho

Posté par eekcage nico le 30/10/2008 02:44
Cheers, Your page is a must bookmark¬!

I am playing with Trackmania Forever (nonsteam) just about to test in 32 bit with latest nvid drivers. wine + 64 is a little ikky

Amazing

Posté par Bob le 17/11/2008 10:49
Just what I've been looking for for the past 3 days.
Kudos to you and the Ubuntu community.

DirectX Installation Error

Posté par Jeremy le 25/11/2008 19:39
When I get to the part of the instructions where you enter:

/usr/bin/wine "C:\DIRECTX\DXSETUP.exe"

into your terminal, I get the following error:

err:setupapi:do_file_copyW Unsupported style(s) 0x144

The DirectX window says it needs to restart the computer, however, clicking Next does nothing and the terminal just has a flashing cursor under the last error line. It never returns to username@username-desktop:~$

Any help or suggestions anyone?

Thanks in advance.

directx install crash

Posté par swivelsnoot le 08/02/2009 02:24
If you have any trouble with wine crashing with directx install,
or games crashing on startup,
or complaining about directx not being installed,
you may need to re-install your linux graphics card driver before fixing wine or directx.

Thank you

Posté par Fixxer le 02/12/2008 12:37
This is the best site for linux help that I have found for makeing wine more useable.
Thanks for takeing the time to publish this.

thanks

Posté par Zed le 23/12/2008 21:45
Works like a charm for Unreal Tournament GOTY

n1

Posté par Buddha le 30/01/2009 21:24
Great work freen. thanks.

great tutorial

Posté par detanto le 03/02/2009 06:11
great tutorial but still i cannot play Championship Manager 2008 .. hu hu hu .. but before i follow this tutorial i can't install it,
now CM2008 is installed on my machine but still i can't play it. when i start it from terminal it says :

fixme:ntdll:NtQueryInformationProcess (0xffffffff,info_class=34,0x17ca520,0x00000004,0x17ca51c) Unknown information class
fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_HANDLE_INFORMATION
fixme:ntdll:NtQueryObject Unsupported information class 3
fixme:debugstr:CheckRemoteDebuggerPresent (0xffffffff)->(0x17c940c): Stub!
fixme:d3d:IWineD3DImpl_FillGLCaps OpenGL implementation supports 32 vertex samplers and 32 total samplers
fixme:d3d:IWineD3DImpl_FillGLCaps Expected vertex samplers + MAX_TEXTURES(=8) > combined_samplers
fixme:win:EnumDisplayDevicesW ((null),0,0x17c9258,0x00000000), stub!
wine: Unhandled page fault on write access to 0x003d2000 at address 0xd74c46 (thread 0009), starting debugger...
Unhandled exception: page fault on write access to 0x003d2000 in 32-bit code (0x00d74c46).
etc.. etc..

do you guys have a clue? i'm using ubuntu intrepid

thx in advance

It worked as a charm. Merci!

Posté par Bremm le 24/02/2009 10:44
But I don't know if someone here could help me. I applied the whole directx part of tutorial over Wine 1.1.15. I tested with 4x4 Evo2 and worked perfectly, it just increased the FPS from 30 to almost 100 (but 130 FPS under OpenGL yet... lol). Now I'm trying to run a game called "Need for Russia - Сделано в СССР (2007)" and it shows "Memory Access Violation", even with workaround in sysctl.conf (here is Intrepid 8.10 and already has a sysctl.conf.wine with "vm.mmap_min_addr = 0").

This is the basic output when I run it:

$ wine NFR.exe
fixme:d3d:IWineD3DImpl_FillGLCaps OpenGL implementation supports 32 vertex samplers and 32 total samplers
fixme:d3d:IWineD3DImpl_FillGLCaps Expected vertex samplers + MAX_TEXTURES(=8) > combined_samplers
fixme:win:EnumDisplayDevicesW ((null),0,0x33f71c,0x00000000), stub!
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x153c28,0x153bb0): stub
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 62
err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 63
err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 64
fixme:ddraw:IDirectDrawImpl_RestoreAllSurfaces (0x1428c8): Stub
fixme:d3d7:IDirect3DImpl_7_EvictManagedTextures (0x1428c8): Stub!
fixme:winmm:MMDRV_Exit Closing while ll-driver open

Thanks in advance

Thanks!!

Posté par Irian le 28/03/2009 02:15
Best guide I've seen ANYWHERE!

One question though .... at one point you state "We update the template with a auto-detected value that should fit to our system (if you have more than 256 MB of Video memory, the auto-detected value will only be of 256 MB)". Is it possible at all to change it so it uses more than 256MB, if we have more than that (say 512MB on our GPUs)? Again, thanks!

memory auto detection

Posté par lwolf le 28/03/2009 06:18
yes, it is possible to edit the /tmp/video_ram.reg file. It is even recommended if you have a video card with more that 256 MB of memory :).

Great thanks!

Posté par Irian le 28/03/2009 16:52
Great thanks!

Guild Wars Settings

Posté par FirewolfX-7 le 13/05/2009 00:09
Following your instruction it keeps crashing to desktop before I can even see the menu screen, (shows the loading screen part)

armahillo@gmail.com

Posté par Aaron Hill le 30/05/2009 07:00
You are AWESOME.

Thank you so much for putting this up.

VIDEO RAM SIZE

Posté par mE le 08/06/2009 22:04
Nice Guide... Works Perfectly.

I just have one doubt. The video size in

[HKEY_CURRENT_USER\Software\Wine\Direct3D] 1209735725
"VideoMemorySize"="VIDEO_RAM"

is to be set as 512, 512MB, 524288 or 524288kb ??

video ram

Posté par lwolf le 09/06/2009 03:48
The videoram size is to be set to 512 :)


ClientRegistry.blob BUG

Posté par mE le 09/06/2009 11:31
I have noticed that Steam will launch a game only the first time. After that i will only popup the message "Preparing to launch GAME" and thats it.
Something changes in ClientRegistry.blob and needs to be deleted every time i need to launch a game... So i did a script for it

#!/bin/sh
rm ~/.wine/drive_c/Program\ Files/Steam/ClientRegistry.blob
wine ~/.wine/drive_c/Program\ Files/Steam/Steam.exe exit

but that means every time i need to wait for Steam to update and then insert password...
Have any ideas?

Linux Slackware 12.2 // Nvidia 8800GT with last official driver // Wine wine-1.1.21 with DirectX9.0c

Awsome

Posté par Nightwolf le 08/07/2009 00:02
I would like to just say I think this is the best site help Ive every found on the net for Linus thank you greatly

Hi

Posté par Razer le 06/08/2009 14:32
Hi

Half-Life Blackout

Posté par Sasp le 02/09/2009 19:03
Hi, first of all: you've got a great site here, but I have a question:

Everytime I want to start Half life 2 (or Gmod) Steam says, that it's loading the game. Then the screen becomes black and I return to the desktop.
I read this comment:

"I have noticed that Steam will launch a game only the first time. After that i will only popup the message "Preparing to launch GAME" and thats it.
Something changes in ClientRegistry.blob and needs to be deleted every time i need to launch a game... So i did a script for it

#!/bin/sh
rm ~/.wine/drive_c/Program\ Files/Steam/ClientRegistry.blob
wine ~/.wine/drive_c/Program\ Files/Steam/Steam.exe exit

but that means every time i need to wait for Steam to update and then insert password...
Have any ideas?

Linux Slackware 12.2 // Nvidia 8800GT with last official driver // Wine wine-1.1.21 with DirectX9.0c"

I tried it, but it didn't work (no such file found). Also, it didn't even start the game one time. Have you got an Idea what I did wrong?

thanks

Posté par ubuntu le 26/12/2009 09:19
Thanks for this documant. I am a little speak english but I undertans this documant. Iam using Jaunty and commands stil working. Now ı playing Heroes Shadow of Death, ı know this game very old but ı love this game.

Thanks again and good day.

Issue of Upgrade

Posté par Marko le 01/07/2010 11:52
OK, this is excellent tutorial. But I have a question; since Football Manager 2010 is not running smoothly when I watch the game in TV view, how can I upgrade directx9 AFTER I did everything in this tutorial?


Réalisé avec Plone

Ce site respecte les normes suivantes :

Wikio