A mate of mine went through similiar issues - he's not a huge party animal so he uses the time while away to study. Bought himself a little laptop and has finished his second degree. Ii think also studied another language as well while away, so now he gets more cash for being a language speaker....
This avenue kinda helps with the boredom, but doesn't really fix the loneliness.... although you can use the internet while away!