Understanding WINE

For WINE to let you run Windows applications, it needs to have an environment set up that looks like a Windows system. When you install the wine package in Red Hat Linux, the package creates /etc/wine/wine.conf and /etc/wine/system.reg files that, like the Windows registry, identify the locations of components an application would need in a Windows operating system. The location of the basic Windows operating-system directories for WINE is the /usr/share/wine-c directory (in other words, drive C:) by default. Table 5-5 shows how C: and other Windows drive letters are mapped into Linux directories and devices._

Table 5-5: Windows Drive Letters in WINE

Description

Directory or

Output

Location

Linux Device Name (If Applicable)

Floppy drive

A:

/mnt/floppy

/dev/fd0

Hard disk #1

C:

/usr/share/w ine-c

CD-ROM

D:

/mnt/cdrom

/dev/cdrom

Temp directory

E:

/tmp

User's home directory

F:

$home (user's home directory)

Root directory

Z:

/

Serial ports

COM1 COM2 COM3 COM4

/dev/ttyS0 /dev/ttyS1 /dev/ttyS2 /dev/ttyS3

Parall ports

Lpt1

/dev/lp0

Print spooler

LPT1

Pipes printer jobs to the lpr command (|

lpr)

WineLook

Win95 (how the system appears to apps: Win31, Win98, or the default Win95)

Within the /usr/share/wine-c directory (that is, your C: drive), you should see some things that are familiar to you if you are coming from a Windows environment: autoexec.bat and config.sys

Within the /usr/share/wine-c directory (that is, your C: drive), you should see some things that are familiar to you if you are coming from a Windows environment: autoexec.bat and config.sys files (empty to start with), and My Documents, Program Files, and windows directories. Assuming that the basic directory structure is okay with you, you may still want to consider changing a few items. For example, you may want to change the command to print documents (set in the /etc/wine.conf file) to something other than the " | lpr" command to use a particular printer or add some Linux printing options.

Was this article helpful?

0 0

Post a comment