Physically mounting an M42 lens on your DSLR is easy with an appropriate adapter, and of course the lens will have to be focused manually, but there is also a little matter of how one controls the lens aperture. The aperture is the thing shown in the photo; a diaphragm consisting of a set of blades that allow the amount of light passing through the lens to be reduced to the desired level, which also allows a controlled increase in the depth of field.
There are three basic types of M42 aperture controls , listed here in chronological order. The catch is that all three types can have no response to turning the obviously marked aperture ring -- without being broken. This little instructable is about how to make aperture control (f/ number setting) on each of these types of lenses work on your DSLR.