To temporarily disable the lights, run the following two commands:
To permanently disable the lights, edit the boot config file using the following command:
Once in the file, add the following lines to the bottom:
Exit the nano text editor using
ctrl+X and enter
Y to save. Then reboot the Pi using
the following command.
I got this code from here, but the formatting on the website was a little messed up so I reposted here.
Picture is from diyprojects.io.