[Wine] How do I run a 32 bit windows game on a 64 bit ubuntu machin
martin at gregorie.org
Wed Nov 16 06:35:01 CST 2011
On Tue, 2011-11-15 at 19:25 -0600, jobsworth6912 wrote:
> Thank you Martin Gregorie and sgsdxzy for your helpful posts.
> I tried it and it works. I now have a script on my desktop called sof2:-
> export WINEPREFIX=$HOME/.wine/drive_c
> cd $WINEPREFIX/"Program Files/Soldier of Fortune II - Double Helix"
> wine SoF2.exe
This would be better written as:
cd "$WINEPREFIX/drive_c/Program Files/Soldier of Fortune II - Double
because $WINEPREFIX has other uses besides being part of the directory
name you're changing directory into. As it is defined as pointing to the
wine prefix (the directory whose name defaults to .wine) I'm slightly
surprised that your setup works at all. That may have something to do
with you sticking to the default wine prefix name. Where the wrapper
really shines is when you put each Wine app in a separate wine prefix:
then you don't need to remember which app is where because that's
recorded in the wrapper script.
> Before I had a similar script:-
> cd "/home/john/.wine/Program Files/Soldier of Fortune II - Double Helix"
> wine SoF2.exe
> which did not work and I don't know why (both were CHMOD 755).
> I also created a .bash_profile file in /home/john:-
> # Get the aliases and functions
> if [ -f ~/.bashrc ]; then
> . ~/.bashrc
> Also I created a folder /home/john/bin
> and copied in the file sof2 so that now I can type sof2 in a terminal and that works also.
> I get asked for my CD which is there but which it cannot find.
> BUT I still have to browse to .wine and then to SoF2.exe right click on it and then select wine from the menu to start the game.
> Otherwise it cannot find my sofii_1 CD despite adding D: /media/sofii_1 as a CD ROM in my winecfg-->drives.
> I still have much more to learn but I thank you for your help.
More information about the wine-users