Your wine.conf

Your wine.conf

Stored in either ~/.winerc or /usr/local/etc/wine.conf, this file is the Wine version of system.ini. It even follows the same format.

Here's my wine.conf, followed by an explanation.

  WINE REGISTRY Version 2  
  ;; All keys relative to \Machine\Software\Wine\Wine\Config  
  ;;  
  ;; 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" = "/mnt/fd0" 
 "Type" = "floppy" 
 "Label" = "Floppy" 
 #Serial=87654321 
 "Device" = "/dev/fd0" 
 
 [Drive C] 
 "Path" = "/loki" 
 "Type" = "hd" 
 "Label" = "loki" 
 "Filesystem" = "win95" 
 
 [Drive D] 
 "Path" = "/fenrir" 
 "Type" = "hd" 
 "Label" = "fenrir" 
 "Filesystem" = "win95" 
 
 [Drive E] 
 "Path" = "/cdrom" 
 "Type" = "cdrom" 
 "Label" = "CD-Rom" 
 "Filesystem" = "win95" 
 ; make sure that device is correct and has proper permissions! 
 "Device" = "/dev/cdrom" 
 
 [Drive F] 
 "Path" = "/dvd" 
 "Type" = "cdrom" 
 "Label" = "Toshiba" 
 "Filesystem" = "win95" 
 "Device" = "/dev/hdd" 
 
 [Drive G] 
 "Path" = "/tmp" 
 "Type" = "hd" 
 "Label" = "Tmp Drive" 
 "Filesystem" = "win95" 
 
 [Drive H] 
 "Path" = "${HOME} " 
 "Type" = "network" 
 "Label" = "Home" 
 "Filesystem" = "win95" 
 
 [wine] 
 "Windows" = "c:\windows" 
 "System" = "c:\windows\system" 
 "Temp" = "g:\" 
 "Path" = "c:\windows;c:\windows\system;e:\;e:\test;f:\" 
 ;Profile=c:\windows\Profiles\Administrator 
 "GraphicsDriver" = "x11drv" 
 ; <wineconf> 
 
 [DllDefaults] 
 "EXTRA_LD_LIBRARY_PATH" = "${HOME} /wine/cvs/lib" 
 ;DefaultLoadOrder = native, builtin, so 
 "DefaultLoadOrder" = "builtin, so, native" 
 
 [DllOverrides] 
 "kernel32, gdi32, user32" = "builtin" 
 "krnl386, gdi, user" = "builtin" 
 "toolhelp" = "builtin" 
 "comdlg32, commdlg" = "builtin, native" 
 "version, ver" = "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" = "builtin, native" 
 "msacm.drv, midimap.drv" = "builtin, native" 
 "w32skrnl" = "builtin" 
 "wnaspi32, wow32" = "builtin" 
 "system, display, wprocs" = "builtin" 
 "wineps" = "builtin" 
 "icmp" = "builtin" 
 
 [x11drv] 
 ; Number of colors to allocate from the system palette 
 "AllocSystemColors" = "100" 
 ; Use a private color map 
 "PrivateColorMap" = "N" 
 ; Favor correctness over speed in some graphics operations 
 "PerfectGraphics" = "N" 
 ; Color depth to use on multidepth screens 
 ;;ScreenDepth = 16 
 ; Name of X11 display to use 
 ;;Display = :0.0 
 ; Allow the window manager to manage created windows 
 "Managed" = "Y" 
 ; Use XFree86 DGA extension if present 
 "UseDGA" = "Y" 
 ; Use XShm extension if present 
 "UseXShm" = "Y" 
 ; Enable DirectX mouse grab 
 "DXGrab" = "N" 
 ; Create the desktop window with a double-buffered visual 
 ; (useful to play OpenGL games) 
 "DesktopDoubleBuffered" = "N" 
 ; Code page used for captions in managed mode 
 ; 0 means default ANSI code page (CP_ACP == 0) 
 "TextCP" = "0" 
 ; Use this if you have more than one port for video on your setup 
 ; (Wine uses for now the first 'input image' it finds). 
 ;; XVideoPort = 43 
 
 [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 filenames here... 
 
 ;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 
 ; Global registries (stored in /etc) 
 "LoadGlobalRegistryFiles" = "Y" 
 ; Home registries (stored in ~user/.wine/) 
 "LoadHomeRegistryFiles" = "Y" 
 ; Load Windows registries from the Windows directory 
 "LoadWindowsRegistryFiles" = "Y" 
 ; TRY to write all changes to home registries 
 "WritetoHomeRegistryFiles" = "Y" 
 ; Use new file format 
 "UseNewFormat" = "Y" 
 ; Registry periodic save timeout in seconds 
 ; PeriodicSave=600 
  ; Save only modified keys  
  "SaveOnlyUpdatedKeys" = "Y"  
   
  [Tweak.Layout]  
  ;; WineLook=xxx (supported styles are 'Win31'(default), 'Win95', 'Win98')  
  ;WineLook=Win95  
  "WineLook" = "Win98"  
   
  [programs]  
  "Default" = ""  
  "Startup" = ""  
   
  [Console]  
  ;Drivers=tty  
  ;XtermProg=nxterm  
  ;InitialRows=25  
  ;InitialColumns=80  
  ;TerminalType=nxterm  
   
  [Clipboard]  
  "ClearAllSelections" = "0"  
  "PersistentSelection" = "1"  
   
  # < /wineconf >  

I'm not going to talk about how the drives themselves are configured, since the configuration file is (as you can see) pretty much self-explanatory. The last nine-tenths of the file are automatically generated. I set up the C, D, E, F, and G drives myself . If you don't have two win98 drives, and two CD-ROM drives, your setup will probably be a bit simpler. The wineinstall tool will really set up almost all of Wine for you ”including your config file. It's getting to be quite newbie-proof.

At this point, you might be thinking you'll have MS Windows running in a window under Linux. Wine doesn't really work like that yet ”you'd need something like vmware or plex86 to do that. Wine is still rather application based, meaning that you fire off instances of Wine with the argument of the program you'd like started. To demonstrate , let's look at some concrete examples: AIM, Solitaire, MS Word, and Stars!

 



Multitool Linux. Practical Uses for Open Source Software
Multitool Linux: Practical Uses for Open Source Software
ISBN: 0201734206
EAN: 2147483647
Year: 2002
Pages: 257

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net