| Author |
Message |
MagicZaurus
Joined: 05 Jan 2009 Posts: 88
|
Posted: Sat 15 Jan 2011, 05:47 Post subject:
PXE package |
|
Thanks a lot jamesbond for packaging this all so nicely together. I didn't have time to test it, but with all your efforts netbooting Puppy has become so much easier.
|
|
Back to top
|
|
 |
jamesbond
Joined: 26 Feb 2007 Posts: 1536 Location: The Blue Marble
|
Posted: Thu 20 Jan 2011, 07:13 Post subject:
|
|
Thanks for your kind words, MagicZaurus.
gcmartin found a bug in mknetboot.sh (this is due to Xdialog/GTK bug). Here's a fix - it's not perfect, but at least it works.
cheers!
| Description |
|

Download |
| Filename |
netboot-server-3.pet |
| Filesize |
89.53 KB |
| Downloaded |
1750 Time(s) |
_________________ Fatdog64, Slacko and Puppeee user. Puppy user since 2.13
|
|
Back to top
|
|
 |
mhanifpriatama
Joined: 22 Jan 2011 Posts: 59
|
Posted: Mon 24 Jan 2011, 05:58 Post subject:
|
|
Maybe helps some one.
I use another way. I used for my small internet cafe.
My server uses lupu511, my client uses lupu503.
On server :
1. Install dnsmasq
2. create /etc/dnsmasq.conf
3. write code inside dnsmasq.conf :
| Code: |
# Configuration file for dnsmasq
dhcp-range=169.254.33.219,169.254.33.223,12h
# give IP address to match machine address :
dhcp-host=00:30:67:31:69:02,169.254.33.220
dhcp-host=00:30:67:1E:F4:7E,169.254.33.221
dhcp-host=00:30:67:6E:B0:1B,169.254.33.222
dhcp-host=00:30:67:1E:FA:8C,169.254.33.223
# Set the boot filename for netboot/PXE
dhcp-boot=pxelinux.0
# Enable dnsmasq's built-in TFTP server
enable-tftp
# Set the root directory for files available via FTP.
# I use /initrd/mnt/dev_ro2 because use fresh frugal install on hd
tftp-root=/initrd/mnt/dev_ro2/tftp
# Debugging
log-queries
log-dhcp
# somewhere other that /etc/resolv.conf
resolv-file=/etc/ppp/resolv.conf
|
4. prepare pxelinux and humongous initrd.gz (with lupu-503 inside)
5. Place at a script in Startup this command : /usr/local/sbin/dnsmasq -d
(gbilling-server also)
6. Set client with lan booting.
Done ...
I never use pupsave. Just remastering with dougal's script.
But i forget something important, how to make client connect to server and auto IP assign! Just run network wizard, place manual IP and gateway, then remastering. Can any one explain how-to this thing? I don't know how rc.network work.
I want upgrade client to lupu520.
SOrry on my english.
|
|
Back to top
|
|
 |
mhanifpriatama
Joined: 22 Jan 2011 Posts: 59
|
Posted: Thu 03 Feb 2011, 05:41 Post subject:
|
|
I did this on my lupu 520 thin-client :
put my script on rc.local
| Code: |
a=`dhcpcd -T | grep new_ip_address` #pick ip address from dhcp server
dhcpcd -s ${a:15:15} #from line, just pick the ip number : 169.254.33.223 then run dhcpcd with -s option
route add default gw 169.254.33.219
echo nameserver 169.254.33.219 >> /etc/resolv.conf
|
after that, thin-client can connect to internet at first bootup.
My problem above is solved.
|
|
Back to top
|
|
 |
Master_wrong
Joined: 19 Mar 2008 Posts: 455
|
Posted: Fri 04 Feb 2011, 06:02 Post subject:
|
|
Thank you for the script.
so you put the script on rc.local, the remaster, the the remastered iso is used to boot the client via pxe ?
correct ?
_________________ Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
|
|
Back to top
|
|
 |
Aitch

Joined: 04 Apr 2007 Posts: 6825 Location: Chatham, Kent, UK
|
Posted: Fri 04 Feb 2011, 10:14 Post subject:
|
|
Hi all
For anyone still struggling with PXE booting, I've just come home from a Linux/Cloud Show at Barbican, UK, and saw this demo'd, at the show
http://ipxe.org/
I don't know if it's any use/can be incorporated into puppy, but it seemed impressive with a wide range of network cards supported, and range of implementation formats
| Quote: | with additional features such as:
*
boot from a web server via HTTP
*
boot from an iSCSI SAN
*
boot from a Fibre Channel SAN via FCoE
*
boot from an AoE SAN
*
boot from a wireless network
*
boot from a wide-area network
*
boot from an Infiniband network |
Aitch
|
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 2627 Location: Earth
|
Posted: Fri 04 Feb 2011, 17:27 Post subject:
|
|
Thanks @Aitch
This is a client-side application. Thus, it ONLY applies to the client one is trying to have starting over the LAN.
This is something that one can use if his PC's PXE motherboard support is problematic (doesn't work) or if the PC someone is trying to use doesn't have a PXE LAN function on the motherboard so this might allow him to find the PXE server on the LAN (although I haven't tried it yet) and boot their machine using the ISA/PCI LAN card in their PC.
The PXE server should could care less. It will serve whomever makes the request for service. iPXE running on a LAN machine will allow the requesting PC to make that request if his machine cannot do it under its own power.
Hope this helps
_________________ Get ACTIVE; Create Circles; Do those good things which benefit the people's needs!
We are all related ... Its time to show that we know this!
Google's Puppy Search Engine
|
|
Back to top
|
|
 |
mhanifpriatama
Joined: 22 Jan 2011 Posts: 59
|
Posted: Thu 10 Feb 2011, 04:57 Post subject:
|
|
| Master_wrong wrote: | Thank you for the script.
so you put the script on rc.local, the remaster, the the remastered iso is used to boot the client via pxe ?
correct ? |
Yes, correct. Sorry so long to answer. But one thing I had problem and I solved it : you must put delay time!!!!
so ....
the script is like ...
| Code: |
a=`dhcpcd -T | grep new_ip_address` #pick ip address from dhcp server
dhcpcd -s ${a:15:15} #from line, just pick the ip number : 169.254.33.223 then run dhcpcd with -s option
sleep 10
route add default gw 169.254.33.219
echo nameserver 169.254.33.219 >> /etc/resolv.conf
|
|
|
Back to top
|
|
 |
mhanifpriatama
Joined: 22 Jan 2011 Posts: 59
|
Posted: Thu 10 Feb 2011, 05:20 Post subject:
|
|
Just report, may be useful.
If I want to customize thin-client lupu-520.sfs, I remaster it.
But, this thing eat time a lot.
So, I just customize initrd.gz :
1. extract initrd.gz
2. put a script, exp : aa.sh
3. little hack the init script : copy aa.sh to initrd/mnt/data
How to run that script?
Do remaster, or edit the lupu-520.sfs.
Then add these line to rc.local :
| Code: | chmod a+x /initrd/mnt/data/aa.sh
/initrd/mnt/data/aa.sh
|
This script will run before xwin.
If we want to put a script at Startup, just add these code to aa.sh :
| Code: |
echo "#!/bin/bash
firefox
" > /root/Startup/ss.sh
|
So, I can make user run openoffice.sfs with this method :
| Code: |
mkdir /root/dir_oo
curlftpfs ftp://169.254.33.219 /root/dir_oo
cd /root/dir_oo
filemnt ./go-oo-3.2-sfs4.sfs
|
|
|
Back to top
|
|
 |
Master_wrong
Joined: 19 Mar 2008 Posts: 455
|
Posted: Thu 10 Feb 2011, 06:29 Post subject:
|
|
hi mhanifpriatama,
thank you...
oh another sfs loading hack
that can be useful...
| Quote: |
Code:
mkdir /root/dir_oo
curlftpfs ftp://169.254.33.219 /root/dir_oo
cd /root/dir_oo
filemnt ./go-oo-3.2-sfs4.sfs
|
so the sfs located... at /root/dir_oo /
and the filename is go-oo-3.2-sfs4.sfs
thank you very much for sharing
_________________ Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
|
|
Back to top
|
|
 |
mhanifpriatama
Joined: 22 Jan 2011 Posts: 59
|
Posted: Thu 17 Feb 2011, 05:31 Post subject:
|
|
anyone knows, how to make nfs client run at initrd.gz, so can look at pup.sfs on virtual drive?
|
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 2627 Location: Earth
|
Posted: Thu 17 Feb 2011, 14:27 Post subject:
Missing PXE fucntions? |
|
Hi @Mhanifpriatama | mhanifpriatama wrote: | | anyone knows, how to make nfs client run at initrd.gz, so can look at pup.sfs on virtual drive? | I'm not sure if I understand your question> Are you using the PXE approach mentioned here and finding that it is inadequate for your needs?
Is it missing something critical for PXE?
Let's see if this might help.- LightHouse PUP recently completed a major change in Puppy boots such that a booting LIghtHouse PC user can select, at boot time, which SFSs he wants included when he gets to desktop of his LiveCD/PXE. This is a major step forward as I believe we will come to see in Puppyland.
- Another idea that may help is you may want to create your "PUP.SFS" and make an ISO out of it. If this is done, you could, then, use the DNSMASQ+NETBOOT PETs to setup your PXE environment to let your LAN PCs boot
.would either of these provide an approach that would meet your needs, easily?
Thanks in advance for helping me understand.
_________________ Get ACTIVE; Create Circles; Do those good things which benefit the people's needs!
We are all related ... Its time to show that we know this!
Google's Puppy Search Engine
Last edited by gcmartin on Sat 19 Feb 2011, 13:53; edited 1 time in total
|
|
Back to top
|
|
 |
vezuve

Joined: 24 Jan 2008 Posts: 1288
|
Posted: Fri 18 Feb 2011, 18:43 Post subject:
|
|
Hello,
Online translation-traduction en ligne
I would like to know if there is the possibility of having the pupsave on the server, so that the customer (slave) puppy could have access by network.
Originale
Je voudrais savoir si il y a la possibilité d'avoir le pupsave sur le serveur, afin que le puppy client (esclave) puisse avoir accès par le réseau.
@+
_________________ Recherche
sur PUPPY anglai + souven
PUPPY wikka tou sur tou anglai
|
|
Back to top
|
|
 |
mhanifpriatama
Joined: 22 Jan 2011 Posts: 59
|
Posted: Sat 19 Feb 2011, 04:28 Post subject:
|
|
thanks gc.martin,
I want my server run nfs server. I think that kernel module.
So, my server can offer drive-sharing (like virtual hard drive).
I want my client run nfs-client. I think that kernel module too.
So, my client can see the virtual drive.
If nfs-client can run before loading my lupu_520.sfs, I can place it at virtual drive, then the init script can mount it.
I think this will solve the old computer client with very low ram.
Sorry. My native is not english.
|
|
Back to top
|
|
 |
mhanifpriatama
Joined: 22 Jan 2011 Posts: 59
|
Posted: Sat 19 Feb 2011, 06:22 Post subject:
|
|
@vezuve, I think we have same Idea but differ purpose.
upload of pupsave file is init script job. I think, I must do some experiment. I'll report it if I success.
Of course, if any one have known a lot of init's work, and also nfs work, may be this is an easy things.
And ... I am not a bash programmer.
|
|
Back to top
|
|
 |
|