Re: atfptd in squeeze won't do anything

2011-08-31 Thread Scott Ferguson

On 01/09/11 00:38, Isaac Freeman wrote:

Thanks for the reply. Yes, I'm looking to set up a PXE server. The
permissions on the directory provided to atftpd are 777 as specified in
the usage. I don't see how host.{allow,deny} make any difference with
whether or not the server starts.


They don't affect the server starting - they are the next obstacle after 
the server starts ("it wouldn't take connections through the default 
inetd stuff" ?).



I'll give tftp-hpa a try, and I'll
look in to gpxe.



Irony(?) - looking through my notes from when I was collecting 
information to build my first pxe server, I see all these Lotus links... 
:-)  I no longer have my IBM logins - but you'll find plenty of internal 
references (redbooks etc).


I used/use a separate machine (IPCop) for my DHCP server - so your setup 
will be different. Post your dhcpd.conf and if you have problems 
connecting clients to a running tftp server.


There's a good guide to a basic single machine setup here:-
http://www.debian-administration.org/articles/478

NOTE: that is slightly different to Squeeze - replace references to 
/var/lib/tftpboot with /serv/tftpboot


Basic guide (note my point about me not running a dhcp server on the 
same box:-


*Install tftp server
# apt-get install tftpd-hpa

*Check tftp server
# netstat -uap | grep tftp
udp0  0 *:tftp  *:* 
2242/inetd


If you don't get that output, please advise and I'll post the simple fix.

*Setup dhcpd.conf eg.:-


subnet 192.168.2.0 netmask 255.255.255.0 {
   range 192.168.2.10 192.168.2.20;
   filename "pxelinux.0";
   next-server 192.168.2.1;
   option routers 192.168.2.1;
}

*Setup server directories:-
# mkdir -v /srv/tftpboot/pxelinux.cfg
# mkdir -pv /srv/tftpboot/$distro/$release/$arch
^^ eg. /srv/tftpboot/debian/squeeze/i386

*Setup pxelinux.cfg/default (/srv/tftpboot/pexlinux.cfg/default):-
-
DISPLAY boot.txt

DEFAULT squeeze_i386_expert_kde

LABEL squeeze_i386_expert_kde
 kernel debian/squeeze/i386/linux
 append priority=low vga=normal initrd=debian/squeeze 
/i386/initrd.gz  desktop=kde --

LABEL squeeze_i386_rescue
 kernel debian/squeeze/i386/linux
 append vga=normal initrd=debian/squeeze/i386/initrd.gz 
rescue/enable=true --

PROMPT 1
TIMEOUT 0


*Setup boot.txt (/srv/tftpbooot/pxelinux.cfg/boot.txt)
NOTE: I found there are limits to the amount of entries in this - if you 
strike problems let me know and I show you the (graphical) workaround.


---
- Boot Menu -
=

squeeze_i386_expert_kde
squeeze_i386_rescue
--

* Setup files to be served eg.:-
# cd /srv/tftpboot/
# wget -t 0 
http://ftp.au.debian.org/debian/dists/squeeze/main/installer-i386/current/images/netboot/debian-installer/i386/pxelinux.0

# cd /srv/tftpboot/debian/squeeze/i386
# wget -t 0 
http://ftp.au.debian.org/debian/dists/squeeze/main/installer-i386/current/images/netboot/debian-installer/i386/linux
# wget -t 0 
http://ftp.au.debian.org/debian/dists/squeeze/main/installer-i386/current/images/netboot/debian-installer/i386/initrd.gz


* Restart server:-
# service tftpd-hpa restart

Disclaimer - I'm working from notes and memory, *do* check my spelling. 
I've noted anytime I modify the default Debian settings - so if you are 
working with pre-installed packages double check that you didn't change 
default setting, or:-

# dpkg-reconfigure $whatever_package_has_been_tweaked




For gPXE:-
http://etherboot.org/wiki/start

I was initially inspired by this:-
http://video.google.com/videoplay?docid=1911723796712805715

Cheers

--
"Oh sorry, I was taking life seriously."
— Bill Hicks


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4e5ee775.4020...@gmail.com



Re: atfptd in squeeze won't do anything

2011-08-31 Thread Isaac Freeman
Thanks for the reply. Yes, I'm looking to set up a PXE server. The
permissions on the directory provided to atftpd are 777 as specified in the
usage. I don't see how host.{allow,deny} make any difference with whether
or not the server starts. I'll give tftp-hpa a try, and I'll look in to
gpxe.

Thanks,

--
Isaac Freeman - Systems Administrator
IBM Information Protection Services
is...@us.ibm.com
919-254-0245



From:   Scott Ferguson 
To: debian-user@lists.debian.org
Cc: Isaac Freeman/Raleigh/Contr/IBM@IBMUS
Date:   08/30/2011 07:28 AM
Subject:    Re: atfptd in squeeze won't do anything



On 24/08/11 01:24, Isaac Freeman wrote:
> I have been beating my head against the wall on this for a day and a
> half. I just installed atftpd (0.7.dfsg-9.1) on Squeeze. When I first
> installed it, it wouldn't take connections through the default inetd
> stuff. So I tried editing /etc/default/atftpd and setting
> USE_INETD=false and running it as a daemon. Still nothing. So I tried
> manually running /usr/sbin/atftpd, and no matter what options I give it
> (including none) it just prints the usage and exits, unless I specify
> --daemon and/or --no-fork in which case it just exits with an exit code
> 0 and there is no process running or anything listening on that port.
>
> Please, any ideas, reports or similar (or even different) behavior, or
> any thing else would be greatly appreciated. This is driving me crazy.
> And I can't seem to find any recent howtos on the subject, they all seem
> to be several years old, or they say basically "apt-get it, and it
> should work".
>
> Also, I tried getting tftpd-hpa working too with similar problems, but I
> haven't done as extensive of troubleshooting on that.
>
> --
> Isaac Freeman - Systems Administrator
> IBM Information Protection Services
> is...@us.ibm.com
> 919-254-0245
>

I've only ever used tftp for pxe servers - deprecated with gpxe (http is
much faster and simpler) - if that's what you want to use tftp for
you'll find tftpd-hpa much simpler to configure.

What permissions do you have on the directory being served??

Have you set up:-
/etc/hosts.allow
/etc/hosts.deny
??

If you can tell me a little more about what you want to use tftp for
more it may be helpful.

Cheers

--
"Folks, it's time to evolve. That's why we're troubled. You know why our
institutions are failing us, the church, the state, everything's
failing? It's because, um – they're no longer relevant. We're supposed
to keep evolving. Evolution did not end with us growing opposable
thumbs. You do know that, right? There's another 90 percent of our
brains that we have to illuminate."
— Bill Hicks
<>

Re: atfptd in squeeze won't do anything

2011-08-30 Thread Scott Ferguson

On 24/08/11 01:24, Isaac Freeman wrote:

I have been beating my head against the wall on this for a day and a
half. I just installed atftpd (0.7.dfsg-9.1) on Squeeze. When I first
installed it, it wouldn't take connections through the default inetd
stuff. So I tried editing /etc/default/atftpd and setting
USE_INETD=false and running it as a daemon. Still nothing. So I tried
manually running /usr/sbin/atftpd, and no matter what options I give it
(including none) it just prints the usage and exits, unless I specify
--daemon and/or --no-fork in which case it just exits with an exit code
0 and there is no process running or anything listening on that port.

Please, any ideas, reports or similar (or even different) behavior, or
any thing else would be greatly appreciated. This is driving me crazy.
And I can't seem to find any recent howtos on the subject, they all seem
to be several years old, or they say basically "apt-get it, and it
should work".

Also, I tried getting tftpd-hpa working too with similar problems, but I
haven't done as extensive of troubleshooting on that.

--
Isaac Freeman - Systems Administrator
IBM Information Protection Services
is...@us.ibm.com
919-254-0245



I've only ever used tftp for pxe servers - deprecated with gpxe (http is 
much faster and simpler) - if that's what you want to use tftp for 
you'll find tftpd-hpa much simpler to configure.


What permissions do you have on the directory being served??

Have you set up:-
/etc/hosts.allow
/etc/hosts.deny
??

If you can tell me a little more about what you want to use tftp for 
more it may be helpful.


Cheers

--
"Folks, it's time to evolve. That's why we're troubled. You know why our 
institutions are failing us, the church, the state, everything's 
failing? It's because, um – they're no longer relevant. We're supposed 
to keep evolving. Evolution did not end with us growing opposable 
thumbs. You do know that, right? There's another 90 percent of our 
brains that we have to illuminate."

— Bill Hicks


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4e5cc850.3000...@gmail.com



Re: atfptd in squeeze won't do anything

2011-08-30 Thread Camaleón
On Tue, 23 Aug 2011 11:24:22 -0400, Isaac Freeman wrote:

> I have been beating my head against the wall on this for a day and a
> half. I just installed atftpd (0.7.dfsg-9.1) on Squeeze. When I first
> installed it, it wouldn't take connections through the default inetd
> stuff. So I tried editing /etc/default/atftpd and setting
> USE_INETD=false and running it as a daemon. Still nothing. So I tried
> manually running /usr/sbin/atftpd, and no matter what options I give it
> (including none) it just prints the usage and exits, unless I specify
> --daemon and/or --no-fork in which case it just exits with an exit code
> 0 and there is no process running or anything listening on that port.
> 
> Please, any ideas, reports or similar (or even different) behavior, or
> any thing else would be greatly appreciated. This is driving me crazy.
> And I can't seem to find any recent howtos on the subject, they all seem
> to be several years old, or they say basically "apt-get it, and it
> should work".
> 
> Also, I tried getting tftpd-hpa working too with similar problems, but I
> haven't done as extensive of troubleshooting on that.

Well, I've never used such service but I would:

- Read the docs ("/usr/share/doc/atftpd/"), maybe it requires some tweaks 
to put it to work

- Review the logs, once you start the service and try to make a 
connection from a client machine

- Look into Debian BTS, maybe there is a bug on that concrete package 
that can be hitting you:

http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=atftpd;dist=unstable

- And finally, google for any recent tutorial/howto on the matter:

http://blog.kymera-it.com/2011/02/setting-up-atftpd-server-on-debian.html

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.08.30.11.03...@gmail.com



atfptd in squeeze won't do anything

2011-08-23 Thread Isaac Freeman


I have been beating my head against the wall on this for a day and a half.
I just installed atftpd (0.7.dfsg-9.1) on Squeeze. When I first installed
it, it wouldn't take connections through the default inetd stuff. So I
tried editing /etc/default/atftpd and setting USE_INETD=false and running
it as a daemon. Still nothing. So I tried manually
running /usr/sbin/atftpd, and no matter what options I give it (including
none) it just prints the usage and exits, unless I specify --daemon and/or
--no-fork in which case it just exits with an exit code 0 and there is no
process running or anything listening on that port.

Please, any ideas, reports or similar (or even different) behavior, or any
thing else would be greatly appreciated. This is driving me crazy. And I
can't seem to find any recent howtos on the subject, they all seem to be
several years old, or they say basically "apt-get it, and it should work".

Also, I tried getting tftpd-hpa working too with similar problems, but I
haven't done as extensive of troubleshooting on that.

--
Isaac Freeman - Systems Administrator
IBM Information Protection Services
is...@us.ibm.com
919-254-0245