As said, LDR's require a lot of effort and willpower on both sides of the relationship, this usually means that successful LDR's are by those couples who have already had long and invested relationships prior to the distance.
This is also why I tend to think serious serious relationships in university are generally a bad idea, seeing as the uni workload and importance take up substantial amount of someone's attention, and then followed by the changing circumstances during and after mean that 'marrying out of college' rarely happens.
It's up to you and your girlfriend to decide to give it or go or not. I can't tell you any guaranteed way to make it work because there isn't. it will be hard, it will feel ****, and you will miss each other, and there is a solid chance it may not survive.
The question then is simply, do you want to try it on the chance you'll make it to the other side, have you got solid goals and time-scale to end the LDR situation and would you regret having not made the attempt to stick it out?
Best of luck OP.
I wouldn't personally get into a relationship if I felt it wouldn't be face-to-face for the foreseeable future but if it did pop up with someone I properly cared about I'd probably give it a go just so I wouldn't regret not having tried.
Try or do not try though, there is no right answer. Just what you think is right.