Hello,
We are about 25miles from Edinburgh, and I work just near South Gyle. Lots of good advice given here, I would recommend trying to get as much land as you can afford. It can be hard, but if you trawl and trawl through houses for sale, you will find some properties with big gardens, if thats all you can manage to start with. Be careful with newer houses, my sister lives in a house about 10 years old, and it states in her title deeds she is not allowed to keep chickens! She could of course ignore this, but if a neighbour complained, she wouldn't have any grounds to back her up. So be aware of that, and check any small print.
We have just over an acre, about 7 miles south of Linlithgow, where we breed pedigree dairy goats. We have 18 just now I think. We also have chickens, ducks, 3 lambs which we are rearing to go in the freezer. I try and grow a few veg, but I really struggle for time what with the animals, and we also show the the goats.
You would be welcome to come out and visit, but unfortunately we are quite a way out- 2 miles from the nearest village.
There are exchange systems out there as well- WWOOF and HelpX which you can go and volunteer to help on a farm/smallholding for a few days or a week or two in exchange for your accomodation and meals.
Beth