개발환경/ubuntu
ubuntu 12.04 TFTP 설정
chipmaker
2013. 6. 9. 23:16
1. Package 설치
$ sudo apt-get install tftp tftpd
xinetd가 인스톨 되어 있지 않을 경우 xinetd를 인스톨 한다.
$ sudo apt-get install xinetd
xinetd가 인스톨 되어 있지 않을 경우 xinetd를 인스톨 한다.
$ sudo apt-get install xinetd
2. xinetd 설정
$ sudo vi /etc/xinetd.d/tftp
/etc/xinetd.d/tftp에 이하의 내용을 추가합니다.(있을 경우 수정, disable=no로 바꾸는 것에 주의)
# 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 = no
}
# 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 = no
}
3. xinet 서비스 재 가동
$ sudo service xinetd restart
or
$ sudo /etc/init.d/xinetd restart
or
$ sudo /etc/init.d/xinetd restart