Abhi nobody earns anything from open source software itself, but they can generate revenue by offering enterprise grade support for it. Red Hat for example have been doing this for years. If you publish your course as open source, anyone can fork that work and claim it as their own.
This depends on the license it is issued under.