Over time
1. Instruction from other bicyclists (mostly for changing flats when I was a kid, minor adjustments)
2. Inspection - bicycles are fairly simple and parts are visible
3. Manufacturer's owner and shop manuals, and books, including Glenn's
4. Internet (for new bicycle)