Position the prehung unit in the doorway, with the door closed. The hinges should on the side of the door that will open inward.
Hold your level vertically along one side of the casing of the new unit. Slide shims between the outer edge of the casing and the doorway, until the level reads plumb.
Open the door so you can access the inner span of the casing. Shoot in 2 1/2-inch screws in through the sides, every foot or so along the front and back edges.
Cut off the overhanging portions of the shims, using a razor knife.
Remove the middle screw from each hinge where it's attached to the casing. In its place, drive a 2 1/2-inch screw, so it goes through the casing and into the house frame.
Insert the door hardware into the pre-drilled holes at the face and front edge of the door, following the instructions on the hardware.