Related YoLinux Tutorials:
°Using DOS Floppies
°Unix for DOS users
°Integrate Linux into MS/Windows environment
°YoLinux Tutorials Index
|Wine: Installation / Configuration / Use with Microsoft Office 2000
The Wine compatibility layer is an implementation of the
Microsoft API on X-Windows which allow Linux to run Microsoft Windows
application. The limitation is that since the Microsoft applications
have been compiled to run on Intel 32 bit
architectures, Wine is limited to the same architecture. The executable
will run natively in Linux. Wine is NOT a virtual machine. Thus Wine
does NOT read each binary instruction.
Wine does NOT require the installation of the Microsoft Windows
The Microsoft Windows application will run on Linux executing its Intel
binary instructions. The Wine compatibility layer is invoked every time
the application makes a call to a Microsoft Windows API function. Wine
will handle the call and make the appropriate X-Window call to display
or render the appropriate graphics.
This particular example is for Wine version 0.9.42 on Red Hat Enterprise Linux 5, but other versions of Linux should be similar.
Wine Installation: (as root)
System wide installation for all users:
If your system configuration has a large number of users connected to a
file server, network traffic due to application loading could become
huge as well as the disk space employed to install a copy of Wine and
all of the MS/Windows applications duplicated for each user. For such
systems it is best to install a single copy of a Wine configuration
with applications in a systems area.
- Set the environment variable for the administrator (root) and all users: export WINEPREFIX=/opt/wine
- Execute the command: wineprefixcreate
- Then execute: winecfg
|Installing MS/Office 2000
Insert the CD-ROM and execute the following command to launch the MS/Office installer:
- Installing MS Office 2003: wine /media/cdrecorder/setup.exe
- Installing MS Office XP: wine /media/cdrecorder/SETUPPRO.EXE
- Installing MS Office 2000: /media/cdrecorder/setuppro.exe
I found that the only version of MS/Office which will install
properly under Wine 0.9.42, was MS/Office 2000. Check the Wine list of
working applications as success is kernel and release specific.
- Man pages available: wine, wineserver, wineprefixcreate
- Microsoft Office can be uninstalled using the GUI program: uninstaller
- A Wine version of "regedit" is used to manually edit the
registry. In fact it looks and operates just like the MS/Windows
version of "regedit".
- If you install IE or Quicktime, these applications will install a
"Control Panel" application made accessible using the command "wine control".
- "wineserver" usually gets started automatically by Wine
whenever the first wine process gets started. It can also leave a
"stuck" process. Cleanup as follows:
List "wineserver" processes: ps auxw | grep wine
1033 29604 0.4 0.0 4316 1744 ? Ss 14:21 0:06 /usr/lib/../bin/wineserver
wineserver -k[n] Kill the current wineserver, optionally with signal n.
1033 30859 0.0 0.0 3880 680 pts/8 R+ 14:45 0:00 grep wine
Other processes to watch for/kill: explorer.exe
- Winprefix can be used for a single application installation
which would be separate than other Wine/MS application installations:
- mkdir appname
- WINEPREFIX="/home/userX/appname" wineprefixcreate
This will create a directory called /home/userX/appname. In this directory you will find a fake Windows drive and the Wine configuration files system.reg and user.reg.
- Command to install the application: WINEPREFIX="appname" wine setup.exe
- Run application: WINEPREFIX="/home/userX/appname" wine ~/appname/drive_c/Program\ Files/app/appname.exe
- For a fresh copy of the default config file:
cp /usr/share/doc/wine-xxxxxxxx/samples/config ~/.wine/config
- To fix CD-ROM drive recognition problems, edit file /etc/fstab
/dev/cdrom /cdrom iso9660 ro,noauto,users,unhide 0 0
or use mount command: mount -t iso9660 -o ro,unhide /dev/hdd /mnt/cdrom
/dev/hdd /mnt/cdrom auto umask=0,unhide,user,codepage=850,iocharset=iso8859-15,noauto,ro,exec 0 0
Add the parameter "unhide".
- No longer required: Older versions of Wine require a download/Install DCOM98 (Distributed Component Object Model) - [Download] [Info]
Extract: wine dcom98.exe /C
Install: WINEDLLOVERRIDES="ole32=n;rpcrt4=n;oleaut32=n" wine dcom98.exe
Note wget has a download size limit of 2GB. Use ncftpget or curl.
- Legacy Wine - Install Microsoft Office:
- cd /mnt/cdrom
- wine INSTALL.EXE
- DLLOVERRIDES="ole32=n;oleaut32=n;rpcrt4=n" wine INSTALL.EXE
- WineTools: Menu driven Wine configuration tool and installer for Microsoft Windows applications.
Make a note of which version of Wine should be used with WineTools.
WineHq.com will release newer versions of Wine which are not
rpm -ivh winetools-2.1.2-jo.i386.rpm
- Download and install xdialog. (Required for WineTools)
rpm -ivh xdialog-2.1.2-1.1.fc3.rf.i386.rpm
- WineTools: Wine configuration tool - I could not get this to work at all!!!
- Fedora Core users: Turn off pre-linking (as root)
To turn back on: /etc/cron.daily/prelink
- prelink -uav
- rm -f /etc/prelink.cache
- True type font (.ttf) files can be placed in .../drive_c/windows/fonts/
- Download fonts from http://mesh.dl.sourceforge.net/sourceforge/corefonts/arial32.exe and place into ~/winetools/fonts
- Start Wine configuration program as regular user: /usr/local/bin/wt2
- Select "OK" to get to "Base setup".
Select each item and then "OK". Only one language needs to be selected.
Note: True Type Arial font installation requires an internet connection. - Don't do this step!!!
- When launching WineTools, the dialog box will directly
specify the compatable versions of Wine. This is not necessarily in
sync with the web page which lists compatability for a given version of
WineTools and maybe not for the version you are using. This is a
problem you may run into if upgrading Wine from source.
|Running Microsoft Office 2000 on Linux using Codeweavers Crosover (2.0.1) version of Wine:
The only way to run some of the advanced and more complex MS/Windows XP
games and aplications with Wine, is with the commercial product,
Code Weavers Crossover version of Wine. You can try the
30 day trial version
Installation of Wine and Microsoft Office 2003 and 2000 are covered below.
Note that Outlook requires the following instructions to operate properly as
Outlook needs MS/Explorer in order to provide all the proper libraries.
This product allows seamless integration of Microsoft applications on Linux.
Codeweaver Crossover and Microsoft Office 2000 Installation:
Note: The Microsoft Office installation wizard will display a pop-up message box requesting:
"reboot computer". This is a message for users of the Microsoft operating
system which require a reboot to read the new registry settings. This is NOT
required for Linux users. Do not reboot your system. Crossover will perform a
restart of it's software which will re-read the Windows applications registry.
- Download 30 day trial version or purchase licensed version from Codeweavers
- As root install Crossover RPM: [prompt]# rpm -ivh cxoffice-2.0.1-1.i386.rpm
or install from install shell script for Linux distributions which
do not support RPMs.
Installs to: /opt/cxoffice/
Docs: /opt/cxoffice/README, /opt/cxoffice/doc/index.html
- Start/prepare Crossover: (login as user)
- Start Crossover Office Setup (2.0.1)
- [prompt]$ /opt/cxoffice/bin/cxsetup
- Proxy setup if required:
- Select "Use HTTP Proxy"
- Host: proxy.megacorp.com
- Port: 80
- Install Office 2000: Run Microsoft Office setup installer program.
- Select "Microsoft Office 2000"
- New Software: Select Install
Select "Microsoft Office 2000"
- Install from "Microsoft Office installation CD" or choose "Alternate CD-Rom location"
(Note: You have the option of installing from sources other than the CD.
i.e. shared drive. See the Yolinux
Microsoft network integration tutorial
if you need to mount a MS/Windows file server.)
- Now MS Windows Installer pops up. Install Office 2000.
- Enter: Name, initials, organization and CD key.
(Note: You may have to enter the letters of the license key as lower case letters.)
- Accept license
- Install default to "Program Files"
- Install "DECOM95"
- Click Install
- Select "*DECOM95"
- Select radio button "Advanced Install".
- Install file: /mnt/cdrom/IE5/EN/DECOM95.EXE
- Install IE:
- Check the checkbox labeled "Install unsupported software"
- Other exe file: /mnt/cdrom/IE5/EN/IE5SETUP.EXE
- Yes resume setup
Configure/Run Microsoft Application: Outlook
If you do not install IE5, Outlook will not work. Microsoft Internet Explorer
is not installed as part of the Microsoft Office installation and must be
- Select "Menus" tab and select Outlook icon
or use regular applications start menu.
- Outlook startup: Email service options: Corporate or Workgroup
- Inbox Setup wizard: Select "Microsoft Exchange Server"
MS Exchange Server: Node-Name-Of-Server
- Travel: No
- Exchange server
- User: login-user-id
Cutting and pasting between Linux X-Windows and Microsoft Windows applications:
- MS/Windows to X/Windows:
Cut in MS/Windows: Select text then ctrl-C (copy) or Cnlt-X (cut)
Paste in X/Windows: press middle mouse button. (both left and right at
the same time if using a two button mouse emulating a three button mouse)
- X/Windows to MS/Windows:
Cut in X/Windows: Select text (left mouse button pressed from start of
text to end of text, or double click to grab single word or tripple
click to grab entire line of text.)
Paste in MS/Windows: ctrl-V
- Microsoft applications running on Crossover Office will not view Linux file/directory soft links in the file selection browser.
- Starting Windows Media Player: $HOME/.cxoffice/.cxoffice-app-3 ms-windows-media-video-file.wmv
- I had NO luck trying to even launch let alone run
MS/Project 2000 with Crossover 2.0 but it works great with the new
- Script to start Microsoft Visio: /opt/bin/Start-Visio
Visio desktop launcher:
# Actual Linux file: /home/userX/.cxoffice/dotwine/fake_windows/Program Files/Microsoft Office/Visio10/Visio.exe
/opt/cxoffice/bin/wine --workdir "/home/userX/.cxoffice/dotwine/fake_windows/My Documents" \
"C://Program Files//Microsoft Office//Visio10//visio.exe"
- FC 3: $HOME/Desktop/Visio.desktop
- RH 7/8/9: $HOME/.gnome-desktop/Visio.desktop
Visio Tip: A screen repaint is often necessary after an
image translation using the scrollbar. I create an extra sheet. I
select the second sheet and then return to the sheet I'm working on to
force a repaint the screen.
- Turn off the "Office Assistant" paperclip.
Crossover Upgrade (2.1.0):
[root prompt]# mkdir /../tmp
[root prompt]# cp install-crossover-office-21.1.0.zip /../tmp
[root prompt]# cd /../tmp
[root prompt]# unzip install-crossover-office-21.1.0.zip
[root prompt]# md5sum install-crossover-office-2.1.0.sh
[root prompt]# chmod +x install-crossover-office-2.1.0.sh
[root prompt]# rm /opt/cxoffice/bin/wineserver
[root prompt]# rm /opt/cxoffice/bin/wineloader
[root prompt]# rm /opt/cxoffice/lib/xml/libperl.so.5.8
[root prompt]# ./install-crossover-office-2.1.0.sh
- I found that I had to remove the previous versions of the files
/opt/cxoffice/bin/wineserver, /opt/cxoffice/bin/wineloader and
/opt/cxoffice/lib/xml/libperl.so.5.8 in order to have a flawless
- Un-zip and install from a directory other than your target destination directory.
Crossover Upgrade (3.0): rpm -Uvh --force xoffice--------.rpm
Change Note: The opperation of Linux cut and paste has switched to a more Microsoft
Windows like buffer interface.
In Crossover 2.X one could cut into the regular X-Window
copy/cut buffer with the left mouse button and then paste in the Crossover 2.X
application with the traditional ctrl-V. The X-Window applications now have
to support a special non-X-Window controlled cut buffer. For example
Mozilla supports the Linux ctrl-C/ctrl-X copy/cut buffer. The GNOME terminal
supports copy/cut with shift-ctrl-C/shift-ctrl-X. These Linux buffers can be
exchanged with a Crossover 3.0 application.
The traditional X-Window copy/cut buffer can no longer be exchanged with Crossover controlled applications.