You are on page 1of 1

UBUNTU TFTP INSTALL

=====================

NOTE: ensure you can ping router/switch from tftp server machine.

1) install:

$ sudo apt update; sudo apt install tftp-hpa tftpd-hpa

2)Configure: emacs -nw /etc/default/tftpd-hpa

# /etc/default/tftpd-hpa
TFTP_USERNAME="username" <----- replace with user name on system (with
rwx priviledges on /var/lib/tftpboot)
TFTP_DIRECTORY="/var/lib/tftpboot" <----- Files will be stored here. i.e copied
to/from here (you can specify another location)
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure --create" <----- Add --create so that files can be
written to /var/lib/tftpboot

3) restart tftp:

$ sudo /etc/init.d/tftpd-hpa restart

4) Testing:
a) create a file with some text in /var/lib/tftpboot/ and call it, say
testing.txt

b) from ubuntu prompt, type:


$tftp <ip address of server machine> <---- the ip is for the same
machine in which tftp is installed.

prompt will change to:


tftp>

Now type:
tftp> get testing.txt
tftp> <-- you should get back the prompt.
tftp> quit <-- type quite to exit.

When copying files from devices: you will be asked for the ip address of the tftp
server.

You might also like