Jump to content

Just getting started with wine


Recommended Posts

I'm trying to install a Windows application because the Linux version is so out of date it won't work under MDK 9. The first problem I have is the following error message:


Warning: /usr/bin/wine.bin not accessible from a configured DOS drive


I've *tried* reading the wine documentation and it's pretty difficult to follow. Any help is greatly appreciated.

Link to comment
Share on other sites

In your home directory, there should be a directory called ".wine".


Switch to it, then there should be a file called "config".


Either use "cat config" at the console, or open the config file with a text editor. Show me the file and I'll see if I can see the problem.

Link to comment
Share on other sites

Thanks emh! I'd found the config file earlier but don't know enough to know what's wrong. Anyway, here it is.



;; All keys relative to MachineSoftwareWineWineConfig


;; If you think it is necessary to show others your complete config for a

;; bug report, filter out empty lines and comments with

;; grep -v "^;" ~/.wine/config | grep '.'


;; 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/floppy"

"Type" = "floppy"

"Label" = "Floppy"

"Filesystem" = "win95"

"Device" = "/dev/fd0"


[Drive C]

"Path" = "/mnt/windows"

"Type" = "hd"

"Label" = "Windows"

"Filesystem" = "win95"


[Drive D]

"Path" = "${HOME}"

"Type" = "network"

"Label" = "Home"

"Filesystem" = "win95"


[Drive E]

"Path" = "/tmp/winetmp-${USER}"

"Type" = "hd"

"Label" = "Tmp Drive"

"Filesystem" = "win95"



"Windows" = "C:Windows"

"System" = "C:Windowssystem"

"Temp" = "E:"

"Path" = "C:Windows;C:Windowssystem;D:;E:"

"Profile" = "C:WindowsProfilesAdministrator"

"GraphicsDriver" = "x11drv"

; Wine doesn't pass directory symlinks to Windows programs by default.

; Enabling this may crash some programs that do recursive lookups of a whole

; subdir tree in case of a symlink pointing back to itself.

;"ShowDirSymlinks" = "1"

"ShellLinker" = "wineshelllink"


# <wineconf>



; Windows version to imitate (win95,win98,winme,nt351,nt40,win2k,winxp,win20,win30,win31)" },

"Windows" = "win98"

; DOS version to imitate

;"DOS" = "6.22"


; Be careful here, wrong DllOverrides settings have the potential

; to pretty much kill your setup.


"rpcrt4" = "builtin, native"

"oleaut32" = "builtin, native"

"ole32" = "builtin, native"

"commdlg" = "builtin, native"

"comdlg32" = "builtin, native"

"ver" = "builtin, native"

"version" = "builtin, native"

"shell" = "builtin, native"

"shell32" = "builtin, native"

"shfolder" = "builtin, native"

"shlwapi" = "builtin, native"

"shdocvw" = "builtin, native"

"lzexpand" = "builtin, native"

"lz32" = "builtin, native"

"comctl32" = "builtin, native"

"commctrl" = "builtin, native"

"advapi32" = "builtin, native"

"crtdll" = "builtin, native"

"mpr" = "builtin, native"

"winspool.drv" = "builtin, native"

"ddraw" = "builtin, native"

"dinput" = "builtin, native"

"dsound" = "builtin, native"

"opengl32" = "builtin, native"

"msvcrt" = "native, builtin"

"msvideo" = "builtin, native"

"msvfw32" = "builtin, native"

"mcicda.drv" = "builtin, native"

"mciseq.drv" = "builtin, native"

"mciwave.drv" = "builtin, native"

"mciavi.drv" = "native, builtin"

"mcianim.drv" = "native, builtin"

"msacm.drv" = "builtin, native"

"msacm" = "builtin, native"

"msacm32" = "builtin, native"

"midimap.drv" = "builtin, native"

; you can specify applications too

"notepad.exe" = "native, builtin"

; default for all other dlls

"*" = "native, builtin"



; 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 multi-depth screens

;;"ScreenDepth" = "16"

; Name of X11 display to use

;;"Display" = ":0.0"

; Allow the window manager to manage created windows

"Managed" = "Y"

; Use a desktop window of 640x480 for Wine

;"Desktop" = "640x480"

; Use XFree86 DGA extension if present

; (make sure /dev/mem is accessible by you !)

"UseDGA" = "Y"

; Use XShm extension if present

"UseXShm" = "Y"

; Use XVidMode extension if present

"UseXVidMode" = "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"

; Run in synchronous mode (useful for debugging X11 problems)

;;"Synchronous" = "Y"



;Read the Fonts topic in the Wine User Guide before adding aliases

;See a couple of examples for russian users below

"Resolution" = "96"

"Default" = "-adobe-helvetica-"

"DefaultFixed" = "fixed"

"DefaultSerif" = "-adobe-times-"

"DefaultSansSerif" = "-adobe-helvetica-"


;; default TrueType fonts with russian koi8-r encoding

;"Default" = "-monotype-arial-*-*-*--*-*-*-*-*-*-koi8-r"

;"DefaultFixed" = "-monotype-courier new-*-*-*--*-*-*-*-*-*-koi8-r"

;"DefaultSerif" = "-monotype-times new roman-*-*-*--*-*-*-*-*-*-koi8-r"

;"DefaultSansSerif" = "-monotype-arial-*-*-*--*-*-*-*-*-*-koi8-r"

;; default cyrillic bitmap X fonts

;"Default" = "-cronyx-helvetica-"

;"DefaultFixed" = "fixed"

;"DefaultSerif" = "-cronyx-times-"

;"DefaultSansSerif" = "-cronyx-helvetica-"


; the TrueType font dirs you want to make accessible to wine


;; standard ttf font dir

"dir1" = "/usr/X11R6/lib/X11/fonts/TTF"

;; this should be on most boxes

"dir2" = "/usr/share/fonts/ttf/western"

;; drakfont dir

"dir3" = "/usr/X11R6/lib/X11/fonts/drakfont/ttf"

;; empty add path to ttf fonts here

;"dir4" = " "



"Com1" = "/dev/ttyS0"

"Com2" = "/dev/ttyS1"

"Com3" = "/dev/ttyS2"

"Com4" = "/dev/modem"



"Lpt1" = "/dev/lp0"



;; key: io-base of the emulated port

;; value : parport-device{,timeout}

;; timeout for auto closing an open device ( not yet implemented)

;"378" = "/dev/parport0"

;"278" = "/dev/parport1"

;"3bc" = "/dev/parport2"



"FILE:" = "tmp.ps"

"LPT1:" = "|lpr"

"LPT2:" = "|gs -sDEVICE=bj200 -sOutputFile="/tmp/winetmp-${USER} -q -"

"LPT3:" = "/dev/lp3"



;"read" = "0x779,0x379,0x280-0x2a0"

;"write" = "0x779,0x379,0x280-0x2a0"



;"RelayExclude" = "RtlEnterCriticalSection;RtlLeaveCriticalSection"

;"RelayInclude" = "user32.CreateWindowA"

;"SnoopExclude" = "RtlEnterCriticalSection;RtlLeaveCriticalSection"

;"SpyExclude" = "WM_SIZE;WM_TIMER;"



;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"

; Registry periodic save timeout in seconds

; "PeriodicSave" = "600"

; Save only modified keys

"SaveOnlyUpdatedKeys" = "Y"



;; supported styles are 'Win31'(default), 'Win95', 'Win98'

;; this has *nothing* to do with the windows version Wine returns:

;; set the "Windows" value in the [Version] section if you want that.

"WineLook" = "Win98"



;"Drivers" = "tty"

;"XtermProg" = "nxterm"

;"InitialRows" = "25"

;"InitialColumns" = "80"

;"TerminalType" = "nxterm"



"ClearAllSelections" = "0"

"PersistentSelection" = "1"


; List of all directories directly contain .AFM files


"1" = "/usr/share/fonts/default/ghostscript"

;; provided by urw-fonts

"2" = "/usr/share/fonts/default/Type1"

;;provided by gnome-print

"3" = "/usr/share/fonts/afms/adobe"

;; provided by enscript

"4" = "/usr/share/enscript/afm"

;;provided by Openoffice

;"5" = "/usr/lib/openoffice/share/psprint/fontmetric"

;;provided by Abiword

;"6" = "/usr/share/AbiSuite/fonts"



#"Drivers" = "wineoss.drv"

"Drivers" = "winearts.drv"

"WaveMapper" = "msacm.drv"

"MidiMapper" = "midimap.drv"



;; HEL only: Number of waveOut fragments ahead to mix in new buffers.

;"HELmargin" = "5"

;; HEL only: Number of waveOut fragments ahead to queue to driver.

;"HELqueue" = "5"

;; Max number of fragments to prebuffer

;"SndQueueMax" = "28"

;; Min number of fragments to prebuffer

;"SndQueueMin" = "12"


;; sample AppDefaults entries


"shlwapi" = "native"

"rpcrt4" = "native"

"ole32" = "native"

"shdocvw" = "native"

"wininet" = "native"

"shfolder" = "native"

"shell32" = "native"

"shell" = "native"

"comctl32" = "native"



;"Desktop" = "800x600"



;"Windows" = "nt40"


;; Some games (Quake 2, UT) refuse to accept emulated dsound devices.

;; You can add an AppDefault entry like this for such cases.


;"EmulDriver" = "N"


# </wineconf>

Link to comment
Share on other sites

[Drive A]

"Path" = "/mnt/floppy"

"Type" = "floppy"

"Label" = "Floppy"

"Filesystem" = "win95"

"Device" = "/dev/fd0"


[Drive C]

"Path" = "/mnt/windows"

"Type" = "hd"

"Label" = "Windows"

"Filesystem" = "win95"


[Drive D]

"Path" = "${HOME}"

"Type" = "network"

"Label" = "Home"

"Filesystem" = "win95"


[Drive E]

"Path" = "/tmp/winetmp-${USER}"

"Type" = "hd"

"Label" = "Tmp Drive"

"Filesystem" = "win95"



"Windows" = "C:Windows"

"System" = "C:Windowssystem"

"Temp" = "E:"

"Path" = "C:Windows;C:Windowssystem;D:;E:"

"Profile" = "C:WindowsProfilesAdministrator"

"GraphicsDriver" = "x11drv"


Looks like you're using Wine with an existing Windows installation.


I'm guessing the reason why it won't work is because your temp and network directories aren't defined as partitions you have write access to.


Under Drive D, try replacing "${HOME}" with your actual home drive. (i.e. /home/username ). Under Drive E, replace "/tmp/winetmp-${USER}" with a drive you have write access to, could be either /home/username/tmp or you could even use a drive name on your Windows partition, such as /mnt/windows/tmp.


See if that works.


By the way, which version of Windows are you using it with? If it's with any of the NT based family (i.e. NT/2000/XP), you're most likely not going to get Wine to work with it. For this, you'll need to install wine using a fake windows installation. If the above suggestion didn't help, try installing without windows (to do that, just simply unmount your windows partition before installing wine, then remount it after installing wine)

Link to comment
Share on other sites

Well I made the changes and then unmounted Windows, removed wine and re-installed and now I'm receiving this error:


Invalid path 'C:Windows' for windows directory: does not exist

Perhaps you have not properly edited or created your Wine configuration file.


I have Windows ME installed on a second HD.

Link to comment
Share on other sites

I actually meant that to be two separate suggestions. I wasn't meaning for you to make the changes AND re-install Wine. I meant one or the other. Sorry if I was unclear. :oops:


After re-installation, what's listed as your C drive?

Link to comment
Share on other sites

The only other thing I can think of is to add another drive to your config file.


Try adding this in your drives section:


[Drive F]

"Path" = "/usr/bin"

"Type" = "network"

"Label" = "Network"

"Filesystem" = "win95"


If that doesn't work, replace the Type with "hd" instead of "network"


If neither suggestion works, I'm out of ideas.

Link to comment
Share on other sites

  • 1 month later...
Guest jennifer2323
In your home directory, there should be a directory called ".wine".


Switch to it, then there should be a file called "config".


Either use "cat config" at the console, or open the config file with a text editor.  Show me the file and I'll see if I can see the problem.


:cry: i saw that u are pretty familar with installing wine files. got a quick question for ya--where do u download or unzip the wine file whenever u get it--my problem is that i dont know what or where to put my wine file whenever i unzip it and i was reading on a website on how and where to put it and i dont even know how to read the instructions on how to do it---can u explain to me how u configure wine to install on my linux server? i saw that u told that one person to look in the home directory for wine--i dont have a folder called that--what do i do?

Link to comment
Share on other sites

simple guide for new users of wine (using a rpm-based system).


- if you dont want to get hassled with the compiling part, grab the daily CVS rpm package at wine.dataparty.no.


- make sure you have a ¨/.wine/wine.conf in your system. the rpm package has a template that you need to edit to suit the configuration that you have on your system (especially the number of windows drives that you need wine to access). you can read the wine.conf to get a clue on how to construct 'virtual windows drives'. on my home machine i have windows drives c-i but i only let wine see c,e-h.



the good thing about the rpm way of installing is that you would know if you needed another package to satisfy all of wine's dependencies. urpmi and rpmfind should help you in this matter. in my case i had to install a libwine package which i found easily using the above resources. the installation guide in dataparty suggest that you use -nodeps and -force when installing the package. i will suggest that you dont follow that unless you really know what you are doing.


and for jennifer, there is a dot before the name of the wine folder meaning its a hidden folder. you will have to do a

$ ls -a

to see it. you will have to create it if it doesnt exist

$ md ~/.wine

. refer to the wine.conf tutorial in the dataparty site. i assure you that you can finish it at around 5 minutes.



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...