When I built mine in a non frost zone I used about a bag of cement per hole (I think). I pounded long nails in the bottom of the posts so they stuck out, anchoring them in the cement. I put some gravel in the bottom of the hole, I forget how much, at least a few inches, then the post, then the cement. I think I made the hole 2 1/2 feet deep. The poles were 6 feet tall. The fence sections were also 6 feet tall but the poles do not have to go all the way to the top, the fence sections were attached to the poles by their vertical rails.
I did it on the cheap when I lived in a trailor park to protect my dogs and privacy from neighbor brats. It held up during the storm of the century windstorm so I guess I did OK. A couple of the posts warped after a few weeks, I don't know if there is anything you can do to prevent that, it's happened on a deck I had built once also.
A pump air rifle or sling shot will aid in "training" the dogs to shut up. It sucks to have to do but some people will not control thier dogs. It's not neccassary to cause injury, just a sharp sting. After awhile all you will have to do is ping a pellet off of a nearby object. After awhile all you will have to do is step outside.