This particular rail post will function as a corner post and a top stair railing post. This is why the post is oriented on the angle and not perpendicular to the house. Use a quick clamp to hold your 4x4 post in place while drilling.
Use a 1/2" x 6" galvanized through bolt with washers on both sides to attach the 4x4 rail post to the deck rim.
Use a hand ratchet, box wrench or impact gun to install your through bolts. You may need to use shims between the rim joist and the post to plumb the post.
Install side posts using blocking to strengthen the perimeter rim joists. You may use scrap framing material for blocking or bridging. Posts installed on the end of the deck parallel with the ledger board do not require blocking.
In this case we installed blocking between the ledger board and the end post to set the post 3" from the house wall because the ledger bolts were protruding (drilled 1-1/2" holes to avoid the bolts) and to avoid touching the siding.