Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Installing Microsoft Office 2010 on Linux Using Wine and Winetricks

This guide provides step-by-step instructions for installing Microsoft Office 2010 on a Linux system using Wine and winetricks. It includes setting up a 32-bit Wine prefix, installing necessary components, configuring gdiplus to avoid mouse input issues, and troubleshooting common problems.

Prerequisites

  • Operating System: A Linux distribution (e.g., Ubuntu, Fedora, Arch Linux).
  • Wine: Version 6.0 or later (staging branch recommended for better compatibility). Install via your package manager or WineHQ repository.
    • Check version: wine --version
    • Update if needed: Follow WineHQ's instructions for your distro.
  • Winetricks: Latest version for installing Windows components.
    • Install: sudo apt install winetricks (Debian/Ubuntu) or equivalent for your distro.
    • Verify: winetricks --version
  • Office 2010 Installer: An ISO, physical disc, or setup.exe file for Office 2010 (32-bit recommended).
  • Hardware: At least 2GB RAM and a modern CPU for smooth performance.
  • Display Server: X11 is preferred over Wayland for better Wine compatibility.

Installation Steps

1. Create a 32-bit Wine Prefix

Office 2010 works best in a 32-bit Wine environment to avoid compatibility issues with 64-bit libraries.

WINEPREFIX=~/.wine-office WINEARCH=win32 wine wineboot
  • This creates a new Wine prefix at ~/.wine-office.
  • WINEARCH=win32 ensures a 32-bit environment.
  • Run winecfg to verify the prefix is set up (it will initialize automatically).

2. Set Windows Version to Windows 7

Office 2010 is optimized for Windows 7, which improves compatibility.

WINEPREFIX=~/.wine-office winecfg
  • In the Applications tab, set "Windows Version" to Windows 7.
  • Click Apply and OK.

3. Install Required Components with Winetricks

Install necessary Windows libraries and components to support Office 2010's functionality, including XML parsing, rich text editing, fonts, and runtime libraries.

WINEPREFIX=~/.wine-office winetricks win7 wsh57 corefonts msls31 riched20 riched30 msxml6 vcrun2008 gdiplus dotnet20
  • Component Details:

    • win7: Sets the Wine prefix to emulate Windows 7 (reinforces winecfg setting).
    • wsh57: Installs Windows Script Host for scripting support.
    • corefonts: Microsoft core fonts (e.g., Arial, Times New Roman) for proper document rendering.
    • msls31: Microsoft Line Services for text layout.
    • riched20, riched30: Rich text editing libraries for Word and Excel.
    • msxml6: XML parsing for Office's file formats (.docx, .xlsx).
    • vcrun2008: Visual C++ 2008 runtime for application dependencies.
    • gdiplus: Graphics Device Interface for rendering images and UI elements (will be reconfigured later).
    • dotnet20: .NET Framework 2.0 for add-ins and compatibility (may take time to install).
  • Note: If any component fails to install, try installing it individually (e.g., winetricks msxml6) or update winetricks.

4. Configure gdiplus in Winecfg

The native gdiplus library can cause issues like mouse clicks not registering. Set it to use Wine's built-in version first, then native as a fallback.

WINEPREFIX=~/.wine-office winecfg
  • Go to the Libraries tab.
  • In the "New override for library" dropdown, select gdiplus and click Add.
  • Select gdiplus in the list, click Edit, and set it to Builtin (Wine).
  • Click OK to save.
  • If graphics issues occur later (e.g., blurry images), revisit this step and try setting gdiplus to Native (Windows) after testing.

5. Install Microsoft Office 2010

Mount your Office 2010 ISO or locate the setup.exe file, then run the installer.

WINEPREFIX=~/.wine-office wine /path/to/office2010/setup.exe /norestart
  • Follow the installer prompts.
  • Use a valid product key if available (online activation may fail in Wine).
  • The /norestart flag prevents automatic reboots, which aren't needed in Wine.
  • If the installer hangs, ensure all winetricks components are installed and try again.

6. Launch Office Applications

Test Office applications to confirm functionality.

WINEPREFIX=~/.wine-office wine "C:\Program Files\Microsoft Office\Office14\WINWORD.EXE"
  • Replace WINWORD.EXE with EXCEL.EXE, POWERPNT.EXE, etc., for other Office apps.
  • If the app launches but mouse clicks don't work, proceed to troubleshooting.

7. Enable Virtual Desktop (Optional, for Mouse Issues)

If mouse clicks fail or the UI is unresponsive, enable Wine's virtual desktop to improve input handling.

WINEPREFIX=~/.wine-office winecfg
  • Go to the Graphics tab.
  • Check Emulate a virtual desktop.
  • Set the resolution to match your monitor (e.g., 1920x1080).
  • Optionally, toggle Allow the window manager to control the windows and test both settings.
  • Click Apply and OK, then relaunch Office.

Troubleshooting Common Issues

Mouse Clicks Not Registering

  • Solution 1: Ensure gdiplus is set to "builtin" in winecfg > Libraries.
  • Solution 2: Enable virtual desktop (see step 7).
  • Solution 3: If using Wayland, switch to X11 (log out, select an Xorg session at login).
  • Solution 4: Disconnect extra monitors to avoid multi-monitor input offsets.
  • Solution 5: Update Wine to the latest staging version (wine --version to check).

Activation Errors (e.g., RPC Fault 0xC004F012)

  • Office 2010's licensing service (OSPP) isn't fully supported in Wine, causing loops or crashes.
  • Workaround: Use offline activation with a valid key, or search WineHQ forums for community registry tweaks to bypass activation (ensure legality).
  • Alternative: Consider LibreOffice or Office Online for .docx compatibility without activation issues.

Installation Hangs or Crashes

  • Verify all winetricks components are installed.
  • Use a clean prefix: rm -rf ~/.wine-office and restart from step 1.
  • Run setup with verbose logging: WINEPREFIX=~/.wine-office WINEDEBUG=+err,+warn wine setup.exe /norestart.

Graphics or Font Issues

  • If text or images render poorly, try setting gdiplus to "native" in winecfg.
  • Install additional fonts: winetricks fontsmooth=rgb or winetricks allfonts.
  • Check WineHQ AppDB for Office 2010-specific patches.

Additional Notes

  • Performance: Office 2010 runs with a "Gold" or "Platinum" rating on WineHQ's AppDB but may have minor issues (e.g., add-ins, online features).
  • Backups: Save your ~/.wine-office prefix before making changes.
  • Debugging: For detailed logs, run WINEPREFIX=~/.wine-office WINEDEBUG=+err,+warn wine "C:\Program Files\Microsoft Office\Office14\WINWORD.EXE".
  • Alternatives: If issues persist, consider a Windows virtual machine (e.g., VirtualBox) or LibreOffice for better compatibility.

References

About

Install Office 2010 on Wine and Winetricks

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors