Heating and activity of the solar corona: 1. Boundary shearing of an initially homogeneous magnetic field | Synapse