LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-10-2006, 10:00 PM   #1
smarthouseguy
LQ Newbie
 
Registered: Jan 2006
Posts: 15

Rep: Reputation: 0
How do you set up a TFTP in SW 10.2?


I use asterisk on my slackbox as my voip pbx. The install calls for aftpd from ftp://ftp.mamalinux.com/pub/atftp/atftp-0.7.tar.gz
but I've not been able to get this for some time. Is there another way to set up a TFTP server on my box using something already there?? If so, how?
 
Old 04-11-2006, 06:19 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Enable the line for tftpd in /etc/inetd.conf by removing the '#' at the beginning of the line (luckily Slackware comes with tftpd-hpa which you need for Asterisk)
Code:
# tftp  dgram   udp     wait    root    /usr/sbin/in.tftpd  in.tftpd -s /tftpboot -r blksize
and reload inetd by running " /etc/rc.d/rc.inetd restart".
You still need to create the directory "/tftpboot" which will hold the boot files that tftpd will serve. This directory is the root of a secure jail (the "-s /tftproot" parameter in /etc/inetd.conf).
 
Old 07-14-2006, 06:00 PM   #3
smarthouseguy
LQ Newbie
 
Registered: Jan 2006
Posts: 15

Original Poster
Rep: Reputation: 0
how can i verify that this it working? phones don't want to take firmware updates from the tftp
 
Old 07-18-2006, 01:49 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Use tftp to get a file of which you're certain it is on the tftp server's tftpboot directory:

Code:
tftp localhost -c get somefile
Did you restart inetd after editing /etc/inetd.conf ?
Code:
/etc/rc.d/rc.inetd restart
Eric
 
Old 03-23-2007, 01:05 PM   #5
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
Hello there guys.

I am just about to get this tftp working on my slackware 11 machine. When i type the command on the cisco pix to dump the running-config unto the tftp server, i guess the following error message:
%Error writing tftp://192.168.220.214//pix.cfg;int=inside (Permission denied)
This means the tftp server service is running, but i can't write to that file and/or directory, i dont' know. How do i solve this problem?

Last edited by trebek; 03-23-2007 at 01:10 PM.
 
Old 03-23-2007, 06:41 PM   #6
smarthouseguy
LQ Newbie
 
Registered: Jan 2006
Posts: 15

Original Poster
Rep: Reputation: 0
did you create the directory
"/tftpboot"
first??

I'm guessing you did since you say it's working but you can't write to it.

I only use mine to download from, but I would think it has something to do with permissions of the direcotry.

If you type:
man tftp
it will give you the manual for tftp-hpa, maybe what you need is in there

Last edited by smarthouseguy; 03-23-2007 at 06:56 PM.
 
Old 03-25-2007, 01:33 PM   #7
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
It did had to do with permissions, but not on the directory. I did have the /tftpboot directory, and at first, i gave it a 'chmod 777 /tftpboot' just to avoid having any issues. But then a friend of mine said to me: "you should give permissions not only to the directory, but to the file itself aswell". So i did and it worked just fine.

Thanks for the help man, i appreciate it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set up an TFTP server in Slackware 9.1? moger Slackware 11 02-06-2008 11:54 PM
tftp baparekh Linux - Newbie 1 03-07-2005 02:51 PM
how to set up tftp service techjp Linux - Networking 1 07-03-2004 01:30 AM
TFTP-Problem: TFTP timed out Bikerpete Linux - General 2 08-14-2003 05:25 AM
TFTP help!!! zhangyunyan Linux - Networking 3 12-05-2002 03:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration