Ever felt anger towards MS Windows? Crashing all the time, beeing to slow and boring-looking. Well, get a UNIX instead. It'll be stable, very configurable and you'll have many different outlooks to choose between. But, will you be able to run Elasto Mania? Sure you will, a UNIX can deal with almost anything you want. But, how do you do to get it to run? Well, I'll give you some help on the way to happiness. I'm not going to tell you how to install your UNIX, I guess you already know how to do that if you're here. All commands I want you to write is in bold and within ''. That is 'command'. Notes, headers and other important stuff is also bold. [TOC] 1. Preparations. 2. Creating a psuedoe Windows partiton. 3. already got a Windows partition. 4. Edit wine.conf. 5. Preparing FreeBSD for WINE. 6. Running WINE. 7. Problems. 8. Author. [TOC] 1. Preparations. So, first of all you need WINE, a Windows emulator, which can be downloaded from http://www.winehq.com. If you don't want or don't know how to compile all the sources you may fetch one of the binary distributions of WINE. I use a FreeBSD port of WINE which may be found at ftp.freebsd.org. This one won't work in Linux but a Linux compiled WINE may work in FreeBSD. I'm not telling you how to install WINE, this you'll have to figure out on your own. But reading the documentation is always a good idea. NOTE. You have to install X Window System to be able to run WINE. So, if you've installed it now this is where the fun begins. First if all you need a directory to run Windows binaries from. This may be a real Windows partition or a psuedo (fake) one. I use a fake one, don't want any FAT partitions on my HDD. If you have a real Windows partition you may skip step 2. 2. Creating a psuedo Windows partition. First of all you've to decide where to have it. Use a filesystem with lots of free space, not necessary but preferable. Don't use the root ( / ) filesystem. I have mine in /usr/home/wine which is the /usr filesystem. So, let's get to it then. SU to root or login as root. Then 'mkdir -p /home/wine/c/windows/system'. You may choose a different location, this is just the one I use. Now we've set up our psuedo Windows partition. 3. already got an Windows partition. So, if you've already have a Windows partition, use that one. I don't know, it could be reliable this way, haven't tried. Add following line to /etc/fstab if you use FreeBSD or any other BSD system. /dev/wd?s?? msdos /windows rw 0 0 ? is which HDD it's on and?? is which slice. I hope you already know how to handle slices, it's rather tough to explain so I leave to you to learn if you don't know. msdos tells the mount daemon which filesystem to mount. /windows where to mount it. rw that it should be read-writable and 0 0 I really don't know, but it should be there. =/ If you use Linux or any other Sys V system add this line. /dev/hd?? msdos /windows rw,user 0 0 ?? may be a1 for first HDD and first partition or b2 for second HDD and second partition and so on. msdos could be replaced with auto, but msdos should work out fine. As in the example before /windows tells the mount daemon where to mount. rw is for read-writable. user gives other users than root permission to mount this filesystem. And 0 0... just put it there. But, I guess you know this if you're using Linux or any other Sys V UNIX clone. 4. Edit wine.conf. Now you need to tell WINE where it shall search for either your real or psuedo Windows partition. This is done within wine.conf. If you don't know where it's located you may use following command. 'find / | grep wine.conf'. This will search all your filesystem for a pattern matching wine.conf. It'll print to the screen if it find something. NOTE. UNIX is a case sensitive O/S, so grep Wine.conf won't find anything, must be wine.conf. But wine.conf is usually found in /etc or /usr/local/etc. Look there before searching. Now we've to edit wine.conf. Start you favourite editor and open wine.conf. You must be root or else you won't be able to save changes to wine.conf. Find following lines: [Drive C] Path=/c <-- Change to where your C: is located. Type=hd Label=MS-DOS Filesystem=win95 I use: Path=/home/wine/c Then find these lines: [Drive D] Path=/cdrom <-- Change to where your CD-Rom is mounted. Type=cdrom Label=CD-Rom Filesystem=win95 I use: Path=/cdrom. Now we've set up WINE, could be more precise setup but this'll do. But FreeBSD users still got one thing to do before the fun begins. If you use Linux you may skip paragraph 5. 5. Preparing FreeBSD for WINE. Now, to be able to run WINE you must recompile your kernel in order to get it work. First of all you need to have the kernel sources in order to do this. If you didn't install them when you first installed FreeBSD then do like this: '/stand/sysinstall' Choose Configure from the main menu, then Distributions, then X-Kern-Developer. Let it install, and now you have the source code for the FreeBSD kernel on your system. If you already had the sources then do this: 'cd /usr/src/sys/i386/conf'. 'cp GENERIC whateveryouwant'. Then edit whateveryouwant. You'll se a lot of lines in the beginning containing lines like: options MSDOSFS After the last options line insert following: 'options USER_LDT' After this you'll save the file. Do a 'config -g whateveryouwant'. It shouldn't give you a failure message. But if it does, you've done something wrong. Then do like this: 'cd ..' *2 'cd compile/whateveryouwant' NOTE. Whatever you want is just my lack of fantasy, use another name. Then make a 'make depend'. When it's done, 'make'. This may take a time, but don't worry. After make is done, 'make install'. Now you have to reboot your system to make the changes happen. Reboot, and wow, we have a WINE functional BSD system. 6. Running WINE. Now, this is when we should try if our efforts was worth it. We need a Windows program/game to run. Hmm... why not Elasto Mania. Mount your Windows partition if you need or go to your psuedo Windows place. Copy the Elasto Mania setup file to the directory you're in. If you're a UNIX you know how to do that. I'm not going through the basics here. Now, you have the Elasto Mania setup file in your Windows or 'Windows' directory. So, let's do like this: 'wine elmasetup.exe -debugmsg,+file -managed'. elmasetup.exe... don't know if thats the filename. If it's not, then change to the right one. -managed tells WINE to run the program in a WM ( Window Manager ) handled window. The Elasto Mania setup program may skip this parameter. Install Elasto Mania where you want it. Default should be C:\Program Files\Elasto.... Install where you want. Then make this one: 'cd /windowsdir/elastodir'. And now, we're almost where we wanted to be at the start, just ONE single command from Elasto Mania. 'wine Elma.exe -debugmsg,+file -managed' NOTE AGAIN. UNIX is case sensitive, if ElMa.exe, it won't work. And now a window should appear on your screen with Elasto Mania. If your X server is configured with higher resolution than 640*480 a window appears at the desktop. If you have your X server configured as 640*480 16bpp ( Elasto Mania uses 16bpp instead of Across using 8bpp ) you may want to skip the -managed parameter and Elasto Mania will take the whole desktop. But, running in a desktop window won't slow anything down. UNIX isn't like Windows, it's good at multitasking. 7. Problems. Only problem I've had with Elasto Mania in UNIX is at the menues. Pressing the arrow up button makes the helmet go up two steps. Same with arrow down. But, a external DLL instead of the built-in may solve this. I'll try as soon I as I've got the dinput.dll. If you encounter other problems, check the documentation for respective WINE or other component. 8. Author. This Elasto Mania HOW-TO for UNIX written by Kent Lundström, fotn, PRA. Qustions may be sent to email@example.com. Visit PRA site at, http://underworld.fortunecity.com/starcraft/225. Would like to thank PeXi for allowing me to publish this at his site.