おはようございます for the first time you meet that day, especially if in the morning. The response from the teacher is おはよう ラリーくん.
Later こんにちは or こんばんは depending on the time of day. おやすみ can be used as a greeting late at night, but usually it is reserved for wishing someone a good night.