I just thought I'd put up an explanation on how to set up restricted codecs for Ubuntu, so you can run media files on Ubuntu. I used to find this really annoying to set up on Ubuntu so hopefully this makes things easier.

First add the ubuntu restricted extras:

CODE
sudo apt-get install ubuntu-restricted-extras


Then setup Medibuntu:
To do this first you need to add the repository:

For Ubuntu 9.04:

CODE
sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list -O /etc/apt/sources.list.d/medibuntu.list


For other versions just change the jaunty.list, with <your version>.list
eg. for Ubuntu 8.10 use:

CODE
sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list -O /etc/apt/sources.list.d/medibuntu.list


Then you have to add the GPG Key to authenticate the packages and Update:

CODE
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

You may be asked to accept this package even though it cannot be authenticated. This is normal, typing "Yes" means you trust Medibuntu.

Next download the encrypted DVD playback codecs:

CODE
sudo apt-get install libdvdcss2 libdvdread3


And now install the Window codecs:
For 32 bit Ubuntu use:

CODE
sudo apt-get install w32codecs


For 64 bit Ubuntu use:

CODE
sudo apt-get install w64codecs



I hope this helps everyone who is setting up their Ubuntu.

If there are any problems please let me know and I will either fix them or try to help!

Cheers,
Dark Desires a013.gif