Skip to main content

A simple TFTP boot server for the Raspberry Pi

Project description

nobodd is a confusingly named, but simple TFTP server intended for net-booting Raspberry Pis directly from OS images without having to loop-back mount those images. Even customization of an image for booting on a particular board is handled without loop devices or mounts (making it possible to operate completely unprivileged), via a read/write FAT implementation within the nobodd-prep tool.

Usage

If you have an appropriately customized OS image already placed in a file (ubuntu.img), and the serial number of the Pi in question (1234ABCD) then serving it as simple as:

$ sudo nobodd-tftpd --board 1234ABCD,ubuntu.img

This defaults to reading the first partition from the file, and pretends (to TFTP clients) that the contents of the first partition appears under the 1234ABCD/ directory. Hence a TFTP request for 1234ABCD/cmdline.txt will serve the cmdline.txt file from the first partition contained in ubuntu.img.

The service either needs to run from root (because the default TFTP port is the privileged port 69), or can be run as a systemd or inetd socket-activated service, in which case the service manager will provide the initial socket and the service can run without any special privileges.

The mapping of Pi serial numbers to OS image files can also be placed in a configuration file under /etc/nobodd/conf.d. A tool, nobodd-prep, is provided to both customize images for boot and generate basic configuration files for nobodd-tftpd and nbd-server.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nobodd-0.3.tar.gz (108.5 kB view details)

Uploaded Source

Built Distribution

nobodd-0.3-py3-none-any.whl (90.4 kB view details)

Uploaded Python 3

File details

Details for the file nobodd-0.3.tar.gz.

File metadata

  • Download URL: nobodd-0.3.tar.gz
  • Upload date:
  • Size: 108.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for nobodd-0.3.tar.gz
Algorithm Hash digest
SHA256 03890ad49b1bd462568f6caeca33ff3599defcfe91e0fe334ef525fd2e9eebd9
MD5 7cca78ddab83f14c83875765c2a56cef
BLAKE2b-256 1ed978e9aae7671e54d3cabae92ee7c4aa0d3bedb773cd31095d9e47c9f3a550

See more details on using hashes here.

File details

Details for the file nobodd-0.3-py3-none-any.whl.

File metadata

  • Download URL: nobodd-0.3-py3-none-any.whl
  • Upload date:
  • Size: 90.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for nobodd-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d7361db309e5ea46abf2c7947e9d464d1f3020e7e0cec041a1980d4a68b251c8
MD5 7b8eccf1c21cda6da865ab54061fb878
BLAKE2b-256 be52ef569fe573f1d34bdd4d934eee8f20da2e22c4a4cb1819b067804e888f92

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page