How to get a recommendation letter?

Seriously, I don't know how. Is it even neccessary?