pxe tftpd dhcpd advanced client identifier http
assuming PXE is up and running already
see thttpd then here’s a minimal setup for PXE
dir=/tftpboot logfile=/var/log/thttpd.log pidfile=/var/run/thttpd.pid
Ubuntu
apt install nginx cp -pi /etc/nginx/sites-available/default /etc/nginx/sites-available/default.dist vi /etc/nginx/sites-enabled/default #root /var/www/html; root /tftpboot; autoindex on; systemctl restart nginx
got the weirdest thing ever
2021/04/29 16:14:46 [alert] 4155300#4155300: *15 sendfile() failed (22: Invalid argument) while sending response to client, client: 127.0.0.1, server: _, request: "GET /gentoo/image.squashfs HTTP/1.1", host: "localhost"
==> going back to thttpd
locally
curl -Si localhost wget http://localhost/gentoo/image.squashfs
remote node on the network
curl -Si PXE-SERVER wget http://PXE-SERVER/gentoo/image.squashfs
How to fix ‘failed (22: Invalid argument) while sending response to client’ https://stackoverflow.com/questions/54265428/how-to-fix-failed-22-invalid-argument-while-sending-response-to-client
Failed downloading file. Nginx aio read /path/to/file failed (22: Invalid argument) https://serverfault.com/questions/975342/failed-downloading-file-nginx-aio-read-path-to-file-failed-22-invalid-argume
[Maas-devel] dhcpd apparmor setup https://lists.ubuntu.com/archives/maas-devel/2012-September/000516.html
Configuration of ntp in secure environments https://cognoz.github.io/ntp-configure-in-secure-envs/