One obvious way is to sell Free Software. The market has raced to the bottom recently, but a while ago a lot of GNU development was funded by Free Software sales.
Compare this to proprietary software, which can't operate in a capitalistic society. It relies on government interference in the software market to create an artificial scarcity (ie. copyright).