Changes

Jump to: navigation, search

Setting up tftp and nfs

311 bytes added, 10:42, 31 October 2018
How to configure a TFTP Server
===Introduction===
Especially during the developmentphase, you would like to be able to have full control over the target systemboot process. This section describes how to configure your host system for this purpose.
==== How to configure a TFTP Server ====
* For '''Debian/Ubuntu 8.x''':
** download the atftp ''atftpd'' package with the preferred method. For example, run sudo apt-get install atftpatftpd** edit the /etc/default/atftp atftpd and change the USE_INETD to false
** create the tftp root directory: sudo mkdir /tftpboot
** assign the permission: sudo chmod -R 777 /tftpboot and sudo chown -R nobody /tftpboot
** start the server: sudo /etc/init.d/atftpd start
To change the tftp root directory, user should edit the /etc/default/atftp atftpd file. Please note that, beside ''atftpd'', there are other software packages providing a tftp server, e.g. '''tftpd-hpa''' and '''tftpd'''.
==== How to configure a NFS Server ====
** download the nfs packages with the preferred method. For example, run sudo apt-get install nfs-kernel-server nfs-common portmap
** when configuring portmap, do not bind loopback. If loopback is bound, reconfigure portmap (sudo dpkg-reconfigure portmap), then restart it: sudo /etc/init.d/portmap restart
** NFS exports from a server are controlled by the file /etc/exports. So, to export the directory /home/user, edit the /etc/exports file adding the following line. This line exports the "/home/user" directory with read and write permissions to all hosts.<br><pre> /home/user *(rw,sync,no_root_squash)</pre><br>
** Save the file and restart the server: sudo /etc/init.d/nfs-kernel-server restart
 
For other distributions, the procedure will be very similar: the NFS configuration is always modified editing the /etc/exports file. The packages names, the method to install them and how to restart the servers may vary.
 
=== Useful Links ===
 
http://processors.wiki.ti.com/index.php/Setting_Up_a_TFTP_Server
 
https://help.ubuntu.com/community/SettingUpNFSHowTo
8,157
edits

Navigation menu