SRAM – when the mech is sat over the smallest sprocket and with the chain in the largest chain ring, start by not having the cable attached.
Wind the adjuster almost all the way in on the, attach the cable to the mech and tighten the securing bolt.
Now shift to the largest sprocket and the smallest chain ring and make sure the mech is in line with the largest sprocket.
Drop back to the smallest sprocket and biggest ring, shift to the next up on the cassette, if it doesn't shift add some tension until it does, then just apply pressure to the lever before the 3rd click, the chain should nearly shift – adjust tension until it does.
Repeat these steps until it shifts well, it actually says in the Shimano instructions it may not be possible to get all gears in each cog and a "best-fit" may need apply.
Shimano – Big front ring, smallest sprocket, shift to 2nd sprocket, if it doesn't move up add some tension 1/8th turn at a time until it does. The once on 2nd apply pressure to lever to just before 3rd click, chain should just touch 3rd sprocket, if it nearly moves back off tension 1/8th turn, if it doesn't add tension 1/8th turn at a time.
They're a bugger to index but once done should be fine for a while