and I would like to mine,too (not for profit, just to help bitcoin network).
I wouldn't recommend you to do it if you mine at loss.
I found somewhere on internet that the command for mining is setgenerate true (1), but it doesn't work.
It's likely you found outdated article,
setgenerate command removed on Bitcoin Core 0.13.0.