When I was in high school, computers had Deep Freeze setup, because kids would constantly break the OS and download malware. It’s a software that resets the C drive to a known state on every reboot. You might consider using something similar on classroom workstations.
Also, it might be worth learning about network booting, automating the Linux installer and ansible to install things on every machine at once and automate configuration work.
Same in my case. But we were also learning c++ using Turbo C++ (the msdos one with the blue UI) in the 2010. Everything about high school was 15-20 years out of date. The OS (windows xp) was probably the newest thing on those computers.