Building GCEMS Server on CentOS 7

Before you Begin

  1. Choose Server with GUI and customize then select the checked optional packages listed below from Add-Ons for Selected Environment during CentOS 7 setup.

    sc_gcems_centos7_server1.png

    sc_gcems_centos7_server2.png

    sc_gcems_centos7_server3.png

    sc_gcems_centos7_server4.png

  2. Create a user named excelsw exclusively for GCEMS.

  3. Log in as excelsw (do not use terminal mode) so that operation system is able to create automatically user’s folders including Desktop folder for excelsw.

 

Install Required Packages

This should all be done as a root user.

$su
$Password: excel2 (root password)

[root]# yum install compat-libstdc++-33.i686 kexec-tools
fipscheck device-mapper-multipath sgpio perl-Convert-ASN1
python-dmidecode imake emacs libsane-hpaio tftp-server
freeradius festival audit net-snmp-utils mesa-libGLU-devel
xorg-x11-utils httpd vsftpd dhcp tigervnc* wireshark wireshark-gnome ksh

    1. Build a local repository, Download the Everything ISO.
      https://www.centos.org/download

    2. Mount your CentOS 7 installation DVD. For example, let us mount the installation media on /mnt directory.
      mount /dev/cdrom /mnt/

    3. The CentOS installation DVD is mounted under /mnt directory. Next install vsftpd package and let the packages available over FTP to your local clients.

      Change to /mnt/Packages directory.
      cd /mnt/Packages/

      Install vsftpd package, for instance.
      rpm -ivh vsftpd-3.0.2-9.el7.x86_64.rpm

    4. Enable and start vsftpd service.
      systemctl enable vsftpd
      systemctl start vsftpd

    5. Create a storage location in our FTP server pub directory.
      mkdir /var/ftp/pub/localrepo

    6. Install "createrepo" package, for instance.
      rpm -ivh createrepo-0.9.9-23.el7.noarch.rpm

    7. Copy all the files from CentOS DVD(s) (i.e., from /mnt/Packages/ directory to the "localrepo" directory).
      cp -ar /mnt/Packages/*.* /var/ftp/pub/localrepo/

    8. Once you copied all the files, create a repository file called "localrepo.repo" under /etc/yum.repos.d/ directory and add the following lines into the file. You can name this file as per your preference.
      vi /etc/yum.repos.d/localrepo.repo

    9. Add the following lines:
      [localrepo]
      name=Unixmen Repository
      baseurl=file:///var/ftp/pub/localrepo
      gpgcheck=0
      enabled=1


      Note: Use three slashes (///) in the baseurl.

    10. Start building local repository.
      createrepo -v /var/ftp/pub/localrepo/

    11. Clean the yum cache and update the repository lists.
      yum clean all

    12. Alternatively, you can install packages only from the local repository by mentioning the repository as shown below.
      yum install --disablerepo="*" --enablerepo="localrepo" compat-libstdc++-33.i686
      kexec-tools fipscheck device-mapper-multipath sgpio perl-Convert-ASN1
      python-dmidecode imake emacs libsane-hpaio tftp-server freeradius festival
      audit net-snmp-utils mesa-libGLU-devel xorg-x11-utils httpd vsftpd dhcp
      tigervnc* wireshark wireshark-gnome ksh mysql php-mysql php-pear php-common
      php-gd php-devel php php-mbstring php-cli php-snmp httpd net-snmp-utils
      php-snmp net-snmp-libs rrdtool net-snmp* gd gd-devel php-gd mariadb-server

 

Set Services to Start Automatically

This should all be done as a root user.

$su
$Password: excel2 (root password)

[root]# systemctl enable httpd.service
[root]# systemctl enable vsftpd.service
[root]# systemctl enable dhcpd.service
[root]# systemctl enable crond.service
[root]# systemctl enable mariadb.service
[root]# systemctl enable snmpd.service

 

Enable NFS Version 2

This should all be done as a root user.

$su
$Password: excel2 (root password)

[root]# vi /etc/sysconfig/nfs
mountd_nfs_v2="yes"
RPCNFSDARGS="-V 2"
RPCMOUNTDOPTS="-V 2"

[root]# systemctl reload nfs-server
[root]# systemctl restart nfs-server

 

Other Steps

[root]# vi /etc/ssh/sshd_config

Locate the following line.

PermitRootLogin yes

Modify the line to the following.

PermitRootLogin no

cd /home/excelsw
ln –sf /opt/dialogic/common/osconfig/xlntp xlntp

cd /home/excelsw
ln –sf /opt/dialogic/common/osconfig/xldhcp xldhcp

[root]# systemctl disable dnsmasq
[root]# systemctl stop dnsmasq
[root]# systemctl disable firewalld
[root]# systemctl stop firewalld