If you want to make money from your software, don’t give it out for free. And if you do give it out for free don’t complain when someone else makes the money.
The companies around Open Source want to make money out of work done by other people (they use OSS themselves) but don’t want the same happening to their software.