Configuring the Repository Server

This section describes how to configure the repository server to install Session Monitor.

  1. Copy the RPM files to the repository server in a temporary directory, such as /tmp/ocsm/.
  2. Install the following RPM files in this order:
    1. rpm -ivh vsftpd-3.0.3-35.el8.x86_64.rpm
    2. rpm -ivh drpm-0.4.1-3.el8.x86_64.rpm
    3. rpm -ivh createrepo_c-libs-0.17.7-6.el8.x86_64.rpm
    4. rpm -ivh createrepo_c-0.17.7-6.el8.x86_64.rpm
  3. Run this command to move the directory /tmp/ocsm/ to the directory /var/ftp/pub/.
    mv /tmp/ocsm/  /var/ftp/pub/
  4. Copy RPM files of Session Monitor and MySQL to the directory /var/ftp/pub/ocsm/

    Note:

    Use the Commercial Package of MySQL 8.0.34 for installation. The Session Monitor dependencies used here are based on MySQL 8.0.34 version. If there are any additional dependencies required, please take that as well
    mysql-8.0/8.0.34/mysql-commercial-backup-8.0.34-1.1.el8.x86_64.rpm
    mysql-8.0/8.0.34/mysql-commercial-client-8.0.34-1.1.el8.x86_64.rpm
    mysql-8.0/8.0.34/mysql-commercial-client-plugins-8.0.34-1.1.el8.x86_64.rpm
    mysql-8.0/8.0.34/mysql-commercial-common-8.0.34-1.1.el8.x86_64.rpm
    mysql-8.0/8.0.34/mysql-commercial-devel-8.0.34-1.1.el8.x86_64.rpm
    mysql-8.0/8.0.34/mysql-commercial-icu-data-files-8.0.34-1.1.el8.x86_64.rpm
    mysql-8.0/8.0.34/mysql-commercial-libs-8.0.34-1.1.el8.x86_64.rpm
    mysql-8.0/8.0.34/mysql-commercial-server-8.0.34-1.1.el8.x86_64.rpm
    mysql-8.0/8.0.34/mysql-commercial-test-8.0.34-1.1.el8.x86_64.rpm
    The Session Monitor, MySQL, and other dependency RPM files are now located in the directory /var/ftp/pub/ocsm/.
  5. Run the following command to create the repository: .
    createrepo /var/ftp/pub/ocsm/
  6. Add a comment at the beginning of the root line of /etc/vsftpd/ftpusers and /etc/vsftpd/user_list using the character "#" to say the following:
    [root@test vsftpd]# cat /etc/vsftpd/ftpusers
    # Users that are not allowed to login via ftp
    #root
    bin
    daemon
    adm
    lp
    sync
    shutdown
    halt
    mail
    news
    uucp
    operator
    games
    nobody
    [root@test vsftpd]# cat /etc/vsftpd/user_list
    # vsftpd userlist
    # If userlist_deny=NO, only allow users in this file
    # If userlist_deny=YES (default), never allow users in this file, and
    # do not even prompt for a password.
    # Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
    # for users that are denied.
    #root
    bin
    daemon
    adm
    lp
    sync
    shutdown
    halt
    mail
    news
    uucp
    operator
    games
    nobody
  7. Run these commands to disable SELinux:
    setenforce 0
    sed -i -e "s/^SELINUX=.*/SELINUX=disabled/" /etc/selinux/config
    reboot
  8. Using an editor, open the file /etc/vsftpd/vsftpd.conf.
  9. Comment the line anonymous_enable=NO.
  10. Save and quit the vsftpd.conf file.
  11. Run the following commands to start the vsftp service:
    systemctl start vsftpd
    systemctl enable vsftpd
  12. Run this command to check the status of vsftp service:
    systemctl status vsftpd
    The status of the service should be active (running).
  13. Run these commands to disable the firewall:
    systemctl stop firewalld
    systemctl disable firewalld
The repo server is now ready to be used.