How to run MS Office 2007 in Ubuntu using Wine

After 2 days of messing around I managed to install and run Word, Excel and Powerpoint from Microsoft Office 2007 Enterprise on Ubuntu, using Wine 1.0 rc1. For now, this tutorial is only tested on feisty. I have to try it on my hardy box, before I post that it works, which I will when I find the time. But the steps will be very similar, so you can try it. This being said I just want to mention that Office is still buggy, Word and Excel only worked in safe mode, which is limited in functionality, Powerpoint worked in normal mode. I didn't manage to start the other apps. But what worked, is kinda usable (no math in Word e.g.). I could open, save and print files without a problem.

UPDATE: After a relog there were MS Office icons-links in the wine menu. Using those I could run Word, Excel, Powerpoint, OneNote and Publisher in normal mode (as opposed to safe mode), so with full functionality. Access, outlook and Groove didn't start.

When something went wrong, I uninstalled wine, deleted the .wine directory from my homedir and started over again.

1. Installation of Wine 1.0 rc1

Start with a clean Wine install. I used a .deb package which I compiled from source. Get it here

first I installed checkinstall, to make a .deb package. This makes it easy to completely remove wine1.0 and reinstall it. I also installed winbind, but I'm not sure if it's needed

sudo apt-get install checkinstall

sudo apt-get install winbind

So, to compile, get the source from sourceforge.net

wget http://downloads.sourceforge.net/wine/wine-1.0-rc1.tar.bz2?modtime=1210362720&big_mirror=1

untar it:

tar xvjf wine-1.0-rc1.tar.bz2

cd wine-1.0-rc1

su

make depend && make

checkinstall

you'll need to put some info in the package. Copy it to your desktop and chown it to your user.

exit

Now, Install the package, by clicking on it.

2. Configure wine for the installation

winecfg

First Wine will build a c: drive. After this select Vista for the Windows version. Select rpcrt4.dll in the libraries tab, add and edit it, to native (Windows). I also choose to emulate a virtual desktop of 1024x768 in the graphics tab. Ok

Next I backed up my rpcrt4.dll from ~/.wine/Windows/system32/ and replaced it with the one you can find in the attachment. Untar it and copy it over the one in system32.

ok, wine is configured.

3. Install extra needed DLL's and fonts with winetricks

get winetricks:

wget www.kegel.com/wine/winetricks

and execute it

sh winetricks msxml3 dotnet20 gdiplus riched20 riched30 vcrun2005sp1 allfonts

This will install the needed .NET2.0, dll's fonts etc.

I got some errors right after .NET2.0 was installed, so I looked into the code at downloaded the fonts manually from

http://apt.debian.org.tw/pool/t/ttf-arphic-ukai/ttf-arphic-ukai_0.1.2006...
http://apt.debian.org.tw/pool/t/ttf-arphic-uming/ttf-arphic-uming_0.1.20...

I untarred them, and copied them over the ones in /usr/share/fonts/truetype/arphic/.
I uninstalled wine from synaptic, deleted ~/.wine and started all over again.
When this step finishes without errors, continue ...

4. Installing MS Office 2007

I put the cd in my drive and executed:

wine /media/cdrom0/setup.exe

The install will begin, It appeared to hang at about 2/3, but it was still working. I could see disk and cpu activity on my system monitor. So I went away and came back 40 minutes later and it was installed.

5. Configure wine to run Office 2007

winecfg

select Windows XP als the windows version. Deselect the virtual desktop. In the libraries tab (where more dll's were added by winetricks) edit the override for rpcrt4.dll to be builtin (wine). I also remove rpcrt4.dll from .../system32 (I copied it to my desktop)

6. Start Word, Excel and Powerpoint

wine .wine/drive_c/Program\ Files/Microsoft\ Office/Office12/WINWORD.EXE /safe

wine .wine/drive_c/Program\ Files/Microsoft\ Office/Office12/EXCEL.EXE /safe

wine .wine/drive_c/Program\ Files/Microsoft\ Office/Office12/POWERPNT.EXE

UPDATE:
After I relogged in, there were MS Office icons-links in my wine menu. Using those I could run Word, Excel, Powerpoint, OneNote and Publisher in normal mode (as opposed to safe mode), so with full functionality. Access, outlook and Groove didn't start.

here are the screenshots:

Remarks

I can't guarantee it will work for you. I'm not a Wine expert, I just played around and it worked. If it doesn't work, I can suggest to use Virtualbox. I got that on my Hardy box, and it worked. It's less buggy, but you'll need to create a virtual machine, so you'll use more resources. Office under wine is quite reponsive and completely integrated. I could run it with compiz.... wobbly Word :D

Hope it works for you.

AttachmentSize
rpcrt4.dll.tar.gz433.39 KB

Comments

Great tutorial. atleast it started the setup but it fails later on. Cannot complete setup. Very good try indeed. it installed .NET framework atleast

It works, quite fast to. Indeed you have to remove wine and ~/.wine If the package from redhat.com doesn't load, download it manually by searching liberation fonts on google. You'll find it. Then after the second install, check all but fonts in winetricks (of course), installation works in 20 minutes or so.

Thanks man!

After I installed Office, I noticed that there are a few issues - one’s that really prevent me from doing some of the things that I need to do. So, I guess that I’ll still be dual-booting.

@team building exercises: Sorry too hear that. If you can't get MS Office to work and you need it professionally (or otherways) , I can always recommend crossover. On the wiki you'll read that it's not a free solution, but their latest version 7, also supports MS Office 2007.

for more info on using wine for MS Office 2007:
http://appdb.winehq.org/objectManager.php?sClass=version&iId=4992

for those who didn't manage to install MS Office 2007 using wine and the above tutorial:

Only today, tuesday 28 october 2008, you can download the full versions of codeweavers' software, at there main site. Read more about it here. GRAB IT WHILE YOU CAN! :D

It's Work !!!! Thx a lot
I'm french and it's very good tutorial :) I will add it to ubuntu-fr.org !! Congratulation !!

Hello, it seams a good tutorial, I hope I can finish the office 2007 installation, but I've got this error.

sh winetricks msxml3 dotnet20 gdiplus riched20 riched30 vcrun2005sp1 allfonts

err:module:import_dll Library rpcrt4.dll (which is needed by L"C:\\windows\\system32\\services.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\services.exe" failed, status c0000135
err:wineboot:start_services_process Unexpected termination of services.exe - exit code -1073741515
err:module:import_dll Library rpcrt4.dll (which is needed by L"C:\\windows\\system32\\ole32.dll") not found
err:module:DelayLoadFailureHook failed to delay load ole32.dll.CoTaskMemAlloc
wine: Call from 0x7b8455b0 to unimplemented function ole32.dll.CoTaskMemAlloc, aborting
err:module:attach_process_dlls "shell32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\cmd.exe" failed, status 80000100
wine cmd.exe /c echo '%ProgramFiles%' returned empty string

Ok, I fix it, it was a bug on winecfg.

Do you know how can I install SP1 of office?

Hey Marco, I'm glad you worked it out

I didn't install sp1 for office 2007 because I don't have a real need for it, but my guess would be to download the .exe file and run it with wine and see what happens. But since I didn't try it I can't guarantee it won't screw up things. I would say don't do it if you don't need it. If you do need it (for outlook perhaps??), proceed at your own risk

works great, even on 8.10 with the newest version of wine!

thank you!

Hey,

i got the problem that it says in the terminal:

"fixme:xrender:X11DRV_AlphaBlend not a dibsection
fixme:xrender:X11DRV_AlphaBlend not a dibsection
fixme:xrender:X11DRV_AlphaBlend not a dibsection
fixme:xrender:X11DRV_AlphaBlend not a dibsection
..."
the hole time during the install... What do i do wrong?

Thx

Hi All,

I also got the fixme:xrender:X11DRV_AlphaBlend not a dibsection errors.
When this happened, office would not install.

I resolved this by not entering a license key.
When you are prompted for a key, just press continue, and office installs fine. You will be able to activate office later.

Sam.

Thanks a lot ! It works but I've a problem with fonts menu which are displayed in bold and in italic (Home, Insert, etc.). Is it linked to Wine version - I'm using last one ?

Would you allowed me to make a translation of your work to blog it on my French weblog ? Of course, I'll mentionned you and I'll adapt it to my view with more screenshots.

Thanks again.

i'm getting the same problem. how did u fix this error?
even if i try to run winecfg, this error comes up.
thanks for any help.

i'm getting the same problem. how did u fix this error?
even if i try to run winecfg, this error comes up.
thanks for any help.

for this error:
err:module:import_dll Library rpcrt4.dll (which is needed by L"C:\\windows\\system32\\services.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\services.exe" failed, status c0000135
err:wineboot:start_services_process Unexpected termination of services.exe - exit code -1073741515
err:module:import_dll Library rpcrt4.dll (which is needed by L"C:\\windows\\system32\\ole32.dll") not found
err:module:DelayLoadFailureHook failed to delay load ole32.dll.CoTaskMemAlloc
wine: Call from 0x7b8455b0 to unimplemented function ole32.dll.CoTaskMemAlloc, aborting
err:module:attach_process_dlls "shell32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\cmd.exe" failed, status 80000100
wine cmd.exe /c echo '%ProgramFiles%' returned empty string

Since switching to gnu/linux about 6 months ago i have missed so little. The one exception was Office 2007. Installation went smoothly and the programs seem to be working well. Thank you so much for all your work, it is much, much appreciated.
alarm systems

Hi

I am getting the same error message, how did you fix this.

Hi,
you've published very good information,I must try them but will see what's the success rate.I'm searching for more information about it,so this is not enough for now.

Macken,
olympic bar weight

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.
RSS feed