Difference between revisions of "TFTP"

From ArchWiki
Jump to: navigation, search
(Installation: updated to comply with new style guide)
(replaced old templates with new ones)
Line 3: Line 3:
 
The [[Wikipedia:Trivial File Transfer Protocol|Trivial File Transfer Protocol]] (TFTP) provides a minimalistic means for transferring files.  It is generally used as a part of [[PXE]] booting or for updating configuration and firmware on devices which have limited memory such as routers and printers.
 
The [[Wikipedia:Trivial File Transfer Protocol|Trivial File Transfer Protocol]] (TFTP) provides a minimalistic means for transferring files.  It is generally used as a part of [[PXE]] booting or for updating configuration and firmware on devices which have limited memory such as routers and printers.
  
This article describes how to set up a tftpd server under Arch Linux using the {{Package Official|tftp-hpa}} package.
+
This article describes how to set up a tftpd server under Arch Linux using the {{Pkg|tftp-hpa}} package.
  
 
== Installation ==
 
== Installation ==
Line 9: Line 9:
  
 
== Configuration ==
 
== Configuration ==
The configuration for tftpd is in {{filename|/etc/conf.d/tftpd}}
+
The configuration for tftpd is in {{ic|/etc/conf.d/tftpd}}
  
 
The default configuration is:
 
The default configuration is:
 
 
  #
 
  #
 
  # Parameters to be passed to TFTPD
 
  # Parameters to be passed to TFTPD
Line 18: Line 17:
 
  TFTPD_ARGS="-l -s /var/tftpboot"  
 
  TFTPD_ARGS="-l -s /var/tftpboot"  
  
The directory {{filename|/var/tftpdboot}} is created automatically when tftp-hpa is installed.
+
The directory {{ic|/var/tftpdboot}} is created automatically when {{Pkg|tftp-hpa}} is installed.
  
 
For a complete list of parameters:
 
For a complete list of parameters:
Line 24: Line 23:
  
 
== Run ==
 
== Run ==
To start the daemon at boot, add {{codeline|tftpd}} to the {{codeline|DAEMONS}} array in {{filename|/etc/rc.conf}}.
+
To start the daemon at boot, add {{ic|tftpd}} to the {{ic|DAEMONS}} array in {{ic|/etc/[[rc.conf]]}}.
  
 
To start the daemon manually:
 
To start the daemon manually:
 
  # /etc/rc.d/tftpd start
 
  # /etc/rc.d/tftpd start
or, to start without a configuration file:
+
 
 +
To start the daemon without a configuration file:
 
  # /usr/sbin/in.tftpd -l -s path/to/folder/to/export
 
  # /usr/sbin/in.tftpd -l -s path/to/folder/to/export

Revision as of 18:42, 14 November 2011


The Trivial File Transfer Protocol (TFTP) provides a minimalistic means for transferring files. It is generally used as a part of PXE booting or for updating configuration and firmware on devices which have limited memory such as routers and printers.

This article describes how to set up a tftpd server under Arch Linux using the tftp-hpa package.

Installation

Install the package tftp-hpa which can be found in the official repositories.

Configuration

The configuration for tftpd is in /etc/conf.d/tftpd

The default configuration is:

#
# Parameters to be passed to TFTPD
#
TFTPD_ARGS="-l -s /var/tftpboot" 

The directory /var/tftpdboot is created automatically when tftp-hpa is installed.

For a complete list of parameters:

$ man in.tftpd

Run

To start the daemon at boot, add tftpd to the DAEMONS array in /etc/rc.conf.

To start the daemon manually:

# /etc/rc.d/tftpd start

To start the daemon without a configuration file:

# /usr/sbin/in.tftpd -l -s path/to/folder/to/export