That's the gist of starting out well. Also, having your own place helps, even if it's just an apartment. I think it's also important to be at the same job for a while, or at least it looks good. I'm not certain that opening A FEW accounts is necessary, but I could be wrong.
It just takes time, and more important than building good credit, it is important that you don't do anything to give yourself BAD credit, like fucking up a loan, going nuts with the credit cards to the point of delinquency, or declare bankruptcy. Also, don't fuck around with the student loans people for too long. Ruining your credit is one of the few things they don't have much trouble doing.