Wednesday, December 05, 2007

I ran MS Office 2003 Under Wine too...


A lot of people seem to land on this page quite often. I am sorry but this content is already outdated and might make your computer explode. Please head on over to the following alternatives: wine-review  

Without further ado the steps to installing MS Office in Linux:Kubuntu using Wine.

I got it to work on my Kubuntu 7.04. Pentium 3 650 Mhz PC with 256 MB RAM. Ya, you heard it right. Pentium 3.

UPDATE 1: I also got it to work on my Debian Etch machine, same hardware, albeit with some bugs.

UPDATE 2: Tom Wickline, the original author of this wine configuration, recently updated this guide and can be found here. He suggests that the newer configuration be followed for wine 0.9.52.xxx. At the time of this writing, Tom says that the 0.9.37.xxx version has been depreciated and it is necessary to follow the new steps.

Thanks to WineReview.

STEP I. Installing Wine

1. Make sure that you install this version of Wine - 0.9.37.xxx



wget http://wine.budgetdedicated.com/archive/ubuntu/feisty/
wine_0.9.37~winehq0~ubuntu~7.04-1_i386.deb



- Or you can download and find from this webpage: LINK
- Match to your Kubuntu version and Processor Architecture (eg. mine is an Intel and 386 so its 0.9.37.i386)
- Open your Konsole and go to the directory where you downloaded the wine deb file
- Install the deb file you just downloaded by typing this command:

sudo dpkg -i filename


note: In my case it was:
sudo dpkg -i wine_0.9.37~winehq0~ubuntu~7.04-1_i386.deb

note: Enter your password

STEP II. Configuring WINE


1. On the same konsole type this command:

winecfg
- It will show a windows box with the name "Wine Configuration" with not so cute fonts and tabs (think Windows 95)
- It takes awhile so hang in there - grab a donut and a cup of coffee.

2. Click the "libraries" tab and type richedit20.dll on the blank at the topmost left corner of the box.
3. Click Add
4. Click Edit
5. Select the Native (Windows) radio button
6. Click OK

7. Repeat the steps above but this time the name of the file should be richedit32.dll

8. Find those two files: richedit20.dll and richedit32.dll. Its your choice whether you would like to use Konqueror or the Konsole. But basically its in this folder:

*note: These folders are hidden

/home/Your Folder/.wine/drive_c/windows/system32

9. Rename richedit20.dll to richedit20.dll.bak
10. Rename richedit32.dll to richedit32.dll.bak
11. Download the richedit30.exe file here:
12. Go back to your konsole and type this command:

wine richedit30.exe

13. Download the XML parser here: (Choose only the file named msxml3.msi).
14. After doing that install it by typing this command on your konsole:


msiexec /i msxml3.msi



note: Don't forget to change your name and organization in one of the dialog boxes.

15. Type this command again if you closed your wine configuration window:

winecfg

16. In the libraries tab type msxml in the New Override for Libraries blank.
17. Click Add
18. Click Edit
19. Set to Native (Windows)
20. Type msxml3.exe in the New Override for Libraries blank
21. Click Add
22. Click Edit
23. Set to Native (Windows)
24. Back in your Konsole type this:

regedit

- a new Windows like box with the name Registry Editor will appear.
25. Go to HKEY_Local_Machine\Software\Microsoft\Windows\Current Version
26. Look for RegisteredOwner
27. Right-Click it
28. Click on Modify
29. Type your name then click OK
30. Look for RegisteredOrganization
31. Right-Click it
32. Click on Modify
33. Type your organizations name then click OK
34. Duplicate this for the same set of files but this time in the Windows NT folder

STEP III. Installing Microsoft Office 2003

1. Put the Microsoft Office 2003 CD in your CD drive
*note: Make sure that it doesn't automatically mount the CD - you might have problems since some of the files are hidden
2. Unmount the CD by typing this in the Konsole:

sudo umount /dev/cdrom


3. Mount it again this time with the following command:



sudo mount -t iso9660 -o unhide /dev/cdrom /media/cdrom

4. Go to the directory of the cd via the konsole
5. Type this command:



wine setup.exe
6. That's it you're done.


Sources:

Linux Sorceror
WineReview.