How To setup Wine to run Windows Programs in Linux without having Windows


Wine is a Windows emulation program for *NIX OS's available as a free download
at http://www.winehq.com . It is still in "Alpha" release, so don't expect it
to run everything. I have had very mixed results running it without having <br> Windows installed at all.... I find it useful being a don't run Windows at all<br> now. In past installations with Windows actually being installed on the machine<br> I have actually had it run 75-85% of the programs that were installed. This <br> installation is well documented on the Wine website, so I will not cover it <br> here. I suggest that in the beginning that you run the programs from a console<br> box, being that you will have to copy several actual Windows ".dll's" to the<br> "/windows/system" folder. Running from a console box will list the missing <br> "dll's" when running the program. This installation was done with Corel/Debain<br> Linux, so you may have to change a few things depending on your distro.<br> As with most things, you'll mileage will vary. So let's get started!!!<br> <br> *****************************************************************************<br> <br> Download Wine from one of the Mirror's off of Wine's download list. I suggest<br> downloading the ".tgz" files and compiling it yourself...It will work better<br> on your machine this way. I have had mixed results with ".deb" and ".rpm" <br> packages. Unpack the ".tgz" file with the command: <br> <br> tar xvzf wine-xxxxxxxx.tar.gz<br> cd wine-xxxxxxxx<br> ./configure<br> <br> This command will run for several minutes to configure to your system. If you <br> need to add any packages to your machine to compile and run Wine, they will<br> be listed so you'll know what to get. If you need anything, get it and install<br> them, then go back to the "wine-xxxxxxxx" folder and re-run the "./configure" <br> step. <br> Now after a successful configure step, the next command will be listed in the<br> console box...a "make && xxxx" command. Enter this command now.<br> After this finishes enter the compile command:<br> <br> make install<br> <br> This step will also take several minutes, have a cup of coffee and relax for<br> a few minutes.<br> <br> Now copy "wine.ini" from the "wine-xxxxx: folder to "/usr/local/etc" <br> (you may have to create the "etc" folder). Rename "wine.ini" to "wine.conf"<br> <br> Modify "wine.conf" to match (on Corel/Debian distro):<br> <br> ***********************************************************************<br> ;;<br> ;; MS-DOS drives configuration<br> ;;<br> ;; Each section has the following format:<br> ;; [Drive X]<br> ;; Path=xxx (Unix path for drive root)<br> ;; Type=xxx (supported types are 'floppy', 'hd', 'cdrom' and 'network')<br> ;; Label=xxx (drive label, at most 11 characters)<br> ;; Serial=xxx (serial number, 8 characters hexadecimal number)<br> ;; Filesystem=xxx (supported types are 'msdos'/'dos'/'fat', 'win95'/'vfat', 'unix')<br> ;; This is the FS Wine is supposed to emulate on a certain<br> ;; directory structure.<br> ;; Recommended:<br> ;; - "win95" for ext2fs, VFAT and FAT32<br> ;; - "msdos" for FAT16 (ugly, upgrading to VFAT driver strongly recommended)<br> ;; DON'T use "unix" unless you intend to port programs using Winelib !<br> ;; Device=/dev/xx (only if you want to allow raw device access<br> ;;<br> <br> [Drive A]<br> Path=/.cdl_amnt/floppy<br> Type=floppy<br> Label=Floppy<br> Serial=87654321<br> Device=/dev/fd0<br> <br> [Drive C]<br> Path=/usr/local/lib/win<br> Type=hd<br> Label=MS-DOS<br> Filesystem=win95<br> <br> [Drive D]<br> Path=/.cdl_amnt/cdrom1<br> Type=cdrom<br> Label=CD-Rom<br> Filesystem=win95<br> ; make sure that device is correct and has proper permissions !<br> Device=/dev/cdrom<br> <br> [Drive E]<br> Path=/tmp<br> Type=hd<br> Label=Tmp Drive<br> Filesystem=win95<br> <br> [Drive F]<br> Path=${HOME}<br> Type=network<br> Label=Home<br> Filesystem=win95<br> <br> [wine]<br> Windows=c:\windows<br> System=c:\windows\system<br> Temp=e:\<br> Path=c:\windows;c:\windows\system;e:\;e:\test;f:\<br> ; Profile=c:\windows\Profiles\Administrator<br> SymbolTableFile=./wine.sym<br> <br> # <wineconf><br> <br> [DllDefaults]<br> EXTRA_LD_LIBRARY_PATH=${HOME}/wine/cvs/lib<br> DefaultLoadOrder = native, builtin, elfdll, so<br> <br> [DllOverrides]<br> kernel32, gdi32, user32 = builtin<br> krnl386, gdi, user = builtin<br> toolhelp = builtin<br> comdlg32, commdlg = elfdll, builtin, native<br> version, ver = elfdll, builtin, native<br> shell32, shell = builtin, native<br> lz32, lzexpand = builtin, native<br> commctrl, comctl32 = builtin, native<br> wsock32, winsock = builtin<br> advapi32, crtdll, ntdll = builtin, native<br> mpr, winspool.drv = builtin, native<br> ddraw, dinput, dsound = builtin, native<br> winmm, mmsystem = builtin<br> msvideo, msvfw32 = builtin, native<br> mcicda.drv, mciseq.drv = builtin, native<br> mciwave.drv = builtin, native<br> mciavi.drv, mcianim.drv = native, builtin<br> msacm.drv, midimap.drv = builtin, native<br> w32skrnl = builtin<br> wnaspi32, wow32 = builtin<br> system, display, wprocs = builtin<br> wineps = builtin<br> icmp = builtin<br> <br> [options]<br> AllocSystemColors=100<br> <br> [fonts]<br> ;Read documentation/fonts before adding aliases<br> Resolution = 96<br> Default = -adobe-times-<br> <br> [serialports]<br> Com1=/dev/ttyS0<br> Com2=/dev/ttyS1<br> Com3=/dev/modem,38400<br> Com4=/dev/modem<br> <br> [parallelports]<br> Lpt1=/dev/lp0<br> <br> [spooler]<br> LPT1:=|lpr<br> LPT2:=|gs -sDEVICE=bj200 -sOutputFile=/tmp/fred -q -<br> LPT3:=/dev/lp3<br> <br> [ports]<br> ;read=0x779,0x379,0x280-0x2a0<br> ;write=0x779,0x379,0x280-0x2a0<br> <br> [spy]<br> Exclude=WM_SIZE;WM_TIMER;<br> <br> [registry]<br> ; Paths must be given in /dir/dir/file.reg format.<br> ; Wine will not understand dos file names here...<br> <br> ; alternate registry file name: HKCU<br> AltCurrentUserFile=<br> ; alternate registry file name: HKU<br> <br> AltUserFile=<br> ; alternate registry file name: HKLM<br> AltLocalMachineFile=<br> ;These are all booleans. Y/y/T/t/1 are true, N/n/F/f/0 are false.<br> ;Defaults are read all, write to Home and Alt<br> ;Note: it is pointless to specify alt files and neither load nor write to them.<br> ; Global registries (stored in /etc)<br> LoadGlobalRegistryFiles=Y<br> ; Home registries (stored in ~user/.wine/)<br> LoadHomeRegistryFiles=Y<br> ; Load above registries.<br> LoadAltRegistryFiles=Y<br> ; Load Windows registries from the Windows directory<br> LoadWindowsRegistryFiles=Y<br> ; TRY to write all changes to home registries<br> WritetoHomeRegistryFiles=Y<br> ; TRY to write all changes to alt registries<br> WritetoAltRegistryFiles=Y<br> ; Use new file format<br> UseNewFormat=N<br> ; Registry periodic save timeout in seconds<br> ; PeriodicSave=600<br> <br> [Tweak.Layout]<br> ;; WineLook=xxx (supported styles are 'Win31'(default), 'Win95', 'Win98')<br> WineLook=Win98<br> <br> [programs]<br> Default=<br> Startup=<br> <br> [Console]<br> ;Drivers=tty<br> ;XtermProg=nxterm<br> ;InitialRows=25<br> ;InitialColumns=80<br> ;TerminalType=nxterm<br> <br> [Clipboard]<br> ClearAllSelections=0<br> PersistentSelection=1<br> <br> # </wineconf><br> <br> <br> **********************************************************************<br> <br> Now enter the command "wine -version", you should get a result that lists<br> the version of wine you have if Wine is installed properly. You will have <br> to add /usr/local/lib to /etc/ld.so.conf (and then rerun ldconfig). If you <br> have any problems, check with the documentation on the Wine website. You may <br> need to "touch" a few files so Wine can find everything it needs.If this <br> works, copy "sol.exe" from a Windows computer to the "windows" directory <br> on your harddrive (or just a floppy disk), change to that directory and <br> enter the command "wine sol". You should have the Windows Solitaire game <br> running. You should now be able to copy and/or install any Windows progs<br> you want on your "virtual" Windows drive (located in "/usr/local/win").<br> By running these programs from a console box, any ".dll's" that you will<br> need will be listed as "can't find" when Wine attempts to run them. These<br> ".dll's" can be found at http://solo.abac.com/dllarchive/ . After all <br> dependancies are met (ie...you have run them successfully from a console<br> box), you should be able to run these programs by finding them in your<br> filemanager, right-clicking the program's icon, selecting the "Open with..."<br> option, and entering "wine <programname>". <br> <br> Your mileage may vary, but programs I have successfully got to work are <br> Solitaire, Notepad, Netscape, and CuteHTML at this time. If you email me<br> with other programs you have got to work, I will list them here. <br> Happy emulating!!!!<br> <br><br> <br><h1><b>~Guitarlynn</B></h1><br><br> </B></td> </tr> <tr valign="top" align="center"> <td height=3></td> </tr> <tr valign="top" align="center"> <td> <img src="pics/opus.gif" border=0 > </td></tr> <tr valign="top" align="center"> <td height=3></td> </tr> <tr valign="top" align="center"> <td height=3></td> </tr> <tr valign="top" align="center"> <td height=15></td> </tr> <tr valign="top" align="center"> <td> | copyright 2000 | <a href="mailto:guitarlynn@kscable.com">Contact Guitarlynn</a> | </td> </tr> </html> <noembed>