tftpserverのセットアップ備忘録
ubuntuにtftpd(tftp)をセットアップする場合のパッケージと設定ファイルの備忘
[root@cent5-64b-40 tftpboot]# pwd /mnt/mnt2/motion/tftpboot [root@cent5-64b-40 tftpboot]# [root@cent5-64b-40 tftpboot]# cat readme.txt root@ibm-r40e:/# dpkg -l | grep tftp ii tftp 0.17-18ubuntu2 Trivial file transfer protocol client ii tftpd 0.17-18ubuntu2 Trivial file transfer protocol server root@ibm-r40e:/# root@ibm-r40e:/# root@ibm-r40e:/# cd /etc/ root@ibm-r40e:/etc# find . | grep tftp ./xinetd.d/tftp root@ibm-r40e:/etc# cat ./xinetd.d/tftp service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = /usr/sbin/in.tftpd server_args = /tftpboot disable = no } root@ibm-r40e:/etc# [root@cent5-64b-40 tftpboot]#
Ubuntuはここまで、
以下はCentに新規インストールする場合の備忘
[root@cent5-64b-40 tftpboot]# cat /tmp/yumlist | grep tftp atftp.x86_64 0.7-6.el5.rf rpmforge atftp-server.x86_64 0.7-6.el5.rf rpmforge syslinux-tftpboot.x86_64 4.02-7.2.el5 base tftp.x86_64 0.49-2.el5.centos base tftp-server.x86_64 0.49-2.el5.centos base [root@cent5-64b-40 tftpboot]# yum install tftp tftp-server ..... ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: tftp x86_64 0.49-2.el5.centos base 23 k tftp-server x86_64 0.49-2.el5.centos base 32 k Transaction Summary ================================================================================ ..... Installing : tftp 1/2 Installing : tftp-server 2/2 [root@cent5-64b-40 tftpboot]# rpm -ql tftp-server /etc/xinetd.d/tftp /tftpboot /usr/sbin/in.tftpd /usr/share/man/man8/in.tftpd.8.gz /usr/share/man/man8/tftpd.8.gz [root@cent5-64b-40 tftpboot]# cat /etc/xinetd.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 { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot disable = yes per_source = 11 cps = 100 2 flags = IPv4 } [root@cent5-64b-40 tftpboot]#