Difference between revisions of "Template:Debain installation instructions"

From ERPXE Wiki
Line 16: Line 16:
 
  ln -s /tftpboot/er/shares/http /var/www/er
 
  ln -s /tftpboot/er/shares/http /var/www/er
 
| nfs=
 
| nfs=
  apt-get install nfs-server
+
  apt-get install nfs-kernel-server
  chkconfig nfs on
+
  chkconfig nfs-kernel-server 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
 
| samba=
 
| samba=
 
  apt-get install samba
 
  apt-get install samba
  chkconfig smb on
+
  chkconfig samba on
 
}}
 
}}

Revision as of 10:59, 23 August 2013

Download ERPXE

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

Extract ERPXE to root "/" directory

tar -xvzf 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

This step is very IMPORTANT! if the erpxe.remap configuration is missing most plugins will not work.

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-kernel-server

chkconfig nfs-kernel-server 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 samba on 
  • The next step will overwrite your original /etc/samba/smb.conf !!!
cat /tftpboot/bin/setup/erpxe-smb.conf > /etc/samba/smb.conf

Create a Unix user called "erpxe":

useradd --no-create-home -s /dev/null erpxe

Set SAMBA password for user erpxe to "erpxe":

smbpasswd -a erpxe

Set password for user "root" to your password:

smbpasswd -a root

SELinux Configuration

  • Run the following command to set the correct security context after deploying ERPXE base and plugins.
restorecon -r /tftpboot

DHCP Configuration

Custom Settings

Remember to set a password!