This page gathers straightforward copy-paste instructions for things I periodically do.
Disclaimer: everything works on my 64-bit Linux Mint box, and would probably work on Ubuntu workstations. I have no idea of what could happen on different systems :-)