Question: how to train your dog not to bark or bite?
Answer: Ignore your dog whenever he barks for no reason. X Expert Source David Levin. ... 
As soon as your dog stops barking to gain your attention, tell him to sit and reward him with praise and/or a treat. ... 
Be patient and be consistent.