I lubricate with lithium grease, but none on the 8 inches closest to the speedo head.
Allow the cable as smooth a run as possible to avoid a jerky movement.
The speedo head end of the inner cable usually has a collar attached a little way from the end. The knurled nut at speedo end has a different thread (metric) to the gearbox end (imperial)