At the end the problem is not contained to Peak Oil, or Peak Energy. It is really peak everything.
This picture is just amazing and gives a clear idea of the limits of the planet in terms of resources.
The only solution I see for us is to find "free energy" somehow, and even then, we would have to climb the mountains of nanotechnology to create new materials to replace what we can not extract from earth. Replace steel, wood and cement, by something else synthetic, made from dirt or thin air, which will require monstrous amounts of energy to make; but if energy is free, it is free. Technology saving us again...

A Star Trek Shangri-la scenario.
So, basically, there is no solution. We will reach stagnation soon and eventually decline. The crash will be hard, at least in most countries - for some it will be worse, for some better. Africa will be a goner. Zimbabwe in a continental scale - massive depopulation. And the rest? Have no idea, but there is an obvious clue. Whoever is priced out first, will suffer first and whoever has resources will survive longer. It will be ugly.