This HOWTO is aimed at all the users of Ubuntu (both 32 and 64bit although wmv9 files don't work in Ubuntu 64bit) and it is useful because win32 codecs aren't available anymore in the repositories for legal reasons.
This guide is a revised version of a guide of mine specifically aimed at 64bit users. I decided to post this new one in order to avoid misunderstandings.
If you want to watch your movies (avi and wmv) or listen to your music files (wma) which require Win32 codecs this is what you need:
1)You have to OWN A LEGAL COPY of Windows, because these are proprietary codecs (somebody correct me if I'm wrong)
2)Install “xine-ui” and “totem-xine” in Synaptic or type in the command line:
sudo apt-get install xine-ui ; totem-xine
3) Launch Xine (or Totem) and try to play a video (this will create a .config file)
4) Download the codecs from this website:
(just download the “essential codecs package”)
if the link above is temporarily down try this mirror:
5) Open the command line(“Konsole” if you are using KDE, “Terminal” if you are using GNOME) and follow these steps:
a) Get to the directory where you have downloaded the file (/home/alberto/downloads in my case)
b) Create the directory in which you are going to put the codecs (/usr/lib/win32)
sudo mkdir /usr/lib/win32
c) Now, assuming the file you downloaded is “essential-20050412.tar.bz2”:
tar -xjvf essential-20050412.tar.bz2 (this will extract the file)
sudo mv essential-20050412/* /usr/lib/win32 (this command will move the files to the desired folder)
d) Now restart xine (if you were using it)
Congratulations, now you can open wma, wmv, and avi files by using Totem and Xine!
NOTE: It seems wmv9 don't work with my HOWTO if you use Ubuntu 64bit.