Difference between revisions of "Debian installation instructions"

From ERPXE Wiki
Line 13: Line 13:
 
  apt-get install tftpd-hpa chkconfig
 
  apt-get install tftpd-hpa chkconfig
 
* Set tftpd-hpa directory to /tftpboot/ if prompted
 
* Set tftpd-hpa directory to /tftpboot/ if prompted
  /sbin/chkconfig tftpd-hpa on
+
  chkconfig tftpd-hpa on
  
 
== Config TFTP service ==
 
== Config TFTP service ==
Line 27: Line 27:
  
 
  apt-get install apache2
 
  apt-get install apache2
  /sbin/chkconfig apache2 on
+
  chkconfig apache2 on
 
  ln -s /tftpboot/er/shares/http /var/www/er
 
  ln -s /tftpboot/er/shares/http /var/www/er
  
Line 33: Line 33:
  
 
  apt-get install nfs-server
 
  apt-get install nfs-server
  /sbin/chkconfig nfs on
+
  chkconfig nfs on
 
* The next step will overwrite your original /etc/exports !!!
 
* The next step will overwrite your original /etc/exports !!!
 
  cat /tftpboot/doc/setup/exports > /etc/exports
 
  cat /tftpboot/doc/setup/exports > /etc/exports
Line 40: Line 40:
  
 
  apt-get install samba
 
  apt-get install samba
  /sbin/chkconfig smb on
+
  chkconfig smb on
  
 
* The next step will overwrite your original /etc/samba/smb.conf !!!
 
* The next step will overwrite your original /etc/samba/smb.conf !!!

Revision as of 16:03, 13 April 2012

In this manual we will use Debian 6.0 (also works on Ubuntu) as an example:

Download ERPXE

Download erpxe.current.tar.gz at http://www.erpxe.com/download/.

Extract ERPXE to root "/" directory

tar -xvfz erpxe.current.tar.gz 

Install a TFTP Service

apt-get install tftpd-hpa chkconfig
  • Set tftpd-hpa directory to /tftpboot/ if prompted
chkconfig tftpd-hpa on

Config TFTP service

Edit "/etc/default/tftpd-hpa"

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot/"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-m /tftpboot/er.remap -vvvvv -s"

Add Shares

Add HTTP support

apt-get install apache2
chkconfig apache2 on
ln -s /tftpboot/er/shares/http /var/www/er

Add NFS support

apt-get install nfs-server
chkconfig nfs on
  • The next step will overwrite your original /etc/exports !!!
cat /tftpboot/doc/setup/exports > /etc/exports

Add SAMBA support

apt-get install samba
chkconfig smb on
  • The next step will overwrite your original /etc/samba/smb.conf !!!
cat /tftpboot/doc/setup/smb.conf > /etc/samba/smb.conf

Set password for user erpxe to "erpxe":

smbpasswd -a erpxe

Set password for user "root" to your password:

smbpasswd -a root