After sticking my calandar up on the wall in front of me, and writing out a detailed to do list, then two pieces of software that really helped me;
LeechBlock: Allows you to set time limits for websites, like Facebook or Youtube (my biggest distraction is Youtube) so I could allow myself a half hour of entertainment time per day (work portion of the day; LeechBlock lets you specify which portions of which days you'd like to block) and prevent access to it after that.
Rescuetime: What a wonderful program. It's an activity logger, and again you can specify what portions of what days you'd like logged, that allows you to set goals for yourself and keeps you accountable for the use of your Time. I love RescueTime.
Aside from that, remember to be fair to yourself and not make yourself feel buried under a mountain of work. If you do, you'll find that you'd get demoralised and waste more time, rather than be productive. Pick out three main tasks that you need to get done each day, and portion out your day into thirds, each third devoted to each of those objectives. Take breaks when you need them. Go stare out the window every now and again, or just sit away from the computer for awhile. Most importantly, don't punish yourself or start thinking you're a failure. Morale is everything. You'll find that simple, smaller changes make huge differences in how motivated you feel and how much you can get done.