Measure the rough opening's width, and transfer that measurement to two 2-by-10-inch boards. Draw a straight line across each board using a carpenter's square as a straight edge.
Cut each 2-by-10 board along the line with a circular saw. Hold the two boards flat together, with their ends aligned.
Hammer 3-inch nails through the boards to hold them together. Place the header in the opening and press its top edge tight against the ceiling joists.
Use a drill and Phillips driving bit to drive 3-inch screws through the header and into each ceiling joist to hold the header in place.