Difference between revisions of "TFTP"

From ArchWiki
Jump to: navigation, search
(Add configuration for tftpd, removed configuration for dhcpd (unrelated))
(Expand and reword a bit)
Line 1: Line 1:
 
[[Category:Networking (English)]]
 
[[Category:Networking (English)]]
  
== Introduction ==
+
The [[Wikipedia:Trivial File Transfer Protoco|Trivial Fire 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 HOWTO describes how to set up a tftpd server under Arch Linux.
+
 
 +
This article describes how to set up a tftpd server under Arch Linux using the {{Package Official|tftp-hpa}} package.
  
 
== Installation ==
 
== Installation ==
The first thing is to install all necessary stuff:
+
The first thing is to install the necessary package:
 
  # pacman -S tftp-hpa
 
  # pacman -S tftp-hpa
  
 
== Configuration ==
 
== Configuration ==
The configuration for tftpd is in /etc/conf.d/tftpd
+
The configuration for tftpd is in {{filename|/etc/conf.d/tftpd}}
  
The default configuration is  
+
The default configuration is:
  
 
  #
 
  #
Line 18: Line 19:
 
  TFTPD_ARGS="-l -s /var/tftpboot"  
 
  TFTPD_ARGS="-l -s /var/tftpboot"  
  
The directory /var/tftpdboot is created automatically when tftp-hpa is installed.
+
The directory {{filename|/var/tftpdboot}} is created automatically when tftp-hpa is installed.
 +
 
 +
For a complete list of parameters:
 +
$ man in.tftpd
  
 
== Run ==
 
== Run ==
Tftpd daemon can be started in one of the three ways.
+
To start the daemon at boot, add {{codeline|tftpd}} to the {{codeline|DAEMONS}} array in {{filename|/etc/rc.conf}}.
 
+
1. From /etc/rc.conf
+
 
+
Add "tftpd" to the DAEMON line in /etc/rc.conf
+
 
+
2. From /etc/rc.d
+
 
+
/etc/rc.d/tftpd start
+
 
+
3. From commandline
+
  
  /usr/sbin/tftpd -l -s path/to/folder/to/export.
+
To start the daemon manually:
 +
  # /etc/rc.d/tftpd start
 +
or, to start without a configuration file:
 +
# /usr/sbin/in.tftpd -l -s path/to/folder/to/export

Revision as of 02:48, 13 August 2011


The Trivial Fire 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 Template:Package Official package.

Installation

The first thing is to install the necessary package:

# pacman -S tftp-hpa

Configuration

The configuration for tftpd is in Template:Filename

The default configuration is:

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

The directory Template:Filename 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 Template:Codeline to the Template:Codeline array in Template:Filename.

To start the daemon manually:

# /etc/rc.d/tftpd start

or, to start without a configuration file:

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