How can I solo mine using Bitcoin Core?
You cannot.  The mining functionality was removed in version 0.13.0 since it was hopelessly inefficient.  See Since which version the mining functionality removed from wallet?

It is not practical to mine Bitcoin without recent specialized ASIC hardware.  See In the ASIC-age, is it worth starting mining Bitcoin at home?