In hot climates, install solar panels on the roof to generate hot water; everywhere: install photovoltaic panels on the roof to generate electricity. In blocks of flats, the house-owner associations should share the cost of installation.