GuestbookSign our guestbook ContactGet in touch with the authors ArchiveAll unixwerk articles since 2003
July 13, 2013

Tip: How to Install MS Office with Wine

This article describes how to setup Wine with Slackware 14.0 to be able to run Microsoft Office XP.

Contents

  1. Install wine
  2. Install winetricks
  3. Install cabextract
  4. Install Fonts
  5. Install/Configure some Microsoft Packages with winetricks
  6. Fix msi2 with winecfg
  7. Mount the Office CD with the Unhide Option
  8. Start the Office installer
  9. Start Winword
  10. Desktop Integration
  1. References
 

1. Install wine

$ wget http://connie.slackware.com/~alien/slackbuilds/wine/pkg/14.0/wine-1.5.26-i486-1alien.tgz
$ sudo upgradepkg --install-new wine-1.5.26-i486-1alien.tgz
 

2. Install winetricks

$ wget http://winetricks.org/winetricks
$ cp winetricks ~/bin
$ chmod +x ~/bin/winetricks
 

3. Install cabextract

Note: Use version 1.3 or higher! Version 1.2 cannot extract large files and winetricks would fail on some files to extract.

Slackbuilds can be found at slackbuilds.org:

$ wget http://slackbuilds.org/slackbuilds/14.0/system/cabextract.tar.gz
$ tar xvzf cabextract.tar.gz
$ wget http://www.cabextract.org.uk/cabextract-1.4.tar.gz
$ mv cabextract-1.4.tar.gz cabextract/
$ cd cabextract/
$ sudo sh cabextract.SlackBuild
$ sudo upgradepkg --install-new /tmp/cabextract-1.4-x86_64-1_SBo.tgz
 

4. Install Fonts

$ winetricks corefonts
$ winetricks allfonts
 

5. Install/Configure some Microsoft Packages with winetricks

$ winetricks msi2 riched30 vcrun2003 vcrun2005 vb3run
 

6. Fix msi2 with winecfg

Run »winecfg«

$ winecfg 
     -> Libraries -> msi(native, builtin) -> Edit

and change the order to: builtin, native  

7. Mount the Office CD with the Unhide Option

$ sudo mount -t iso9660 -o ro,unhide /dev/cdrom /media/cdrom
 

8. Start the Office Installer

$ cd /media/cdrom
$ wine setup.exe

Then just follow the dialogues as if you would run the installer under Windows.  

9. Start Winword

$ wine "$HOME/.wine/drive_c/Program Files/Microsoft Office/Office10/WINWORD.EXE"
 

10. Desktop Integration

There is an RPM package available under »sourceforge.net/projects/magiclinux-plus/files/update/RPMS.soft« that can be converted to a Slackware package:

$ rpm2txz wine-desktop-1.5.31-1mgc26.i686.rpm
$ mv wine-desktop-1.5.31-1mgc26.i686.txz wine-desktop-1.5.31-i686-1mgc26.txz ¹
$ sudo upgradepkg --install-new wine-desktop-1.5.31-i686-1mgc26.txz
¹ rpm2txz does not convert the naming scheme from Redhat style to Slackware style. That's why we rename the package here.
 

A. References