We have a couple of billion years before the Sun becomes a red giant and swallows us. That leaves some time for technology to solve the problems you mention. Watch Through the Wormhole, etc for people looking into these issues now.
Wow, I am so impressed. I SOOOO glad somebody is looking into this! /sarc