Eventually, for extremely long distances, you can use optical fiber. On the market, there are cables that, in addition to the fiber, also carry two conductors, positive/negative, to power the device. It's a kind of Power over Fiber (POFiber)..
In any case, yes, the use of battery/solar-powered...