Oh with the sun, there is enough energy in space and in the moon (at daytime). You "just" have to focus and redirect it.
And store it for the long nights.
I could see a couple ways out of storing it. Either don't do anything when it's dark, or collect the energy on the other side (or from orbit) and transmit it to the dark side.