| Windows
From Linux - Wine |

Wine
A windows platform for your Linux machine
Wine
is a program that allows Linux users to use Windows programs.
Wine sets up a fake windows file system on your Linux partition
and enables you to load programs that will only run on a Windows
platform. Programs such as your training CD's, or Excel, Word,
Internet Explorer. Wine has not yet been perfected it does have
some problems. But it does give Linux users an opportunity to
use some of their must have programs that only operate in Windows.
Get the Wine Training CD
Which
Version of Wine?
One of the frustrations of using Wine is that there are a number
of versions and companies that offer wine. This section is to
help you figure out which one you have.
Use
this command:
rpm -q wine
If
a Wine version is installed you will get a return:
wine-20030508-1rh9winehq
This is the version for Red Hat 9.
codeweavers-wine-20020904-7.i386.rpm
This is the codeweavers.com version of Wine.
wine-20030219-1rh8winehq.i686.rpm
This one is from winehq.com, notice it is especially designed
for Red Hat 8.0 "rh8".
You
can see there are different dates and you need to take this
into account. Get the most recent date and the Wine for your
particular version of Linux. Download the RPM for your Version.
Install
RPMS by copying them to to your /tmp directory:
drag
and drop if you are graphical user interface
if
not from a terminal, after the drive is mounted (mount /mnt/cdrom):
cp
wine-20030508-1rh9winehq.i686.rpm /tmp
This
is for Red Hat 9, of course move the one that is for your operating
system.
install
using this command:
rpm
-ivh wine-20030508-1rh9winehq.i686.rpm
That's
It!
When
Wine is installed it will create a directory structure that
looks like this:
/usr/share/wine-c
autoexec.bat
config.sys
My Documents
Program Files
windows
You
can see that under the wine-c directory is a basic windows system
imitation. This is Drive "C" in your Wine config file.
Wine imitates the directory structure of a Windows machine to
get it all to work. Your programs that you install on the "C"
drive will go into this "Program Files" directory.
Test
Wine with this command to run notepad:
wine
/usr/share/wine-c/windows/system/notepad.exe
Wine
from a Terminal
Once
Wine is installed you can run it by following this procedure.
First
mount the CDROM that you are going to use. This is done by opening
a terminal and typing:
mount /dev/cdrom
Once
the CDROM is mounted, view the contents of the CDROM to find
the exact name of the .exe program that runs the CD. This can
be done by typing:
cd /mnt/cdrom
You
will now be on the CDROM and if you type:
ls
You
will see the contents of the CDROM. There will be a file with
a .exe
extension on it (example:linux+.exe). Type the command Wine
and follow
it with the name of the exe file on the CDROM, example:
wine linux+.exe
That
will start the program and you can then run the training CD.
Wine should be ready to run the CD.
Installing
Programs in the Terminal
Let's
say you want to install Office 2000 on your Linux machine. You
would mount the CDROM as in the previsous page and then you
would start the installation by typing:
wine
/mnt/cdrom/SETUP.EXE
This
will begin the setup process of the Office 2000 program. You
will have the choice where to install the program. If you install
the program in the "C" drive it will be installed
at this location:
/usr/share/wine-c/Program
Files/Office/
When
you look at the config file on the next page you will see that
Wine sets up drives:
Drive
A = Floppy
Drive C = /usr/share/wine-c
Drive D = /mnt/cdrom
Drive E = /tmp
Drive F = a user's Home directory for example /home/fred
Drive Z = /
This
helps you know where you are setting up each program installation.
Config
File
Your
config file is found in each user's directory. For example use
these commands:
cd
~
cat .wine/config
[Drive
A]
"Path" = "/mnt/floppy"
"Type" = "floppy"
"Label" = "Floppy"
"Serial" = "87654321"
"Device" = "/dev/fd0"
[Drive
C]
"Path" = "/usr/share/wine-c"
"Type" = "hd"
"Label" = "MS-DOS"
"Filesystem" = "win95"
[Drive
D]
"Path" = "/mnt/cdrom"
"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"
[Drive
Z]
"Path" = "/"
"Type" = "network"
"Label" = "Root"
"Filesystem" = "win95"