Electricity and the Internet are not a problem in learning Bitcoin, but investing will require a lot of money from you, because buying one Bitcoin will cost you a lot according to your country.
After you have a stable internet all you will need to start learning from good sources.
This is what I am thinking. These days you can buy a cheap solar system - panel, batteries, inverter or all-in-one.
Generator is quite expensive if you have no budget for this. At least with solar panels, the source of energy is always free.
I hope the OP can read this suggestion as for sure solar energy is cheaper than generator if you are just setting up like 200-W solar panel.
Check also the wind turbine option. You can already run hybrid sources of energy these days. You can connect both wind turbine and solar panel in one MPPT.