Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Apr 2014, 21:22
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
5-steps - Netboot a Puppy over the LAN with NO Media (PXE)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 7 [100 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
jamesbond

Joined: 26 Feb 2007
Posts: 1879
Location: The Blue Marble

PostPosted: Mon 01 Aug 2011, 10:46    Post subject:  

I've been away for a while, so I'd just drop by for while just to address a few things.

1. There will be no dhcp conflict between netboot-server's DHCP server and your router's DHCP server. netboot-server uses code originally written by phLe http://www.murga-linux.com/puppy/viewtopic.php?t=62308 - the netboot DHCP only responds to PXE requests, not standard DHCP requests

2. The NIC is only used during PXE loading, and then released. When puppy is fully loaded, Puppy's drivers will take over the NIC. Once you see puppy's desktop, you need to configure your network as usual - the settings you get during PXE booting is temporary.

3. PXE support is done in BIOS - while web browsing in puppy is supported by Puppy's drivers. You need to check and ensure that your NIC is supported by Quickset puppy. (Puppy 4.31 is rather old, many newer hardware / NIC won't work with it).

cheers!

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13
Back to top
View user's profile Send private message 
cduran1983

Joined: 02 Aug 2011
Posts: 1

PostPosted: Tue 02 Aug 2011, 20:31    Post subject:  hey this script worked great for me THANKS!  

Everything running fine... Very Happy
I have all working DHCP server, TFTP server and the PXE server.

Just need it an ISO to "pxeboot" conversion!!

thanks!! Works great

I'm running Fedora 15 - 2.6.38.8-32.fc15.x86_64

THANKS...

Quote:

#!/bin/sh
#jamesbond 2011
# convert a puppy iso into netboot-compatible vmlinuz and humongous initrd.gz
# Edited by Master_wrong so can save to other media not just temp

Xdialog --title "mknetboot" --msgbox "This script will create a set of files suitable for puppy netbooting.
The input is a puppy ISO file. The output will be located in /tmp/netboot - one vmlinuz and one huge initrd.gz.
If /root/tftpboot/pxelinux.cfg exist, the output files will be symlinked to this directory as well,
so you can use netboot-server to server them straight away." 0 0

ISO=$(Xdialog --title "Choose puppy ISO" -fselect "" 0 0 2>&1 | tail -n 1)
tmp="mnt/sdc2"
tmp2="mnt/sdc2"
if [ -n "$ISO" ]; then
rm -rf /$tmp2/netboot /$tmp/netboot_iso
mkdir -p /$tmp2/netboot/x /$tmp/netboot_iso
if mount -o loop "$ISO" /$tmp/netboot_iso; then
if [ -f /$tmp/netboot_iso/vmlinuz -a -f /$tmp/netboot_iso/initrd.gz ]; then
Xdialog --title "mknetboot" --no-buttons --infobox "This will take a while. Please wait ..." 0 0 60000 &
PID=$!
cp /$tmp/netboot_iso/vmlinuz /$tmp2/netboot
cd /$tmp2/netboot/x
zcat /$tmp/netboot_iso/initrd.gz | cpio -i
cp /$tmp/netboot_iso/*.sfs .
find . | cpio -o -H newc | gzip -9 > ../initrd.gz
cd /$tmp2/netboot
rm -rf x
if [ -d /root/tftpboot/pxelinux.cfg ]; then
rm /root/tftpboot/pxelinux.cfg/vmlinuz /root/tftpboot/pxelinux.cfg/initrd.gz
ln -s /$tmp2/netboot/vmlinuz /root/tftpboot/pxelinux.cfg
ln -s /$tmp2/netboot/initrd.gz /root/tftpboot/pxelinux.cfg
fi
kill $PID
Xdialog --title "mknetboot" --infobox "Done. Output is in /$tmp/netboot." 0 0 10000
else
Xdialog --title "mknetboot" --msgbox "Invalid ISO - cannot find vmlinuz and initrd.gz" 0 0
rm -rf /$tmp2/netboot
fi
umount /$tmp/netboot_iso
rm -rf /$tmp/netboot_iso
else
Xdialog --title "mknetboot" --msgbox "Failed to mount $ISO" 0 0
fi
fi
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 3645
Location: Earth

PostPosted: Sat 13 Aug 2011, 14:10    Post subject: Re: hey this script worked great for me THANKS!  

cduran1983 wrote:
Everything running fine...
Great!

Is that script in the code window an "update" you are offering? If so, would you add a comment under "Master_Wrong" in the script you post?

Thanks in advance.

P.S. @cduran1983, Check your PMs

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 3645
Location: Earth

PostPosted: Fri 26 Aug 2011, 15:12    Post subject: 32bit PUPs are Missing DNSMASQ PET for Netbooting (PXE)  

Edited:
This problem has been fixed. You can use the document to access the needed PETs; same as before.

Problem
I have just been informed that the 32bit version of DNSMASQ has disappeared and cannot be access as described in the document.

FATDOG and LightHOUSE64 are able to obtain the correct version from their PPM, but PUP528 (and probably other 32bit PUPs) does NOT offer the correct version via their PPMs.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile

Last edited by gcmartin on Wed 31 Aug 2011, 12:57; edited 2 times in total
Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Fri 26 Aug 2011, 19:40    Post subject:  

any use?

http://pkgs.repoforge.org/dnsmasq/

http://linuxappfinder.com/package/dnsmasq

http://www.thekelleys.org.uk/dnsmasq/doc.html

http://www.thekelleys.org.uk/dnsmasq/

http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

Aitch Smile
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 3645
Location: Earth

PostPosted: Wed 31 Aug 2011, 12:59    Post subject:  

Aitch wrote:
any use? ... .Aitch Smile
Thanks @Aitch.

The document, is again, accurate for use by any who venture to have PCs remote boot. Current ALL links in the document are accurate.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
travis

Joined: 02 Sep 2011
Posts: 1

PostPosted: Tue 06 Sep 2011, 09:32    Post subject: Nicely done. Pre-existing pxe/boot server.  

Nice guide, and even nicer scripts. They were easy to follow and reproduce what I needed to do in setting up puppy linux 5.28 in my pxe boot environment that is running on Fedora 14.

If anyone is interested I've put the vmlinuz and initrd.img files in an archive which is available http://dl.dropbox.com/u/40645459/puppy_pxe.tar.gz.

To use them simply download the file to somewhere in the /boot directory (ie /boot/puppy).
Code:
tar -xvf puppy_pxe.tar.gz

Then edit the default file adding these lines
Code:
LABEL Puppy 5.28
   MENU LABEL ^5) LivePuppy 5.28
   KERNEL /boot/puppy/vmlinuz
   APPEND initrd=boot/puppy/initrd.gz PDEV1=rootfs

Making sure the paths are correct and the MENU LABEL ^# match your environment and you should be good to go.
Back to top
View user's profile Send private message 
puppy_newb

Joined: 21 Sep 2011
Posts: 33

PostPosted: Wed 09 Nov 2011, 12:08    Post subject:  

jamesbond wrote:
Master,

That guide will work for other puppies too. The netboot-server.pet is just a bunch of shell-scripts, it will work on any puppy. You just need to get a 32-bit binary dnsmasq for other puppies. jrb has created one on other forum of this thread, or you can use the one attached here (gunzip and drop it to /usr/bin). Too lazy to make it into a pet Twisted Evil


Hi JamesBond,

I'm just trying to get the tftp server working from dnsmasq. Is there anything special I have to do? I'm also using lucid puppy 5.2.8 will that make a difference?
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 3645
Location: Earth

PostPosted: Wed 09 Nov 2011, 14:12    Post subject:  

puppy_newb wrote:
Hi JamesBond,

I'm just trying to get the tftp server working from dnsmasq. Is there anything special I have to do? I'm also using lucid puppy 5.2.8 will that make a difference?
Hi @Puppy_Newb.

This is NOT an answer from JamesBond, but, I will try to help until he can reply. Did you happen to notice that this thread provides a complete start to finish guide?

Its been tested on Puppy 5.28. It may work for you. And, it should gives some hints. (I would urge you to rename/remove your own DNSMASQ conf file should you choose to try the steps in the manual. That manual has been tested starting with Pristine systems which do not have any TFTP or DNSMASQ previously installed....But this manual does work. Further, USE THE PETs IN THE GUIDE because they are known to work in all tests until now.. The guide simply describes the working process that JamesBond created for us.)

Should you choose to use the manual, please provide any feedback you feel this thread's community would benefit from.

Thanks in advance.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
puppy_newb

Joined: 21 Sep 2011
Posts: 33

PostPosted: Wed 09 Nov 2011, 15:07    Post subject:  

gcmartin wrote:
puppy_newb wrote:
Hi JamesBond,

I'm just trying to get the tftp server working from dnsmasq. Is there anything special I have to do? I'm also using lucid puppy 5.2.8 will that make a difference?
Hi @Puppy_Newb.

This is NOT an answer from JamesBond, but, I will try to help until he can reply. Did you happen to notice that this thread provides a complete start to finish guide?

Its been tested on Puppy 5.28. It may work for you. And, it should gives some hints. (I would urge you to rename/remove your own DNSMASQ conf file should you choose to try the steps in the manual. That manual has been tested starting with Pristine systems which do not have any TFTP or DNSMASQ previously installed....But this manual does work. Further, USE THE PETs IN THE GUIDE because they are known to work in all tests until now.. The guide simply describes the working process that JamesBond created for us.)

Should you choose to use the manual, please provide any feedback you feel this thread's community would benefit from.

Thanks in advance.



Hi

Thanks for your help. I have been trying to get TFTP working from a remastered Puppy live CD for over three months now with no luck. I'm using ATFTPD right now and the tftp server is running and everything and it looks configured properly. The problem is that when i connect to my switch to download configs, it says Connection refused. I tried everything, turned off firewalls accepted the ip and port in iptables with no luck whatsoever. I have tried dnsmasq before as a pet and that didn't work so I'm still worried about trying this.
Back to top
View user's profile Send private message 
puppy_newb

Joined: 21 Sep 2011
Posts: 33

PostPosted: Wed 09 Nov 2011, 15:18    Post subject:  

gcmartin wrote:
puppy_newb wrote:
Hi JamesBond,

I'm just trying to get the tftp server working from dnsmasq. Is there anything special I have to do? I'm also using lucid puppy 5.2.8 will that make a difference?
Hi @Puppy_Newb.

This is NOT an answer from JamesBond, but, I will try to help until he can reply. Did you happen to notice that this thread provides a complete start to finish guide?

Its been tested on Puppy 5.28. It may work for you. And, it should gives some hints. (I would urge you to rename/remove your own DNSMASQ conf file should you choose to try the steps in the manual. That manual has been tested starting with Pristine systems which do not have any TFTP or DNSMASQ previously installed....But this manual does work. Further, USE THE PETs IN THE GUIDE because they are known to work in all tests until now.. The guide simply describes the working process that JamesBond created for us.)

Should you choose to use the manual, please provide any feedback you feel this thread's community would benefit from.

Thanks in advance.


Hi,

Another thing I forgot to ask. All i need is the TFTP server up and running and not refusing connections. Do i still need to follow the guide all the way?
Back to top
View user's profile Send private message 
puppy_newb

Joined: 21 Sep 2011
Posts: 33

PostPosted: Wed 09 Nov 2011, 16:47    Post subject:  

gcmartin wrote:
puppy_newb wrote:
Hi JamesBond,

I'm just trying to get the tftp server working from dnsmasq. Is there anything special I have to do? I'm also using lucid puppy 5.2.8 will that make a difference?
Hi @Puppy_Newb.

This is NOT an answer from JamesBond, but, I will try to help until he can reply. Did you happen to notice that this thread provides a complete start to finish guide?

Its been tested on Puppy 5.28. It may work for you. And, it should gives some hints. (I would urge you to rename/remove your own DNSMASQ conf file should you choose to try the steps in the manual. That manual has been tested starting with Pristine systems which do not have any TFTP or DNSMASQ previously installed....But this manual does work. Further, USE THE PETs IN THE GUIDE because they are known to work in all tests until now.. The guide simply describes the working process that JamesBond created for us.)

Should you choose to use the manual, please provide any feedback you feel this thread's community would benefit from.

Thanks in advance.


Hi,

Looks like I got another failure when trying to use dnsmasq tftp server. It says the following when i try to send a file to my server:

dnsmasq-tftp unsupported request from 10.10.1.1

I have no idea how to correct this.
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 3645
Location: Earth

PostPosted: Wed 09 Nov 2011, 20:19    Post subject: Trying to help a member with remote boot.  

If you tell me which version you remastered, i will set it up in a Live media boot, and follow the guide to see if I get a failure. So far, there have not been any reports of the guide failing on the PUPs that have been tried since this became available.

I cannot help with anything beyond this guide as its the ONLY thing I am familiar enough to give comments on. I have been a user of this without failure on 6 different PUPs since preparation of the guide. It just works!

I only offered to have you, too, try the guide as other have. And just maybe, if it works for you, it will help you discover your own problem.

Its easy to test and the guide will give you a working system to compare against. Then, this may just be the thing that gets you to find that "needle in the haystack" that you're desiring.

The last 32bit distro that I tried was one of Pemasu's ISO. I just
  1. downloaded the Puppy ISO (or if you have one handy in your possession)
  2. created a multi-session Live CD (need not be a CDRW...RW NOT needed.)
  3. Booted the Live CD
  4. Followed the guide.
That's it. 10 minutes total and we are booting PCs over the LAN. (you'll spent more time downloading and creating a CD than you will setting up and booting other PCs.) Is the 10 minutes a problem for you?

If you have a problem with the guide let us know, please. Tell us which step in the guide you're getting hung up on and we'll help.

Hope this helps

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
MagicZaurus

Joined: 05 Jan 2009
Posts: 88

PostPosted: Wed 09 Nov 2011, 22:58    Post subject: TFTP Server Cannot Receive File  

Hi puppy_newb!

What are you trying to do? It sounds like you want to send/upload a file from your client to the TFTP server.

Quote:
It says the following when i try to send a file to my server:


The TFTP in dnsmasq is only for providing data from the server to the client, not the other way around. This is from the man pages of dnsmasq.

Quote:
--enable-tftp[=<interface>]
Enable the TFTP server function. This is deliberately limited to that needed to net-boot a client. Only reading is allowed;


So if you want to do some uploading of files to your server, it will be better to use a normal FTP server on the server. This will also be faster, as the TFTP protocol is slower than FTP protocol.

MZ
Back to top
View user's profile Send private message 
puppy_newb

Joined: 21 Sep 2011
Posts: 33

PostPosted: Thu 10 Nov 2011, 18:10    Post subject: Re: TFTP Server Cannot Receive File  

MagicZaurus wrote:
Hi puppy_newb!

What are you trying to do? It sounds like you want to send/upload a file from your client to the TFTP server.

Quote:
It says the following when i try to send a file to my server:


The TFTP in dnsmasq is only for providing data from the server to the client, not the other way around. This is from the man pages of dnsmasq.

Quote:
--enable-tftp[=<interface>]
Enable the TFTP server function. This is deliberately limited to that needed to net-boot a client. Only reading is allowed;


So if you want to do some uploading of files to your server, it will be better to use a normal FTP server on the server. This will also be faster, as the TFTP protocol is slower than FTP protocol.

MZ


Hi Magic,

This is my problem that I realized the hard way. I want to upload text files from a client to the TFTP server which is running on my Lucid Puppy 5.2.8. Do you have any idea of any TFTP server which works in this way? I have not been able to get anything to work for this purpose for the past three months.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 7 [100 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0989s ][ Queries: 13 (0.0065s) ][ GZIP on ]