OK-- here's the short version (sorta

)
1st & foremost source driving algae is nutrients. Uneaten food & fish waste turns into ammonia, which is broken down into nitrites, which is broken down into nitrates. Nitrates are literally algae fertilizer. Wasted food will also break down into Phosphates, which is more fertilizer. Worse yet, both of these can also be found in your tap water (do you have public water or well?), which means that whenever you do a water change, you're feeding more fertilizer into the tank. This is not to say that you shouldn't do water changes, but instead this is why hobbyists buy RO/DI (reverse-osmosis, de-ionizer) units.
Brown algae deserves special note. Its not really algae, but di
atoms, which have a tiny skeleton made of silica. An additional nutrient you can have in your water-- tap or tank-- is Silicates. In my personal war on algae, I found I had massive silicates in my well-water. Couldn't shake the brown stuff until I got an RO/DI. Haven't heard boo from brown since
The green hairy stuff is pretty much just that-- Hair algae, which is really a very general term for numerous species of tenacious filamentuous algaes. Known for being generally distasteful to herbivorous fish & inverts, with some exceptions, & even then, are still mostly hit or miss. You'll find extensive threads here regarding hair algae control. Welcome to marine aquaria keeping! :lol:
But here's where you can make the algae work toward control-- remove it. As algae grows it takes that fertilizer out of the water & into its own structure. When you remove that algae from the water, you're removing those nutrients from the water. This is what's called Nutrient Export. Siphon out everything you can during water changes, & keep to a water change schedule. As one wise man I know of once said, "Dilution is the solution to pollution." On occasions folks are known to remove live rock from the tank to remove algae from it, myself included, in a bout with Cyanobacteria (aka: red slime or blue green slime algae).
I recommend getting test kits for these nutrients & testing your tap water. Are you using any kind of pre-filtration before mixing your water?
Www.marinedepot.com has an excellent 'Algae kit' (set of Nitrate, Phosphate, & Silicate kits) from
Salifert for about $55. May seem steep, but they're quality kits that you will use very frequently.
Find out what's in your tap, & find out what's in your tank, then treat accordingly.
Adequate lighting (newish bulbs, higher wattage, appropriate color temperature) & increasing circulation (prevent algae from getting a foothold) are also major ingredients to algae control. These could deserve full dissertations also, but I think you need to check your nutrients 1st.
Good luck..
Pete
ps-- scrape the brown & algae form the glass gently with a plastic edge of some kind, this should remove the softer stuff while leaving the coralline in place. do this while do a water change to sihpon it out. for powerheads, theres no 'one way' except to keep your turnover high (10-20x your total gallonage, powerheads measured in gallons per hour), & try to address 'dead spots'.