Howto Tftp Server (English)





HOWTO

Tftp Server


Author:  JUL <JUL_AT_julnav.com>

Contributor:
  

Release supported: SME 6.x

License: color=#ff0000>GPL


Last updated:

Friday, August 20, 2004


Problem: 
You want to install tftp server on SME box.

Solution:
 
Follow this HowTo



STEP 1: Download and install contribs



tftp-0.28-2.i386.rpm

tftp-server-0.28-2.i386.rpm


STEP 2: Create storage directory



Create and change right on storage directory
# mkdir /tftpboot

# chown nobody:nobody /tftpboot

# chmod 755 /tftpboot



STEP 3: Change xinet.d parameter

#

pico -w /etc/xinet.d/tftp

# default: off

# description: The tftp server serves files using the trivial file transfer \

# protocol. The tftp protocol is often used to boot diskless \

# workstations, download configuration files to network-aware printers, \

# and to start the installation process for some operating systems.

service tftp

{

        disable = no

        socket_type = dgram

        protocol = udp

        wait = yes

        user = root

        server = /usr/sbin/in.tftpd

        server_args = -c -s /tftpboot

        per_source = 11

        cps = 100 2

}

Change disable and server-args as as above.



STEP 4:  Restart Xinetd



#

/etc/init.d/xinetd restart



STEP 5: Create template for hosts.allow



# mkdir -p / etc/e-smith/templates-custom/etc/hosts.allow /

# pico -w /etc/e-smith/templates-custom/etc/hosts.allow/tftp

in.tftpd: ALL

ctrl-o

ctrl-x



# /sbin/e-smith/expand-template /etc/hosts.allow





Now it's possible for diskless station in local network to boot or to upgrade router and switch through tftp.
Category: 
Howtos pour E-Smith/SME