Before beginning a long distance relationship be sure that you love each other 100 % because it takes some real commitment to stay in a long distance relationship and make it last.
Some things you should do to maintain the long distance relationship are to Avoid excessive communication, Set some ground rules to manage your expectations, Try to communicate regularly, and creatively and even Talk dirty with each other at times.
Also send care packages to each other sometimes and even love letters or cards through the standard mail and maybe even visit your boyfriend or girlfriend at least once a year if possible.