To undo the pinion nut I tried clamping the gearbox to the bench. But that wasn't feeling very sturdy.
Also the nut seemed very tight as I broke two socket extensions.
So I drilled some holes in a metal frame & bolted it to that. That gave alot more rigid position to undo the nut.
I'll use this frame again to tighten & for future gearboxes.