There are a lot of great comments here about practice and having fun and nice guitar.
You want to learn how to play?
SCALES.
On the guitar there are chord scales and single note scales.
Learn them all. Especially chord scales.
Your goal should be to pick up the guitar and freely play it, and I'm not talking about a song, what I mean is if I say play me a blues riff in e minor you should be able to do that!
Memorizing the entire fret board, although I massive chore is one of the best fundamentals you'll ever learn!