This question is a bit vague. These days the short answer is: don't.
To do it economically you need some advantage, usually through cheap access to electricity. So if you live near cheap geothermal or solar energy it could pay off. Even then you need specialized hardware.