Difference between revisions of "Debian installation instructions"

From ERPXE Wiki
(Replaced content with "In this manual we will use Debian 6.0 (also works on Ubuntu) as an example: {{Debain installation instructions}}")
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
In this manual we will use Debian 6.0 as an example:
+
In this manual we will use Debian 6.0 (also works on Ubuntu) as an example:
  
== Download ERPXE ==
+
{{Debain installation instructions}}
 
 
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
 
if asked set tftpd-hpa directory to /tftpboot/
 
 
/sbin/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 /tftpboot"
 
 
 
== Add Shares ==
 
=== Add HTTP support ===
 
 
 
apt-get install apache2
 
/sbin/chkconfig apache2 on
 
ln -s /tftpboot/er/shares/http /var/www/er
 
 
 
=== Add NFS support ===
 
 
 
apt-get install nfs-server
 
/sbin/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
 
/sbin/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
 

Latest revision as of 06:15, 30 May 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 -xvzf erpxe.current.tar.gz 

Install a TFTP Service

apt-get install tftpd-hpa

  • Set tftpd-hpa directory to /tftpboot/ if prompted
update-rc.d tftpd-hpa defaults

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/erpxe.remap -vvvvv -s"

Add Shares

Add HTTP support

apt-get install apache2

update-rc.d apache2 defaults
cp /tftpboot/bin/setup/erpxe-httpd.conf /etc/apache2/conf.d/

Since Ubuntu 14.04 files that were previously in /etc/apache2/conf.d should be moved to /etc/apache2/conf-available

cp /tftpboot/bin/setup/erpxe-httpd.conf /etc/apache2/conf-available/

Add NFS support

apt-get install nfs-kernel-server

update-rc.d nfs-kernel-server defaults
  • The next step will overwrite your original /etc/exports !!!
cat /tftpboot/bin/setup/erpxe-exports > /etc/exports

Add SAMBA support

apt-get install samba

update-rc.d samba defaults
useradd --no-create-home -s /dev/null erpxe 
  • 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!