PDA

View Full Version : Tutorial: Playing Windows Games | Redhat 8.0


volt
12-27-02, 06:12 PM
I thought I'd share my experience because I think it's worth to try.
After following this tutorial you should be able to fireup *most* Windows based applications and games.

This is a bit different from borgzilla's post. I will go into more detail on installing and configuring WineX emulator.

First you need to grab CVS version (or if you have a stable version of WineX, preferably in tarball format)

Log into your X server environment using your username (not root). Then open up a terminal and type:

NOTE: if you already have a tarball version of WineX you can skip the first step.

Your first step is to log into CVS server:
cvs -d:pserver:anonymous@cvs.winex.sourceforge.net:/cvsroot/winex login

It will ask you for a password so just press ENTER.
Now you need to grab the latest files (it may take a while)
cvs -z3 -d:pserver:anonymous@cvs.winex.sourceforge.net:/cvsroot/winex co wine

(You should end up in /home/<username>/wine)
NOTE: you need to substitute <username> for your username of course :)

Your second step would be compiling WineX.

In README they say that you should use the installation script from ./tools/wineinstall but we won't :) Being still in /home/<username>/wine let's configure it:

./configure

(Using ./configure -help will list different parameters you could use)
NOTE: If you compile from the WineX source and don't specify any arguments in ./configure, all dll's will be dumped to /usr/local/lib. You DON'T have to specify anything in ./configure if you don't want to, but you will have to change one thing after installation.

After the configuration process type:

make depend && make

(This may take upto an hour depending on your CPU/RAM)

During the third step you will HAVE to install WineX with root privileges because ldconfig will be ran in the end, so type:

su root
<ENTER password>
(You should still be in /home/<username>/wine

Now let's install WineX:

make install

All the files will be copied and ldconfig will start. As I mentioned above if you didnt specify anything in ./configure, you will get an error trying to fireup a Windows application. In other words executing: wine /home/volt/.wine/c_drive/mIRC/mIRC.exe will most likely produce: "Error while loading shared libraries: libntdll.so"

In order to fix that, you need to temper with /etc/ld.so.conf
Using root privileges edit ld.so.conf (I used 'pico /etc/ld.so.conf', but you can use whatever editor you like). It is possible that the dynamic linker simply doesn't know to look for the dll's. It will look into /lib or /usr/lib but not usr/local/lib. So open ld.so.conf with your favorite editor and add /usr/local/lib path to it. It should work now.

No...we are not done :D

Your third step is pretty simple :)
We will now configure WineX in your home directory. We need to make couple of folders:

mkdir /home/<username>/.wine
mkdir /home/<username>/.wine/c_drive
mkdir /home/<username>/.wine/c_drive/windows
mkdir /home/<username>/.wine/c_drive/windows/system
mkdir /home/<username>/.wine/c_drive/windows/system32
mkdir /home/<username>/.wine/c_drive/program files
or
mkdir /home/<username>/.wine/c_drive/program_files

NOTE: Do NOT change the system paths, though you may change the 'program files' path to something else.

Now we need to copy a sample config file from CVS directory ./wine/documentation/samples/config to your /home/<username>/.wine directory:

cp /home/<username>/wine/documentation/samples/config /home/<username>/.wine

Being still root, edit the file that you have copied:

pico /home/<username>/.wine/config (or whatever editor you prefer)

Now go down to:

[Drive C]
"Path" = "${HO****/.wine/c_drive/" "
"Type" = "hd"
"Label" = "Windows Drive"
"Filesystem" = "win95"

(Make your [Drive C] section look like the above)

Now go to [Registry] section and make sure
"LoadWindowsRegistryFiles" = "Y"
Than there are different settings, which I will not get into (it's specified in the documents). You can choose specific settings for each application ex:

[AppDefaults\\quake3.exe\\x11drv]
"Managed" = "Y"
"Desktop" = "1024x768"

This will tell WineX to fireup Quake III in a window @ 1024x768

Now we need to create a registry. Go into your WineX CVS directory (/home/<username>/wine) and type:

./programs/regapi/regapi setValue < winedefault.reg

This will create a file in /home/<username/.wine

NOTE: I did not have to edit anything else, though you may if you want to change the system paths and other stuff :)

LET'S PLAY ALREADY!

Okay so you can install the game from CD-ROM into /home/<username>/.wine/c_drive or fire it up from your FAT32 drive (Note I did not experiment with NTFS partitions because it's dangerous). If you are not confident just install the game on your Linux drive :)

I will be installing Quake III:

mount /dev/cdrom /mnt/cdrom
cd /mnt/cdrom
wine setup.exe (or whatever the setup is called)

This will fireup the installation process. By default it will install the game in C:\Program Files\Quake III (I think). Don't worry it's actually installing the game in /home/<username>/.wine/c_drive/program files (where c_drive is C:\)

Once it's installed let's play it :)
If you want to start a game with parameters type:
wine -- c:\\program files\\Quake III\quake3.exe -nocdaudio -nojoy +mlook (-- is used when you want to specify a parameter)

If you don't want parameters than just go into /home/<username>/.wine/c_drive/program files/Quake III
and type:

wine quake3.exe

Voila!

The Analog Kid
12-28-02, 12:50 PM
If you are having problems compiling with WineX you my want to look to here (http://216.239.39.100/search?q=cache:0b0x0sPjpTEC:mdkxp.by-a.com/htm/tutorials/winex.php&hl=en&ie=UTF-8)for some solutions. Scroll farther down the page.
BTW, does WineX work with NT/2000/XP version of Windows, I know wine won't but will WineX?

volt
12-28-02, 01:18 PM
What would be the purpose of Wine/WineX under Windows? :confused:

The Analog Kid
12-28-02, 03:57 PM
No, I meant can it use a NT/2000/XP windows installation for DLLs and the such instead of Fake Windows, so I don't have to reboot to play a game.

volt
12-28-02, 04:22 PM
WineX comes with its own DLL files. It works with Windows 9x and up. As I explained above, you can either play from your Windows partition (by mounting the partition from /dev into /mnt) or you can simply install an application/game onto your linux partition and play directly from it.

doom
01-01-03, 06:27 AM
Originally posted by volt
Now you need to grab the latest files (it may take a while)
cvs -z3 -d: pserver@anonymous@cvs.winex.sourceforge.net:/cvsroot/winex co wine

"pserver@anonymous@cvs.winex"

should be

"pserver:anonymous@cvs.winex"

BTW, must all my .wine folders be setup in the /home/ dir. and not /root ?

volt
01-01-03, 02:39 PM
Originally posted by doom
"pserver@anonymous@cvs.winex"

should be

"pserver:anonymous@cvs.winex"

BTW, must all my .wine folders be setup in the /home/ dir. and not /root ?

Oops sorry! Changed!
Thanks doom :)

No but in my example I put it in /home/<user> becuase I'm the user and I would like to be able to actually play from that dir. Why? Because users don't have permission to access or modify /root nor other folders. In /home/<user> you can do whatever you want (read/write/compile/execute). I think I know where you are going hehe (not enough space in /home ?)

I never use the root account unless I have to (installing, compiling globally etc). You should not either. If you want you could create a folder .wine in /root just like in /home/<user> with all the wine subfolders), than you could change the permission on that folder to let's say 777 (being root type: chmod 777 /root/.wine) Now you should be able to use that directory instead of /home/<user>/.wine :)

lmetza
01-20-03, 02:58 AM
[root@mdoc-km-244-55-249 wine]# /programs/regapi/regapi setValue < winedefault.reg
bash: /programs/regapi/regapi: No such file or directory

I did exactly everything you specified in your guide so far, and it says that when i type ./programs/regapi/regapi setValue < winedefault.reg

Please help. i will leave terminal open at its current state. i wont close it so i can continue on later.

lmetza
01-20-03, 03:15 AM
i went to install warcraft 3 and i got this.

[dan@mdoc-km-244-55-249 cdrom]$ wine install.exe
wine: error while loading shared libraries: libntdll.so: cannot open shared object file: No such file or directory

I added /usr/local/lib to ld.so.conf with vim (i didnt have pico) i even added it to the top and i tried the bottom, no work. Please help me, i getting sofrustrated with all this stuff..... :confused:

lmetza
01-20-03, 04:13 AM
well i fixed the error about the shared file, but i still cant make the registry.

I went to install warcraft 3 again and now itsays this

[root@mdoc-km-244-55-249 cdrom]# wine install.exe
wineserver: chdir /root/.wine : No such file or directory


I did everything by your guide, i dont understand why it doesnt work

lmetza
01-20-03, 04:26 AM
rrr. i get anotehr step further , now this.

[dan@mdoc-km-244-55-249 cdrom]$ wine install.exe
wineserver: mkdir wineserver-mdoc-km-244-55-249.monarch.net : Permission denied

permission denied for what?, this is really annoying:confused: :confused: :confused:

lmetza
01-20-03, 04:52 AM
K, frick, pain in the arse, i had to reset all folder permissions for /home/dan/.wine and all fodlers withing .wine (they where all set for root and not dan) so i couldent access them, Now i have this fonts problem, I copyed my Fonts folder over from my XP system but then i got this error. (first time it couldent find fonts) so what does it do when i give it the fonts, it spits em back at me...
well i go to sleep :o :o :o
I copyed and pasted this stupid error, please let me know how to fix this one, It shouldnt really be that hard, somethings messed (i hope not too bad)

[dan@mdoc-km-244-55-249 cdrom]$ wine install.exe
err:font:AddFontFileToList Unable to load font file "/home/dan/.wine/c_drive/windows/Fonts/modern.fon" err = 2
err:font:AddFontFileToList Unable to load font file "/home/dan/.wine/c_drive/windows/Fonts/roman.fon" err = 2
err:font:AddFontFileToList Unable to load font file "/home/dan/.wine/c_drive/windows/Fonts/script.fon" err = 2
err:font:AddFontFileToList Unable to load font file "/home/dan/.wine/c_drive/windows/Fonts/desktop.ini" err = 55
fixme:dialog:MSGBOX_OnInit task modal msgbox ! Not modal yet.
[dan@mdoc-km-244-55-249 cdrom]$

volt
01-20-03, 11:21 AM
Maybe you should try installing corefonts (from corefonts.sourceforge.net). Why did you copy those fonts in the first place?

lmetza
01-20-03, 12:50 PM
well when there was no fonts folder it complained about not finding them, so i decided to give it a try (since they are fonts) . Looks like it didnt work. I will do what you said and try installing the corefonts? Do i need to do anything special do get them in /home/dan/.wine/c_drive/windows/fonts
??
BTW: I installed RTCW (no sound in SP) it asks for dcom95 to be downloaded and installed for multiplayer, i downloaded that from M$ and installed it (wine dcom95.exe) so thats setup, do i need to re-install DirectX 8.1 now? or what. Cuz during setup of RTCW when it asked for me to get DCOM95 it said to reinstall directx 8.0a after that, but isnt wineX dx8.1?

And is there a possible way of getting Installshield installers to work in this CVS version? some work around.

Thanks

tuxfriend
01-20-03, 02:33 PM
Question @ volt:
why dont you use ./configure and then as root ./tools/wineinstall?
It worked for me and it allready creates a /c when you say yes
when it ask to create a /.wine/config file.Its much easier to use.

volt
01-20-03, 02:36 PM
Originally posted by tuxfriend
Question @ volt:
why dont you use ./configure and then as root ./tools/wineinstall?
It worked for me and it allready creates a /c when you say yes
when it ask to create a /.wine/config file.Its much easier to use.

I did configure winex.

volt
01-20-03, 02:38 PM
Originally posted by lmetza
well when there was no fonts folder it complained about not finding them, so i decided to give it a try (since they are fonts) . Looks like it didnt work. I will do what you said and try installing the corefonts? Do i need to do anything special do get them in /home/dan/.wine/c_drive/windows/fonts
??
BTW: I installed RTCW (no sound in SP) it asks for dcom95 to be downloaded and installed for multiplayer, i downloaded that from M$ and installed it (wine dcom95.exe) so thats setup, do i need to re-install DirectX 8.1 now? or what. Cuz during setup of RTCW when it asked for me to get DCOM95 it said to reinstall directx 8.0a after that, but isnt wineX dx8.1?

And is there a possible way of getting Installshield installers to work in this CVS version? some work around.

Thanks

I never had to install fonts into wine directory. I believe it came with wine installation (I have to check). Only fonts I installed on top of Redhat fonts were corefonts.

lmetza
01-20-03, 04:51 PM
k, now it wants to load the installer for warcraft 3, goody. But warcraft 3 says in big yellow letters
"Windows 95 Detected"
then in greay letters below it it says.
"windows 95 is NOT SUPPORTED for warcraft III."

can i change the version to windows 98 somehow. I really wanna play WC3.

tuxfriend
01-20-03, 05:52 PM
try: "wine xxxxxx.exe --winver win98"
should help

tuxfriend

lmetza
01-20-03, 06:06 PM
just curious about this, am i able to go into the config file and change win95 to win98???

tuxfriend
01-20-03, 06:21 PM
Hi,
I dont know,did not try.Just tried the "--winver" option on my
installation with RedHat 7.3 and WineX from last year as I used it
at Quakecon to play JK2 and SOF2.There was no need to use this option
for the games I used.
Can you install WarCraft III now.Think you need a nocd-crack to play.

tuxfriend

lmetza
01-20-03, 06:36 PM
So will i be able to play on battle.net, because i know in windows if you use a crack you need to get like 2 othejr fixes for bnet playability?

Now about installshield. How can i add support for installshiel in wineX.
I mentioned earlyer that i have wineX 2.21 downloaded (winex221.tar.bz2) it is a build it seems. Would it have installshield support and will i need cracks if i use it?
If so how would i uninstall my current wineX installation properly?

tuxfriend
01-20-03, 06:59 PM
In first place,does it work now-can you play it in single player?
Second,do you need a nocd-crack or not?I use the .rpms so this is no
issue for me,with the CVS-version I dont know,just try it out.
If you want to uninstall your current version I posted a link in some of your other postings:
http://www.linuxfusion.net/installwine.htm
have a look at it.
As I know Intrashield is only supported when using the .rpms.
Does it install now???? You drive me crazy,dont ask questions in adwance,lets take it step by step.

cu tomorrow tuxfriend

lmetza
01-20-03, 07:17 PM
tuxfriend check pm

lmetza
01-20-03, 08:15 PM
i got frustrated, i went to google and typed in WineX rpm download, well i got myself winex 2.2.1 i386 rpm, i uninstalled the one i made from CVS and before that i uninstalled hte games i installed, then dleete the folder .wine in my folder. I installed the rpm (rpm -ivh) and no errors
I finished installing warcraft 3, went to play it and its windowed and i can get out of 16 bit ??? whats up with that. Is there a way to set it up so it starts up full screen and let me select 1024x768-32? I was able to do it with the one i made from CVS. So it must me possible with the real build then.