I managed to get Office 2013 almost to work with Crossover, but not with Wine 2.0. Latest Wine is supposed to support Office 2013, but I find no tutorials how to actually achieve that. So if the statement about support is true, how do I accomplish installing MS Office 2013 to Ubuntu with Wine 2.0?

up vote 33 down vote accepted

I installed office 2013 and I used to get a black window after starting it up. I fixed the black screen by following the solution posted in the WineHQ-Forum.

Here's what I did:

Install Wine and Components

First, install wine 2.1 (might als work with 2.0 'winehq-staging')

sudo add-apt-repository ppa:wine/wine-builds
sudo apt-get update
sudo apt-get install --install-recommends winehq-devel

Install 'winbind'

sudo apt install winbind

Create Clean 32bit Prefix for Win7

Crete a clean 32 bit prefix and start up winecfg:

WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 winecfg

In the winecfg applications tab select "Windows version: Windows 7" Close wine config and install winetricks

Install Libraries

sudo apt install winetricks

Then start winetricks for your prefix

WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 winetricks

accept "select the default wineprefix" with OK. Now, select "Install Windows DLL components" and go and install msxml6

I also installed the cambria font, but that shouldn't matter.

Don't close winetricks just yet, you most likely want to fix the black screen bug.

Fix Black Window

In order to fix the black window that impedes Office 13 to be used, add the HKCU\Software\Wine\Direct3D\MaxVersionGL new DWORD value 30002 (hexa) to the registry.

Here's how to do this: In Winetricks select Run regedit and wait for the Registry Editor window to open. In the folder tree expand HKEY_CURRENT_USER - Software - Wine and create a new key in the Wine folder. To do so, right click, select new-->key and name it Direct3D. Now create new-->DWORD Value, rename the file to MaxVersionGL and set the value data to 30002 (hexadecimal). Close the Registry Editor window.

It should look like this: Registry Editor Entries Close the Registry Editor window.

Close the winetricks window and run installer:

Install Office 2013

WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 wine ~/PathTo/Office2013Setup.x86.exe

From here, the install runs and completes 100%.

Open one of the Office programs of your choice. They mostly work, but I found that the Word Math Typesetting does not work and Power Point may not start as well due to "not enough memory or system resources". So, still room for improvement.

  • Setup downloaded from Microsoft installs fine but ends up with black screen. Setup image downloaded via Heidoc fails to finalize installation and activation, even with config.xml. – Ohto Nordberg Feb 12 '17 at 11:33
  • I have followed the instruction, but I am still getting the black screen. Is there anything else that I can try? – Apurba Feb 16 '17 at 7:12
  • 2
    Could you point where did you find all this info? – iuridiniz Mar 19 '17 at 20:35
  • 1
    With ubuntu 16.04 and stock or updated winetricks, the step "Install Libraries" tells me sha1sum mismatch! Rename /home/*/.cache/winetricks/msxml6/msxml6_x86.msi and try again. . How do I circumvent this? – highsciguy Jun 4 '17 at 15:50
  • I'm getting a File not found error for my setup file, any ideas on how to fix that? – Hamman Samuel Dec 1 '17 at 14:54

In addition to Philippe's answer I installed the following from winetricks:

msftedit
riched20
riched30
riched32
vb6run

That solved the PowerPoint "not enough memory or system resources" issue and black fields issue

Install Office 2013 pro 32bit

This solution is tested on Ubuntu 17.10 with wine 2.0.2.

Required Dependencies

We need a clean 32bit wine prefix and some packages.

sudo dpkg --add-architecture i386
sudo apt update
sudo apt install cabextract fonts-liberation winbind wine wine32 wine-gecko2.21
  • 32bit wine installation
  • winbind for some samba functions
  • geckofor internet content popups
  • cabextract and wget for downloading corefonts through winetricks
  • fonts-liberation for the free alternatives to Arial etc.

Note that I also recommend wine-3.0 due to its DirectX11 Support. To install, use

wget https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'

sudo apt-get update
sudo apt-get install wine-stable winehq-stable 

Installation Process

The recipie is now upstream on winetricks. We need a clean 32bit prefix for it. If you do not have one, prepend WINEPREFIX="${HOME}/.wine-office2013pro" to the wine commands.

First get the newest winetricks:

wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -O ~/Downloads/winetricks
chmod u+x ~/Downloads/winetricks

and then use the recipie on a 32bit wine prefix.

WINEARCH=win32 wine wineboot
~/Downloads/winetricks office2013pro

msxml6 is installed due to an incompatibility of libxml. the setup is straight forward.

First start

The installed desktop files are located in

~/.local/share/applications/wine/Programs/Microsoft Office 2013

welcome message powerpoint

There should be a welcome messages that connects to the internet (only on wine-3.0) and lets you activate the product.

  • Microsoft Word 2013 will start fine. Although, there are certainly some bugs in it.

  • Microsoft PowerPoint 2013 has some unresolved issues like the black slides. Sometimes it also refuses to start at first. If so, do not press reboot when asked, as it will exit wine.

do not press reboot in powerpoint

Product Activaton

On wine-3.0 activation is possible over the internet.

On wine-2.0the product can be activated via telephone. The phone number is found here. For us, it is 866-421-7141

  • 1
    +1... Based on this I was able to install and have a working setup (without using the refereed winetricks office2013pro). Created a 32-bit prefix. Then after winetricks corefonts tahoma riched20 msxml6 and HKEY_CURRENT_USER\Software\Wine\Direct3D trick, installed using own medium. Even updated to SP1 and installed additional language packs. Everything I've used working properly so far... – Kanchu Apr 29 at 9:57
  • @Kanchu - very helpful to me, who thought that the black screen problem will not appear during this solution. In order to put it all together, I have summed up all steps in this answer here: askubuntu.com/a/1085219/47206 – cipricus Oct 19 at 12:08
  • @Kanchu look at the verb and you will see that winetricks does all the magic for you. – ukos Oct 22 at 17:29

Okay friends! Here's my answer!

This question was originally asked in 2017-02-03. In 2018-02-17 we already have newer versions of wine.

I posted this answer because I believe it is a solution accessible to more people.

Below is a script for use with PlayOnLinux ( https://www.playonlinux.com/en/ ). It was based on a script created originally by Quentin Pâris (thanks guy! =D ).

To do the installation we need the following resources: wine, winetricks, winbind and playonlinux.

NOTE: winetricks and winbind are usually installed along with wine. To test if they are present use the commands winetricks -V and wbinfo -V respectively!

With contributions from @Naheel and @Philippe .


TO USE THE SCRIPT:

Save the script below to a text file (eg: office2013.bash).

Start PlayOnLinux, open the script file above...

Open the script file.

... , run it...

Run script file.

... and follow the on-screen instructions.


PLAYONLINUX SCRIPT:

#!/bin/bash

# CHANGELOG
# [Quentin Pâris and Eduardo Lucio (Questor)] (2018-02-17 15-24)
# Version 1.1.0.0
# Paris/Brazil

# >>>>>>>>>>
# Under BSD License!

# Copyright (c) 2018, Quentin Pâris and Eduardo Lucio
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#     * Redistributions of source code must retain the above copyright
#       notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above copyright
#       notice, this list of conditions and the following disclaimer in the
#       documentation and/or other materials provided with the distribution.
#     * Neither the name of the free software community nor the
#       names of its contributors may be used to endorse or promote products
#       derived from this software without specific prior written permission.

# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL Quentin Pâris and Eduardo Lucio BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# <<<<<<<<<<

# NOTE: Complete liste of references! By Questor
# https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/wine.lib
# https://www.playonlinux.com/en/app-2665-Microsoft_Office_2013.html
# http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_11:_List_of_Functions
# http://wiki.playonlinux.com/index.php/Components_and_Functions
# https://www.playonlinux.com/repository/source.php?script=822
# https://github.com/PlayOnLinux/POL-POM-4/blob/367e50865168b5b931611fa33b0c1d8426143a90/lib/scripts.lib
# https://github.com/PlayOnLinux/POL-POM-4/blob/367e50865168b5b931611fa33b0c1d8426143a90/lib/wine.lib
# https://askubuntu.com/questions/879304/wine-2-0-says-it-supports-office-2013-how-do-i-actually-install-it
# https://github.com/RobertJames/playonlinux/blob/75ef37523f299255a539a89b63dc87d7afc096d4/template.POL

# >>>>>>>>>>
# Initialization!

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX="office2013"

WINEVERSION="3.0"

TITLE="Microsoft Office 2013"

# NOTE: Images to use! By Questor
POL_GetSetupImages "https://i.imgur.com/licFVuF.png" "https://i.imgur.com/ff6PkEZ.png" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 2665

POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com" "Quentin Pâris and Eduardo Lucio" "$PREFIX"

POL_Debug_Init

# <<<<<<<<<<

# >>>>>>>>>>
# Perform some validations!

POL_RequiredVersion 4.2.12 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION!\nPlease update!"

if [ "$POL_OS" = "Linux" ]; then
    wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE!"
fi

if [ "$POL_OS" = "Mac" ]; then

    # NOTE: Samba support! By Quentin Pâris
    POL_Call POL_GetTool_samba3
    source "$POL_USER_ROOT/tools/samba3/init"

fi

POL_Wine_WaitBefore "$TITLE"
[ "$CDROM" ] && cd "$CDROM"

if [ ! "$(file $SetupIs | grep 'x86-64')" = "" ]; then
    POL_Debug_Fatal "$(eval_gettext "The 64bits version is not compatible! Sorry!")";
fi

# NOTE: Check if "winetricks" is present! By Questor
winetricks -V || POL_Debug_Fatal "Please install winetricks before installing $TITLE!"

POL_System_SetArch "x86"
POL_SetupWindow_InstallMethod "LOCAL,DVD"

if [ "$INSTALL_METHOD" = "DVD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "x86/setup.exe" "setup.exe"
    SetupIs="$CDROM_SETUP"
    cd "$CDROM"
else
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run!')" "$TITLE"
    SetupIs="$APP_ANSWER"
fi

# <<<<<<<<<<

# >>>>>>>>>>
# Prepare resources for installation!

# NOTE: Install wine version if isn't available. This is necessary because 
# even though "POL_Wine_PrefixCreate" solves this, we end up having 
# problems when the required version is not available and it tries to 
# install it! Questor
# [Ref.: https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/wine.lib]
POL_Wine_InstallVersion "$WINEVERSION"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

Set_OS "win7"

# <<<<<<<<<<

# >>>>>>>>>>
# Install!

# NOTE: Installs office! By Questor
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"

# <<<<<<<<<<

# >>>>>>>>>>
# Prepare resources for applications!

# NOTE: Uses native special version of "riched20" installed by Office 2013! 
# Fix the "black fields" issue! By Questor
# [Ref.: http://forum.winehq.org/viewtopic.php?f=8&t=23126&p=95555#p95555]
POL_Wine_OverrideDLL "native,builtin" "riched20"

# NOTE: Fix "move and change the window size (maximize/minimize/restore/resize 
# etc...) bugs"! By Questor
# [Ref.: https://bugs.winehq.org/show_bug.cgi?id=44552]
Set_Managed "Off"

# <<<<<<<<<<

# >>>>>>>>>>
# Create shortcuts, entries to extensions and finalize!

# NOTE: Create shortcuts! By Questor
POL_Shortcut "WINWORD.EXE" "Microsoft Word 2013" "" "" "Office;WordProcessor;"
POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2013" "" "" "Office;Spreadsheet;"
POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2013" "" "" "Office;Presentation;"

# NOTE: No category for collaborative work? By Quentin Pâris
POL_Shortcut "ONENOTE.EXE" "Microsoft OneNote 2013" "" "" "Network;InstantMessaging;"

# NOTE: "Calendar;ContactManagement;"? By Quentin Pâris
POL_Shortcut "OUTLOOK.EXE" "Microsoft Outlook 2013" "" "" "Network;Email;"

# NOTE: Add an entry to PlayOnLinux's extension file. If the entry already 
# exists, it will replace it! By Questor
# [Ref.: https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/playonlinux.lib]
POL_Extension_Write doc "Microsoft Word 2013"
POL_Extension_Write docx "Microsoft Word 2013"
POL_Extension_Write xls "Microsoft Excel 2013"
POL_Extension_Write xlsx "Microsoft Excel 2013"
POL_Extension_Write ppt "Microsoft Powerpoint 2013"
POL_Extension_Write pptx "Microsoft Powerpoint 2013"

if [ "$POL_OS" = "Mac" ]; then
    POL_Shortcut_InsertBeforeWine "Microsoft Word 2013" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Excel 2013" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Powerpoint 2013" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft OneNote 2013" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Outlook 2013" "source \"$POL_USER_ROOT/tools/samba3/init\""
fi

POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully!\n\nThanks!\nBy Quentin Pâris and Eduardo Lucio')" "$TITLE"
POL_SetupWindow_Close

# <<<<<<<<<<

exit 0

FURTHER INFORMATION ABOUT THIS SCRIPT: https://www.playonlinux.com/en/app-2665.html

  • 1
    You are installing msxml6 msftedit riched30 vb6run. Can comment on why? On the winhq site there is a lot of discussion about those packages but I can not reproduce why they are needed. I am putting together some refs to bring clarity to the installation procedure. On my end, only really needed was riched20. I can not understand the edits by Questor for setting Wine-Version to 3.2 during installation and to 2.22 afterwards. For me, installation went fine on wine-2.0. and wine-3.0. – ukos Feb 18 at 20:24
  • 1
    ok. so i checked the bugreports on winhq. You only need msxml6 in some wine versions prior to a bugfix in libxml2. – ukos Feb 18 at 20:59
  • @ukos About "I can not understand the edits by Questor for setting Wine to Version 3.2 during installation and to 2.22 afterwards", this was done because wine version "2.22" fails with the installer and version "3.2" fails with Office applications. This is what happens on my environment (Linux Manjaro). What specific version did you use of "wine" "3"? Thanks! – Eduardo Lucio Feb 19 at 13:13
  • @ukos "You only need msxml6 in some wine versions prior to a bugfix in libxml2" -> Which wine version specifically? Tell me the wine version so I can do the tests. – Eduardo Lucio Feb 19 at 13:17
  • 1
    That is an unresolved bug (Pretty annoying, too) – ukos Feb 23 at 16:52

Using PlayOnLinux is more simpler, just follow this video : https://www.youtube.com/watch?v=6HhKWXdCWBM. In video description you'll find :

    • Download PlayOnLinux
    • Install winbind
    • Setup PlayOnLinux
    • Install Wine 3.1 and 2.20-staging
    • Create virtual drive Office2013
    • Copy script from https://www.reddit.com/r/linux/comments/3ukrfh/microsoft_office_2013_on_linux_using_playonlinux/
    • Modify only one input
    • Paste script in PlayOnLinux
    • Setup default Office 2013 install manager
    • Setup takes abaout 5-10 mins
    • Setup 2.20-staging version of Wine
    • Go!
    • Microsoft Outlook 2013 ! - fail. Microsoft OneNote 2013 too

As a complement to the other answers:

In Kubuntu 18.04 THIS answer (the one involving the Playonlinux script) worked for me - out of the box so to speak.

But then in Lubuntu 18.10 it stopped working for me. So, I tried the other answers, initially without much success. THIS answer helped me install the program, but without solving the "black screen" problem. Trying to fix that I stumbled into a bigger problem reported here.

Even after reinstalling Wine as indicated below, and successfully installing MSOffice again as in the linked answer, the black screen problem was present.

Then I noticed the comment made by @Kanchu thereunder, referring to the solution from THIS answer. Integrating the last two answers I was able to install successfully.

Here I am trying to sum up all the steps in a simple and clear manner.


  • Install Wine 3.0 - I have done that from the software manager.

  • Then: sudo apt install cabextract fonts-liberation winbind wine wine32

(in my case they were already installed)

  • Downloading latest winetricks in ~/Downloads:

wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -O ~/Downloads/winetricks

  • Making it executable: chmod u+x ~/Downloads/winetricks

  • Anticipating the "black screen problem":

    • Started winetricks in ~/Downloads:

    WINEARCH=win32 winetricks

checked that riched20 msxml6 were installed, then followed the aforementioned procedure:

In Winetricks select Run regedit and wait for the Registry Editor window to open. In the folder tree expand HKEY_CURRENT_USER - Software - Wine and create a new key in the Wine folder. To do so, right click, select new-->key and name it Direct3D. Now create new-->DWORD Value, rename the file to MaxVersionGL and set the value data to 30002 (hexadecimal).

so that it looks like in that image.

(In fact I had forgotten about this step and have followed it only during the running of the last command listed below - before typing my password when asked to! - But it still worked in the end.)

The final commands:

WINEARCH=win32 wine wineboot
~/Downloads/winetricks office2013pro

which download and install the program.

  • Could you report it to winetricks? – ukos Oct 20 at 17:16
  • @ukos - it's not I who could/should do that; I have jest summed up the other answer(s), namely this one, which links to this and this winetricks pages, where scripts and more info are involved that need be "reported" as you say. I don't understand all those details. Somebody else should do the report. – cipricus Oct 21 at 12:20
  • I completely understood what you did. To clarify: You "double installed" riched20 msxml6 and also the regex trick, which is already installed by using winetricks office2013pro. If you look at the verb you will see this. Following your recipe adds a unneeded level of complexity. So if you still have a black screen issue using winetricks, you should help the community by filling out an issue on github instead of posting it here. That would make everything easier and transparent again. – ukos Oct 22 at 17:26
  • @ukos - I, on the other hand, do not understand perfectly all these actions. If I have posted all the steps that I have followed it is because they worked for me while none of the answers as such were sufficient. That is explained in my answer. But it is possible that some of the steps are not really needed, hence the unneeded complexity. But how could I say which is needed? - In fact the suggestion made by Kanchu is the one that helped me. – cipricus Oct 22 at 17:45
  • But how could I say which is needed? To post a solution, you should know at least the answer to this question. – ukos Oct 22 at 17:52

protected by Community Mar 19 '17 at 21:25

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.