As for greetings, I have found that it does not matter if the person is coming to you or if youryou are going to them. Greet the person as if you came to theretheir office area.
Some people care about title-ship, and some prefer being called by theretheir first name/ last name / nick name, and normally if you mess up they will tell you.
Remember that ProfessorProfessors are people too. Just, but have just have earned a higher level of respect.