CONTACT @ Skype : rajdimdung   |   call : +977 9841813550

JSKS Server Setup on CentOS/Redhat

Post by :    Date : 2014-11-30 02:36:13

  • Share on Facebook

Step-by-step Kickstart Server Configuration on CentOS/Redhat

Configure FTP/HTTP/NFs server

Step # 1 - Install vsftpd/httpd/nfs packages

VSFTPD Server

// If you have yum server 
[root@jsks01 ~]#yum install vsftpd* 

// Using CD/DVD 
[root@jsks01 ~]# rpm -ivh vstpd* 

// --url=ftp://dlab001.hrdc.dlab.com/pub/kickstart/dist/rhel-x86_64-server-6.3"

//  You can configure according to yours needs 
[root@jsks01 ~]#  vi /etc/vsftpd/vsftpd.conf 

// Verify the status
[root@jsks01 ~]# service vsftpd start|restart 

// Check if the service  
[root@jsks01 ~]# chkconfig --list vsftpd 

// To make available onboot
[root@jsks01 ~]# chkconfig vsftpd on  

HTTPD Server- This will need yum server to resolve the dependencies

[root@jsks01 ~]# yum install httpd 

// --url=http://dlab001.hrdc.dlab.com/pub/kickstart/dist/rhel-x86_64-server-6.3"

[root@jsks01 ~]# vi /etc/httpd/conf/httpd.conf 
[root@jsks01 ~]# service httpd restart|start 
[root@jsks01 ~]# /etc/init.d/httpd restart|start 
[root@jsks01 ~]# chkconfig --list httpd 
[root@jsks01 ~]# chkconfig httpd on 

NFS Server

[root@jsks01 ~]# yum install nfs-utils nfs-utils-lib 
[root@jsks01 ~]# yum install portmap 

// not require with NFSv4

// --url=nfs://dlab001.hrdc.dlab.com/pub/kickstart/dist/rhel-x86_64-server-6.3"

[root@jsks01 ~]# vi /etc/exports 
[root@jsks01 ~]# service portmat start|restart 
[root@jsks01 ~]# service nfs start|restart  
[root@jsks01 ~]# chkconfig --levle 345 portmap on 
[root@jsks01 ~]# chkconfig --level 345 nfs on 

Step # 2 - Install the DHCP Packages

[root@jsks01 ~]# yum install dhcp* or 

// By going repo or Instllation DVD directory 
[root@jsks01 ~]# rpm -ivh dhcp* 

Step # 3 - Copy the sample file to "/etc/dhcp


//It will ask to replace the existing file, type "yes" 
[root@jsks01 ~]# cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf

 

Step # 4 - Modify/configure the dhcp.conf file with appropriate configuration

[root@jsks01 ~]# vi /etc/dhcp/dhcpd.conf 
- Change Line # 7 ( domain name like "example.com" or in my case "dlab.com") 
- change Line #27 ( Subnets of IPs like 10.20.30.0 net mask 255.255.255.0) 
- change Line #32 ( IP Range like range 10.254.239.10 10.254.239.20;) 
- Save and exit using :wq! 

Step # 5 - Start the service/deamon for dhcp servers

[root@jsks01 ~]# /etc/init.d/dhcpd restart or service dhcpd restart|start 
[root@jsks01 ~]# chkconfig dhcpd on 
[root@jsks01 ~]# chkconfig --list dhcpd on 

Now DHCP Server is ready to use

Step # 6 - You have option to configure JSKS.cfg file, you can use ;GUI or you can modify the existing file "anaconda-ks.cfg" file

// Install packages for GUI Kickstart Interface 
[root@jsks01 ~]# yum install system-config-kickstart* or 
[root@jsks01 ~]# rpm -ivh system-config-kickstart* 

Step # 7 - Open the Kick-start File

Related Posts