Difference between revisions of "CentOS installation instructions"

From ERPXE Wiki
(Created page with "{{SetupLinux}}")
 
Line 1: Line 1:
{{SetupLinux}}
+
In this manual we will use CentOS 6.0 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 ==
 +
 
 +
yum install -y xinetd tftp-server
 +
chkconfig xinetd on
 +
chkconfig tftpd on
 +
 
 +
== Config TFTP service ==
 +
 
 +
Edit "/etc/xinetd.d/tftp"
 +
 
 +
service tftp
 +
{
 +
disable = no
 +
socket_type = dgram
 +
protocol = udp
 +
wait = yes
 +
user = root
 +
server = /usr/sbin/in.tftpd
 +
server_args = -m /tftpboot/er.remap -vvvvv -s /tftpboot
 +
per_source = 11
 +
cps = 100 2
 +
flags = IPv4
 +
}
 +
 
 +
== Add Shares ==
 +
=== Add HTTP support ===
 +
 
 +
yum install -y httpd
 +
chkconfig httpd on
 +
ln -s /tftpboot/er/shares/http /var/www/html/er
 +
 
 +
=== Add NFS support ===
 +
 
 +
yum 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 ===
 +
 
 +
yum 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

Revision as of 15:36, 13 April 2012

In this manual we will use CentOS 6.0 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

yum install -y xinetd tftp-server
chkconfig xinetd on
chkconfig tftpd on

Config TFTP service

Edit "/etc/xinetd.d/tftp"

service tftp
{
	disable			= no
	socket_type		= dgram
	protocol		= udp
	wait			= yes
	user			= root
	server			= /usr/sbin/in.tftpd
	server_args		= -m /tftpboot/er.remap -vvvvv -s /tftpboot
	per_source		= 11
	cps			= 100 2
	flags			= IPv4
}

Add Shares

Add HTTP support

yum install -y httpd
chkconfig httpd on
ln -s /tftpboot/er/shares/http /var/www/html/er

Add NFS support

yum 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

yum 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