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