Ubuntu 10.10 Eclipse Java sun source code

Motivation: Saw a lot of misleading instructions on how to attach Java source code in Eclipse on Ubuntu 10.10 and even how to install Java.

First of all, It is best to install Java on Ubuntu as described here.
(I wanted to link to another place but can't find it, so the commands were taken from my commands history)

The source code will be attached automatically.