Want to create a Lucid 5.2.8 LiveCD with working TFTP Server
-
- Posts: 33
- Joined: Wed 21 Sep 2011, 16:26
Want to create a Lucid 5.2.8 LiveCD with working TFTP Server
Hi Guys,
I have been actually working on this for three months with no luck. I want to create a live Puppy 5.2.8 DVD for loading switch configs from a tftp server. The problem is that I just can't get the tftp server up and running correctly. I have tried DNSMASQ, tftp-hpa, advanced tftp. I have tried both .pet and .deb packages but am not having any luck. Does anyone have a .pet that works and which would make it to save multisession files to a directory and how to make it 777 after I save? Any help would be greatly appreciated.
I have been actually working on this for three months with no luck. I want to create a live Puppy 5.2.8 DVD for loading switch configs from a tftp server. The problem is that I just can't get the tftp server up and running correctly. I have tried DNSMASQ, tftp-hpa, advanced tftp. I have tried both .pet and .deb packages but am not having any luck. Does anyone have a .pet that works and which would make it to save multisession files to a directory and how to make it 777 after I save? Any help would be greatly appreciated.
PXE (TFTP) will boot a Puppy over the LAN with NO Media
You might not have noticed, but @JamesBond did this for the community earlier this year.puppy_newb wrote:Hi Guys,
I have been actually working on this for three months with no luck. ..
It s a working model that you can set up in less than 5 minutes. If you also have an ISO available, you can be booting another PC on your LAN in 6-8 minutes, total time, installation start to finish.
Give it a try. Comment on that thread for help.
Hope this helps
-
- Posts: 33
- Joined: Wed 21 Sep 2011, 16:26
Re: PXE (TFTP) will boot a Puppy over the LAN with NO Media
Looks like that TFTP server does not support my purpose of being able to actually write files to my Puppy Linux live DVD.gcmartin wrote:You might not have noticed, but @JamesBond did this for the community earlier this year.puppy_newb wrote:Hi Guys,
I have been actually working on this for three months with no luck. ..
It s a working model that you can set up in less than 5 minutes. If you also have an ISO available, you can be booting another PC on your LAN in 6-8 minutes, total time, installation start to finish.
Give it a try. Comment on that thread for help.
Hope this helps
-
- Posts: 33
- Joined: Wed 21 Sep 2011, 16:26
Hi Aitch,Aitch wrote:MagicZaurus did get tftp working IIRC
http://murga-linux.com/puppy/viewtopic.php?t=37608
Aitch
I read through that post before, it looks like it is just talking about dnsmasq which i tried and doesn't work for me at all. I tried that other package he was talking about also but that didn't work for me either. I think he has a .pup which is an older version and does not work on puppy 5.2.8. Any other ideas?
Hi
Other ideas?
Well, I'm still trying to understand exactly what you are trying to do....
I know you have HP3500 and 6200 switches and that you trying to copy switch config files by tftp, because, you say, it can't use ftp....but I'm not sure if you have the tftp server running in 528 or not, or what configuration you have for dnsmasq
You say, in the other thread, "I have it working with RHEL5 using their tftpd service. I just want that software working in puppy"
....but I can't see any difference between RHEL5 and Puppy, as regards setting up tftp, as it's part of dnsmasq configuration, if I understand it correctly?
Perhaps a step-by-step of what you do have working/have tried/are trying to achieve, would help us all?
Have any of the links been useful/have you got HP configuration manual/dnsmasq man pages?
I find it hard to envisage what you can/can't do....so as to know what else to suggest
Aitch
Other ideas?
Well, I'm still trying to understand exactly what you are trying to do....
I know you have HP3500 and 6200 switches and that you trying to copy switch config files by tftp, because, you say, it can't use ftp....but I'm not sure if you have the tftp server running in 528 or not, or what configuration you have for dnsmasq
You say, in the other thread, "I have it working with RHEL5 using their tftpd service. I just want that software working in puppy"
....but I can't see any difference between RHEL5 and Puppy, as regards setting up tftp, as it's part of dnsmasq configuration, if I understand it correctly?
Perhaps a step-by-step of what you do have working/have tried/are trying to achieve, would help us all?
Have any of the links been useful/have you got HP configuration manual/dnsmasq man pages?
I find it hard to envisage what you can/can't do....so as to know what else to suggest
Aitch
-
- Posts: 33
- Joined: Wed 21 Sep 2011, 16:26
Hi Aitch,Aitch wrote:Hi
Other ideas?
Well, I'm still trying to understand exactly what you are trying to do....
I know you have HP3500 and 6200 switches and that you trying to copy switch config files by tftp, because, you say, it can't use ftp....but I'm not sure if you have the tftp server running in 528 or not, or what configuration you have for dnsmasq
You say, in the other thread, "I have it working with RHEL5 using their tftpd service. I just want that software working in puppy"
....but I can't see any difference between RHEL5 and Puppy, as regards setting up tftp, as it's part of dnsmasq configuration, if I understand it correctly?
Perhaps a step-by-step of what you do have working/have tried/are trying to achieve, would help us all?
Have any of the links been useful/have you got HP configuration manual/dnsmasq man pages?
I find it hard to envisage what you can/can't do....so as to know what else to suggest
Aitch
The problem is that dnsmasq will never work for me. It is a read only tftp server. This means it will only write to other machine and send files to them which use it to boot off of it to the network. What I want to do is a lot more simple. I want a TFTP server which I can write and save files too. I basically want to copy files from a switch to my Puppy live distro running a TFTP server using my custom scripts which i will remaster into the distro. This live DVD will essentially make any computer into my custom TFTP server which I can load switch configs too and push where I would like through out the network or other switches.
I have had a bunch of TFTP server programs up and running, but when I try to send the the file over to my puppy TFTP server, it times out or the TFTP server blocks the ip address.I hope this helps clear it up a little better.
Maybe /etc/resolv.conf is getting overwritten?
OK, maybe the debian/*buntu TFTP setup here helps?
http://www.linuxhomenetworking.com/wiki ... and_xinetd
also see 'Using special servers' here
http://www.thekelleys.org.uk/dnsmasq/docs/setup.html
and http://wiki.openwrt.org/doc/uci/dhcp
Have you checked firewall rules to see if port forwarding helps?
I'm on the edge of my knowledge sphere, so may be way off beam...
Any idea why Atftp is no good?
http://freecode.com/projects/atftp
http://packages.debian.org/lenny/atftp
HTH
Aitch
OK, maybe the debian/*buntu TFTP setup here helps?
http://www.linuxhomenetworking.com/wiki ... and_xinetd
also see 'Using special servers' here
http://www.thekelleys.org.uk/dnsmasq/docs/setup.html
and http://wiki.openwrt.org/doc/uci/dhcp
Have you checked firewall rules to see if port forwarding helps?
I'm on the edge of my knowledge sphere, so may be way off beam...
Any idea why Atftp is no good?
http://freecode.com/projects/atftp
http://packages.debian.org/lenny/atftp
HTH
Aitch
-
- Posts: 33
- Joined: Wed 21 Sep 2011, 16:26
I tried almost everything here and I get connection refused from atftp which seems like the most promising TFTP read/write server solution for Puppy. I think i might have to throw in the towel on this one.Aitch wrote:Maybe /etc/resolv.conf is getting overwritten?
OK, maybe the debian/*buntu TFTP setup here helps?
http://www.linuxhomenetworking.com/wiki ... and_xinetd
also see 'Using special servers' here
http://www.thekelleys.org.uk/dnsmasq/docs/setup.html
and http://wiki.openwrt.org/doc/uci/dhcp
Have you checked firewall rules to see if port forwarding helps?
I'm on the edge of my knowledge sphere, so may be way off beam...
Any idea why Atftp is no good?
http://freecode.com/projects/atftp
http://packages.debian.org/lenny/atftp
HTH
Aitch
-
- Posts: 33
- Joined: Wed 21 Sep 2011, 16:26
This is a good idea, I will start over with a fresh copy of Puppy 5.2.8, install the .deb ATFTP package and then once that is up try to do this. I was making some modifications to the /etc/rc.local file to have a manual ip address when the system boots up and I think I have have tried to delete the ip tables. Ill report back what happens.Aitch wrote:Using Atftp
Run /etc/init.d/iptables stop and try again.
If that fixes it, you need to allow tftp traffic in your firewall. If it doesn't, try fetching the file via a tftp client directly on the server (tftp localhost) and on a machine on the same subnet.
Have you loaded the tftp nat module?
Aitch
-
- Posts: 33
- Joined: Wed 21 Sep 2011, 16:26
Hi AitchAitch wrote:Using Atftp
Run /etc/init.d/iptables stop and try again.
If that fixes it, you need to allow tftp traffic in your firewall. If it doesn't, try fetching the file via a tftp client directly on the server (tftp localhost) and on a machine on the same subnet.
Have you loaded the tftp nat module?
Aitch
So what I type is
/sbin/iptables stop and i get
Input/output error
Any idea what could be going on? The small icon on the bottom right says firewall off though.
As I said, I'm on the edge of my knowledge sphere, I'd just be tinkering, like you... Have you tried ping? both to yourself and remote?
I/O errors....usually caused by unexpected termination of pppd, maybe?
http://en.wikipedia.org/wiki/Iptables
MagicZaurus...any ideas?
Aitch
I/O errors....usually caused by unexpected termination of pppd, maybe?
http://en.wikipedia.org/wiki/Iptables
MagicZaurus...any ideas?
Aitch
-
- Posts: 33
- Joined: Wed 21 Sep 2011, 16:26
Hi Aitch,Aitch wrote:As I said, I'm on the edge of my knowledge sphere, I'd just be tinkering, like you... Have you tried ping? both to yourself and remote?
I/O errors....usually caused by unexpected termination of pppd, maybe?
http://en.wikipedia.org/wiki/Iptables
MagicZaurus...any ideas?
Aitch
Thanks for all your help! After 4 months the solution was commenting "ALL:ALL" from the /etc/hosts.deny file also known as TCP wrappers. Once this was un-commented, I was able to transfer files from a network switch directly to my Puppy Live DVD running a TFTP server at boot-up. I hope this helps somebody in the future!