How to glue linoleum to the floor

To glue linoleum to the base, first you need to prepare the surface. It should be even so that after laying the material does not deform and does not become wavy.