2016年4月3日 星期日

Ubuntu安裝TFTP Server

1. 安裝套件
$ sudo apt-get install xinetd tftpd tftp
2. 新增/etc/xinetd.d/tftp,建立tftpd config,server_args參數填入分享的目錄
service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = /tftpboot
disable         = no
}
3. 建立分享目錄,修改權限
$ sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R nobody /tftpboot
4. 重新啟動xinetd
$ sudo /etc/init.d/xinetd restart
5. 參考來源
http://unix.stackexchange.com/questions/190259/tftp-isnt-listening-the-defined-port-when-started-using-a-xinetd-rule

沒有留言:

張貼留言