'Livelihood' is the better word in both those cases. It suggests the basic means to feed, clothe and house yourself and your family. We wouldn't use 'living' in those sentences.
We tend to use 'living' in the set phrases 'make a living' or 'do [something] for a living'. In the second case, especially, it refers to the activity which is your source of income ( as opposed to a hobby). For example, "I love painting, wouldn't like to have to do it for a living".