Cygwin: How to setup tftpd

February 14, 2010 · Posted in Cygwin · Comment 

Make sure you have setup inetd already.

create a root directory for tftpd:

$ mkdir /tftpboot

Edit /etc/inetd.conf

(before)

#tftp  dgram   udp     wait    nobody  /usr/sbin/in.tftpd in.tftpd

(after)

tftp  dgram   udp     wait    root  /usr/sbin/in.tftpd in.tftpd -s -p /tftpboot

# If you changed the root directory for tftpd, then the above line needs to be modified accordingly.

Restart cygwin inetd service:

$ net stop inetd
$ net start inetd

Check if the tftpd is working

$ netstat -a | grep tftp
  UPD     MyServer:tftp           *:*

Cygwin: How to setup inetd

February 14, 2010 · Posted in Cygwin · 2 Comments 

(You have to have administrative privileges.)

Make sure you have set system PATH to cygwin binary directory: “My Computer” (right click) –> “properties” –> “Advanced” tab –> “Environment Variables” button on the bottom right above the “OK” button.

Register your  cygwin inetd service to Windows’ service:

$ /usr/sbin/inetd --install-as-service

(The dollar sign above is a prompt)

Then start the inetd service:

$ net start inetd

or

$ cygrunsrv -S inetd