Relationship is not important when you greet people.
"Hi" is used when the relationship in equal.
You can announce your name when you greet stranger.
You always shake hands whenever you greet a person.
Cultrual rules are not important when you greet people.