Help with ERPXE install on Raspberry Pi
Posted: 01 Nov 2013, 13:03
Hi I have tried several different tutorials but never got any of them to work.
Is there any tutorials of how to use rasbian + erpxe (or similar ) to set up a PXE server which can boot Windows 7 installer, Debian, Hiren's etc.
I tried a program called Serva on my windows machine and it worked perfectly and it used my router as DHCP server. But I want to use the Pi for this instead so that I can take it with me if I am fixing a computer away from home. So that I just could plug in the pi to any router and then pxe boot any computers in that network.
I have tried following the tutorial for ERPXE (http://erpxe.org/Debian_installation_instructions)
But I start getting errors directly.
I downloaded the erpxe.tar.gz and unpacked it to the root as described in the tutorial.
Next step says: run "apt-get install tftpd-hpa" which give me this:
[....] Starting HPA's tftpd: in.tftpdinvoke-rc.d: initscript tftpd-hpa, action "start" failed.
dpkg: error processing tftpd-hpa (--configure):
subprocess installed post-installation script returned error exit status 71
Errors were encountered while processing:
tftpd-hpa
E: Sub-process /usr/bin/dpkg returned an error code (1)
I think I found a solution for the first error.
edit /etc/default/tftpd-hpa
and add --ipv4 to the last line so it looks like this:
TFTP_OPTIONS="-m /tftpboot/erpxe.remap -vvvvv -s --ipv4"
then run "sudo apt-get install -f"
then tftboot seems to start.
Ok, so next error I get is from: this command "update-rc.d tftpd-hpa defaults"
which gives me this:
update-rc.d: using dependency based boot sequencing
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match tftpd-hpa Default-Stop values (1)
"apt-get install apache2" OK
"update-rc.d apache2 defaults" OK (I think)
"cp /tftpboot/doc/setup/erpxe-httpd.conf /etc/apache2/conf.d/" ERROR
cp: cannot stat `/tftpboot/doc/setup/erpxe-httpd.conf': No such file or directory
Is there any tutorials of how to use rasbian + erpxe (or similar ) to set up a PXE server which can boot Windows 7 installer, Debian, Hiren's etc.
I tried a program called Serva on my windows machine and it worked perfectly and it used my router as DHCP server. But I want to use the Pi for this instead so that I can take it with me if I am fixing a computer away from home. So that I just could plug in the pi to any router and then pxe boot any computers in that network.
I have tried following the tutorial for ERPXE (http://erpxe.org/Debian_installation_instructions)
But I start getting errors directly.
I downloaded the erpxe.tar.gz and unpacked it to the root as described in the tutorial.
Next step says: run "apt-get install tftpd-hpa" which give me this:
[....] Starting HPA's tftpd: in.tftpdinvoke-rc.d: initscript tftpd-hpa, action "start" failed.
dpkg: error processing tftpd-hpa (--configure):
subprocess installed post-installation script returned error exit status 71
Errors were encountered while processing:
tftpd-hpa
E: Sub-process /usr/bin/dpkg returned an error code (1)
I think I found a solution for the first error.
edit /etc/default/tftpd-hpa
and add --ipv4 to the last line so it looks like this:
TFTP_OPTIONS="-m /tftpboot/erpxe.remap -vvvvv -s --ipv4"
then run "sudo apt-get install -f"
then tftboot seems to start.
Ok, so next error I get is from: this command "update-rc.d tftpd-hpa defaults"
which gives me this:
update-rc.d: using dependency based boot sequencing
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match tftpd-hpa Default-Stop values (1)
"apt-get install apache2" OK
"update-rc.d apache2 defaults" OK (I think)
"cp /tftpboot/doc/setup/erpxe-httpd.conf /etc/apache2/conf.d/" ERROR
cp: cannot stat `/tftpboot/doc/setup/erpxe-httpd.conf': No such file or directory