How to get along with your roommate
Privacy
privacy is one of the most important thing to everyone, especially if you're not extremely close to that person so to make them feel comfortable, minding your own business is the best idea.
Friendly
Be friends with your roommate but don't be too friendly because you don't want to scare them away.
Be clean
No one likes a dirty room and dirty clothes, be neat.
Respect
Respect is one of the most important points in any kind of relationship so respect your roommate to be respected in return.
Compromise
You have to understand that not everything has to go your way, whether its about space or anything else.