@Krikket For me a good music playlist is vital. I've curated several hours of favorite songs that have a good workout tempo, because if I get bored enough to remember I'm working out, it's all over.
When I do use equipment like an elliptical or whatever, I can replace the music with a nice entertaining video. Harder to do if you're not stationary though.