You can download all code files to your Ubuntu machine inside a computer lab with ZERO internet as long as both machines are connected to the same LAN / Wi-Fi or Mobile Hotspot:
Start the LAN Server on the host machine:
Double-click start-lan-server.bat on Windows, or run:
python lan_server.py 8080
The script displays your exact local LAN IP address (e.g. 192.168.1.50).
Open or update the Host URL:
In this page, set Host URL to http://192.168.1.50:8080 (or your machine's IP).
Run on Ubuntu terminal:
curl http://192.168.1.50:8080/p1 -o p1.c
Or download all 9 programs together:
for i in {1..9}; do curl -s http://192.168.1.50:8080/p$i -o p$i.c; done
Ubuntu OpenGL & GLUT Setup & Compile Guide
Follow these quick commands on your Ubuntu terminal to compile and run any of the programs: