pxeserver

command module
v0.0.0-...-4507afb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2023 License: GPL-3.0 Imports: 26 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

pihole config

Create /etc/dnsmasq.d/10-pxeserver.conf with:

# inspect the vendor class string and match the text to set the tag
dhcp-vendorclass=UEFI,PXEClient:Arch:00007
dhcp-vendorclass=UEFI64,PXEClient:Arch:00009

# Set the boot file name based on the matching tag from the vendor class (above)
dhcp-boot=net:UEFI,efi64/syslinux.efi,,192.168.1.10
dhcp-boot=net:UEFI64,efi64/syslinux.efi,,192.168.1.10

and pihole restartdns

Service (outside docker)

cat /etc/systemd/system/pxeserver.service
[Unit]
Description=PXE Server
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=/usr/bin/pxeserver

[Install]
WantedBy=multi-user.target

(See Dockerfile.pxeserver for exact commands) Create /static/ directory and

  • download ubuntu iso
  • extract vmlinuz and initrd
  • install and copy bootloader
  • copy config.yaml to /etc/pxeserver/config.yaml and edit hostname and password
  • GOOS=linux go build && scp pxeserver pi@pihole:., sudo cp ~pi/pxeserver/ /usr/bin/pxeserver`
  • sudo systemctl restart pxeserver

Reference

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址