How to install ceiling light where there previously was none?
You've pretty much got it.  If you can twist wires with wire nuts and connect them to a switch you have the technical skills needed.  The hardest part is usually pulling the wire from the wall into the ceiling.


Get an "old work" ceiling/light box.  Cut a hole in the desired ceiling location, ensuring no joist will interfere with anchoring the old work box there.  (If you want to hang a ceiling fan or something heavy you'll need a joist-anchored box, which can be quite a pain to get into place unless you have easy access above.)
Pull/fish approved wire (no less than 14/2, assuming 15 amp service) from the switch box to the light box.
Wire and hang the light.
Turn off the circuit to the switch, then connect the new wire to the existing switch.


Remember: all wire has to be anchored to the work boxes, and all splices/connections made inside the work boxes.