1. Introduction
2. What is Wine?
3. Which Wine to G et?
4. Getting Started
5. Installing Wine/WineX

1. Introduction

-In order to get Jedi Knight working under Linux you will have to install Wine or Winex, and this guide will help you do exactly that. It is a fairly easy task and does not require great Linux knowledge. All you really have to know is how to read and follow instructions, but it is important to understand what Wine is and where did it come from in order to appreciate and know its purpose. So read on... oh yeah and sorry for any spelling mistakes in advance :P

2. What is Wine?

-Bob Amstadt originally started the Wine project in 1993 to get Windows 3.1 applications working under Linux. The current coordinator is Alexandre Julliard. Wine is an Open Source project to allows Linux and UNIX users to install and run M$ Windowz software. There are different implementations of Wine but all are bound to similar code. You should not think of Wine as an emulator for windows programs, instead an implementation of the Windows APIs within an UNIX environment. Wine does not require an installation of Windows but it can be used in junction if desired. It is a project that is constantly under development and is limited to is capabilities, but it does allow a major amount of Windows software to run smoothly on an UNIX based environment. The Wine code is distributed under the GNU Lesser General Public License and therefore can be distributed and modified freely.

-There are a few "versions" of the wine code available to the public. The main source code is provided freely by www.winehq.com. There are some distributors of Wine that charge for their code. Most the time those distributors offer additional features and support for their personally modified code. For example, Transgaming and CodeWeavers are such distributors. Transgaming created WineX which is strictly intended to run Windows games, it has the potential to run any game that requires DirectX8. DreamWeavers focused more towards office applications like Microsoft Office and Lotus Notes, as well as Windows Media Player, Shockwave, and even QuickTime plug-ins. Both products are available for a fair price and are packaged in almost any format desired.

3. Which Wine to Get?

-Since we are concentrating toward Linux Gaming it is best to go with WineX provided by transgaming.com. Transgaming does put out a price for their service and it is $5 a month. With that you get packaged versions of WineX with a usually smooth and trouble free installation, full support and help for certain games, and voting privileges that allow you to voice your opinion on what the Transgaming team should work on next. If you don't want to put out the cash then you can download the source code via CVS. This will allow you to accomplish the same as the prepackaged version but require a little more work.
The Wine code from www.winehq.com will also allow you to run Windows games, but it tends to require more knowledge of Linux in order to troubleshoot your own problems. You are more then welcome to try both and see what works best for you. As a primary means of Linux Gaming we recommended to go with WineX.

4. Getting Started

-Before installing any Wine code on your computer it is important to verify that your computer is capable of supporting it. By following these simple instructions you will be able to avoid potential problems in the future like running games or getting Wine to properly install.

Your video card needs OpenGL support and it has to be running smoothly under Linux. You can test that by typing in:

$ glxinfo | less

You should get an result saying 'direct rendering' with either 'yes' or 'enabled' next to it, if not then your video card is not setup for OpenGL in which case you better start working on it. You will need to contact your Video OEM and find other recourses for it since that's another separate HOWTO.
I assume that your video card is working fine now, if so then you also need to make sure that your XF86Config-4 file (or XF86Config) is setup correctly. The important aspect of that file is to have all the different resolution mods entered in there this way WineX can switch between resolutions if required.
Under the 'Screen' section, locate 'mods' and make sure you have a variety of screen resolutions available. The most often used are "1600x1200" "1280x1024" "1024x768" "800x600" "640x680" ...only enter the ones that are supported by your video card and monitor otherwise it might cause some problems later.

Once we have your video card working correctly it is time to make sure you have access you your CD-ROM. To test it put a CD in your drive and type in:

$ mount /mnt/cdrom (or whatever your CD mount point is)
$ cd /mnt/cdrom (again, replace /mnt/cdrom with your CD's mount point)
$ ls

If all went well than you should get the content of your CD. If your CD didn't mount correctly or you got an 'access denied' error then it's time to troubleshoot it; possibly your permissions are not set correctly ....unfortunately that is beyond the scope of this guide. So now lets consider that your CD drive is working fine together with your video card.

-Next step is to make sure we got the sound card working smoothly.
Well, your sound card should be at least playing music like mp3 or whatever. The thing that we're concerned here about is the sound servers running in the background. 'ARTS' and 'est' are such sound servers, they need to be disabled from your control panel. Note: they are launched by your desktop manager like KDE or similar to such.

Sometimes certain Linux Distributions already include a copy of Wine, usually it is a very lame copy and will not work. Therefore we need to remove it first.

-If it was installed by 'rpm' (comes with RedHat or SuSE)
as root type in this:

# rpm -qa | grep wine (or winex, if it does not work capitalize the letters )
# rpm -e xxxxxx (x'es represent the result you got from 'rpm -qa | grep wine')

-In Debian Format
as root type in this:

# apt-get remove wine

-If you installed from source

go to the previous compiled source directory of wine or winex and type in

# make uninstall

this will remove any older wine/winex code from your system and you should be ready to continue with the installaltion.

5. Installing Wine/WineX

-WineX , prepacked versions
To download go to www.transgaming.com, bear in mind that you need to be an Transgaming member in oreder to download packaged version of WineX.

-Kernel 2.2 or higher
-XFree86 4.0 or +
-glibc 2.1.3 or +
-OpenGL Video Card working under Linux

Installing by 'rpm'
$ su
$ (your root password)
# rpm -ivh WineX-xxxxx.rpm
(the x'es indicate the version)

Installing by 'deb'
$ su
$ (your root password)
# dpkg -i WineX-xxxxx.rpm
(the x'es indicate the version)

Installing by 'tgz'
$ su
$ (your root password)
# tar -xvzf WineX-xxxxx.rpm
(the x'es indicate the version)

-WineX, from the CVS tree
This is the free release. First we will have to download the latest WineX source code. Make sure you are connected to the internet and then from the terminal window type in this:

$ cvs -d:pserver:anonymous@cvs.winex.sourceforge.net:/cvsroot/winex
login (or you might have to include 'login' at the end of the upper command, after winex)
(You will be asked for a password, just hit enter on it)
$ cvs -z3 -d:pserver:anonymous@cvs.winex.sourceforge.net:/cvsroot/winex co wine

This will start downloading the most recent WineX in to a directory called 'wine'
Once it's download we will have to compile it and install it.

Go to the' wine' directory and type in:

$ ./configure

This should tell you if you missed any dependencies.
Now switch to root

$ su
$ (your root password)

Make sure you are still in the directory of 'wine' ...if so then type in:

# ./tools/wineinstall

This might take some time so it's ok to get a beer... After it's done you will be asked to create a ~/.wine/config file, make sure you say 'yes' ...after the installation is done winex will create a fake 'C' drive for you, usually located directly under your root dir. If you install a game it will be located at /C/Program Files/Whatever/
And that is it, WineX should be installed correctly to be used for playing games.

-Wine, from the CVS tree (don't confuse this with WineX)

If you plan to play games thru the original Wine code then I highly recommend you download it from the CVS tree. Here are the instructions:

Connect to the internet
$ export CVSROOT=:pserver:cvs@cvs.winehq.com:/home/wine
$ cvs login
For the password type in: cvs
$ cvs -z 3 checkout wine

Now you will star to download wine, give it time.
OK, when downloaded do this to install:

Go to your 'wine' directory and type in:

# ./configure --enable-opengl --prefix=/usr

This will enable openGL support, yeepiee..
Once it is done type in this to compile wine:

# make

and then to install type in:

# make install

...and you are done!
It is possible that you might have run in to some kind of strange problem. If you get stuck and can't find an resolution for your problem feel free to post a message on our forum. It is a new addition so try to use it to your advantage. Also, Here are some usfull links that might help you: