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.4.tar.gz (108.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nobodd-0.4.tar.gz
Algorithm Hash digest
SHA256 7d84ad25fe9df2970e825bc87addb7ae8027a16280d90afed8b28f37a0fa683d
MD5 71375c8c16ce2a69a56dbdb5e4ee572c
BLAKE2b-256 167089736922dad63c99c3c497e4b323f7874bfb06796c57723400ce92403824

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nobodd-0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ee54d87ac3cfa59d2561d44458278502ed3445b8bb6b8c89f2b0de85b86fafc0
MD5 ff9f51add559fa8f9d8f651a4897dc28
BLAKE2b-256 586c1bce7df3f64319899bf4358902261020715d963e4db80c3966993215daae

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