NekoiHiokans said:
he looks like a long haired Jack Russel, not a beagle. beagles tend to have short hair and longer ears but it could just be cause he's a puppy
now as for the puppy training
if he's been paper trained, put paper down in the house, typically the kitchen cause it has linoleum floors. if they're not paper trained, start. how you do that is when you catch them peeing you say "NO!!!" and pick them up and stick them on the paper and say "stay". if you find out they peed on the carpet you grab them and rub their nose in it and say "NO!!" and spank them and then place them on the paper
you can also stick them outside too but paper training is very good for puppies since they can't always hold it in.
as for the barking, there's not much you can really do, dogs bark. tho it could be that he's a bit lonely so he's barking for attention. get him some toys