This is the easiest way to install codecs and flash for ubuntu including java.
Esta es la manera mas facil de instalar todos los codecs para ubuntu flash y Java.

1. Install w32codecs and libdvdcss2 by typing this on the terminal:
Instala w32codecs y libdvdcss2 tipeando esto en la terminal:

sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list --output document=/etc/apt/sources.list.d/medibuntu.list

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

sudo apt-get install libdvdcss2


a. For i386, the package is called w32codecs:
sudo apt-get install w32codecs

b. For amd64, the package is called w64codecs:
sudo apt-get install w64codecs

c. For ppc, the package is called ppc-codecs:
sudo apt-get install ppc-codecs


2. Install ubuntu-restricted-extras
Instala ubuntu-restricted-extras

sudo apt-get install ubuntu-restricted-extras