I'm lucky enough to have a backyard, in which I've been spending a lot of time lately.
Apparently kids in arctic regions receive “sunbathing” sessions in a dark room with UV lamps for this reason. I’ve been thinking to replicate it but haven’t been able to find much technicalities in it...
It's not a problem if you're active though.
(I was lucky enough to be in a rating where I was on periscope every now and again, so I had that bit of extra 'view'.)
I am pretty sure they have video games in a submarine these days.
You find other escapes - I bought my own laptop at the Exchange and taught myself Linux from the install CD up on one deployment.
If you're senior enough, you get your own rack. Perks :)
And once you're off watch, there's routine to do but after that you have your own music, games if you like, movie nights (voting gets weird sometimes), read, we even made up a Stellar Conquest type game once, played out on paper, one turn per watch rotation.
The family thing could be a big deal but I was already pretty estranged from my very small number of relatives, so wasn't much for me.
YMMV.