Head -, foot -, or like rests for beds, sofas or the like with means for adjusting two or more rests simultaneously using friction gearing