To attach the bar to the wall I made up a MDF bracket.
The main support beam sits cradled in the bracket's notch.