I actually had a class on procrastination a few weeks ago.
Basically it's all about self discipline and separating yourself from the things that make you procrastinate.
Personally, I just bump my music and get into my books. I don't even notice the time flying and before I know it 3 hours have gone by.
Doing some planning like @demonetized suggested might not work for everyone. If you're procrastinating, planning wont help you much. You just got to kick yourself in the head and get to doing shit.