Steve’s Ubuntu Weblog

Mainly (but not only) about Ubuntu

Configuring tftp in Ubuntu

I am trying to upgrade an old FNS1000 NAS to be a LAMP server, which I will describe here if I am successful. One thing I needed was to be able to communicate with the NAS via tftp and I had a real hard time setting up the tftp server on my Ubuntu system. I have finally got it working and so I will explain how I did it here.

First you need to download and install tftp tftpd and xinetd using Synaptic or with

sudo apt-get install tftp tftpd xinetd

Using your favourite editor write the following text file and save it as /etc/xinetd.d/tftp

service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = -s var/lib/tftpboot
disable = no
}

I found that the directory /var/lib/tftpboot was already in my /var/lib folder. I’m not sure where it came from but if you have it use it and if not make it with

sudo mkdir /var/lib/tftpboot

Then change it’s permissions and ownership with

sudo chmod -R 777 /var/lib/tftpboot
sudo chown -R nobody /var/lib/tftpboot

Then start tftpd through xinetd. You have to use re-start and not start

sudo /etc/init.d/xinetd restart

That’s the configuration. Now to test the server.

Place a test file test.txt in the /var/lib/tftpboot and then give it 777 permissions with

chmod 777 /var/lib/tftpboot/test.txt

cd into the /var/lib/tftpboot directory and start tftp with the ip address of your PC. On the tftp> type “put test.txt” and if everything works you will get the Sent message like below.

cd /var/lib/tftpboot
tftp 192.168.0.10
tftp> put test.txt
Sent 722 bytes in 0.0 seconds
tftp> quit

Good luck

8 October, 2009 Posted by steveyoung | Uncategorized | | No Comments Yet

Microwave Link Engineering Tool proving popular in Poland

This is a special welcome to all of the new MLET users from Poland, I hope that you are happy with the tool. You can leave any comments or suggestions for improvement below.

There has been a big increase of MLET users from Poland over the last few weeks and I was wondering what the reason for this increase is. Was there an article written about the tool or was it word of mouth? I would appreciate any feedback on this.

One more thing, please click on any interesting Google Ads links on the page. This is the only way I get anything for my efforts.

Do widzenia

8 October, 2009 Posted by steveyoung | Uncategorized | | 2 Comments