Setup TFTP Server on Fedora7
时间:2009-04-23 来源:helentpe
A) install it
# rpm -ivh tftp-server-0.42-4.i386.rpm
B) check whether installed or not :
# rpm -qa } grep tftp
(you will see some filename with ***tftp*** , that means installation OK)
C) configure :
# vi /etc/xinetd.d/tftp
(you will see this, change to "disable = no")
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 1002
flags = IPv4
}
D.1) start up / re-start services :
# /etc/init.d/xinetd start
or
# /etc/init.d/xinetd restart
(you will see :
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ] )
D.2) or
/sbin/chkconfig tftp on
/sbin/chkconfig xinetd on
/sbin/service xinetd start
E) testing :
E.1) image file placed at /tftpboot :
# mkdir /tftpboot
E.2) # touch /tftproot/test.img
E.3) (from other Linux PC)
tftp 192.168.0.1
tftp> get test
tftp> quit
E.4) (from other Win PC)
tftp -i 192.168.0.1 GET test
Thx !
# rpm -ivh tftp-server-0.42-4.i386.rpm
B) check whether installed or not :
# rpm -qa } grep tftp
(you will see some filename with ***tftp*** , that means installation OK)
C) configure :
# vi /etc/xinetd.d/tftp
(you will see this, change to "disable = no")
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 1002
flags = IPv4
}
D.1) start up / re-start services :
# /etc/init.d/xinetd start
or
# /etc/init.d/xinetd restart
(you will see :
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ] )
D.2) or
/sbin/chkconfig tftp on
/sbin/chkconfig xinetd on
/sbin/service xinetd start
E) testing :
E.1) image file placed at /tftpboot :
# mkdir /tftpboot
E.2) # touch /tftproot/test.img
E.3) (from other Linux PC)
tftp 192.168.0.1
tftp> get test
tftp> quit
E.4) (from other Win PC)
tftp -i 192.168.0.1 GET test
Thx !
相关阅读 更多 +