HTTP INSTALL SERVER

pxe tftpd dhcpd advanced client identifier http

assuming PXE is up and running already

THTTPD

see thttpd then here’s a minimal setup for PXE

dir=/tftpboot
logfile=/var/log/thttpd.log
pidfile=/var/run/thttpd.pid

NGINX

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

ACCEPTANCE

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

RESOURCES

troubles

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

apparmor

[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/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun