Install atftp Server In Ubuntu

Install atftp Server In Ubuntu

TFTP, aka Trivial file transfer protocol is a simple protocol to transfer file. The TFTP only reads and writes files from or to a remote server. In Linux, atftp is a Advanced TFTP client (RFC 1350). It can be used to retrieve files from TFTP server. Let's look at how to install a atftp server in Ubuntu.

Well, before you setup atftp, you need to install the server and run it.

sudo aptitude install atftpd

Once you have typed in the above command, press enter and wait for the installation to complete. As the installation finishes, you will have to modify certain files in /etc and then configure the tftp.

By default the atftpd server starts using inetd, hence you will need to make changes such that atftpd runs as a server directly and not through inetd.Edit/etc/default/apftpd using the following command.

sudo vi /etc/default/atftpd

Once you type in the above command, edit USE_INETD=true to USE_INETD=false. Save and quit the vi editor(:wq). Next run the command  sudo invoke-rc.d atftpd start

Once this is completed successfully, configure the atftpd server. Create a directory where you can place the files; next changes the permission; then change the owner and restart the server.

sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot
sudo /etc/init.d/atftpd restart


Setting up the atftp client
After the installation and configuration of tftp server, install the tftp client. The work of the client is to transfer files.

sudo aptitude install atftp

Once this is done, you can use your tftp to transfer files. This is a basic how-to, which tells you how to setup your tftp server and client.