What are the different ways to lay a wooden fence? How to make this fence?
Before anything else, ask your town hall about the legal provisions that apply (distance from the road, maximum height of the fence, declaration of work, etc.). On earth fix the posts in holes 60 cm deep and fill with concrete after wedging with stones. This is the strongest solution. Install a pole at most every 3 meters, help a line to line them up. Once the poles are well anchored, fix your fence on the posts with brackets and check each pose at the bubble level (see the DIY FACTORY dedicated to the installation of a concrete fence).
This may interest you