Sound like you have a pretty good understanding already.....as you know...
The brown algae or diatoms are normal with newly set up tanks and they can be caused by old light bulbs, too short of photoperiod to name a few more causes....This you just have to wipe it off and vacuum out with the weekly water changes until the tank matures or if it is a mature tank-change the light bulb if its over 1 year old and/or adjust the photoperiod- Also-if you have a partition between the light and water-make sure this is clean.
Green algae and other types of algae- is normal and expected in a container of water that has both light and nutrients and can be a sign of a healthy system, however, since this is a closed system we have to keep it in check by manual removal along with our water changes.
You can help to limit to a degree by adding fast growing plants, avoiding too much direct sunlight, too high nutrient load and using proper lights/photoperiod...
If you have live plants and are using plant ferts-make water changes before you add ferts to remove any unused/unneeded ferts so the algae can't use it
In tanks without live plants-you want at least 6 hour per day photoperiod and no more than 8hr/day PP.
In tanks with live plants-you want at least 10-12h/day PP-the active plant growth is what can help to out compete the algae for nutrients.
Lights-depending on the tank size and how deep it is.......watts will vary-but you don't want too high of watts unless you are injecting CO2-Most Algae can use any kind of light to grow and some don't need any light.
Its a balance especially with live plants to keep algae as limited as possible in a closed system, however, a little bit of algae can be a good thing too.