How to install closed drivers, media codecs, and other forbidden stuff on Linux PCs

A typical Linux system is largely comprised of unrestricted, open-source software. But some of the most popular software around is either closed-source or open-source, but restricted by patents. Depending on your Linux distribution, this forbidden software may be easy to install—or require jumping through some hoops.