Bruise and crush the nuts in a non-metallic bowl. Add the onions, garlic, salt and vinegar. Turn the nuts to make sure that they are completely covered. Cover and leave for 2 weeks for all the flavours to be absorbed, stirring occasionally.
On the day of bottling prepare your ketchup bottles. Second-hand ones with screw caps are suitable provided you wash them and their caps thoroughly,