Installing Ksenos Daemon on CentOS 7

These instruction will help installing Ksenos Daemon on a CentOS 7 platform. Daemon version will be running as a service only, and accessible via WebUI or remote connection. Installation may differ from the instructions because of different hardware used for servers. There are only few mandatory steps, but all the suggested steps are very useful. These instructions should not be followed blindly, but adjusted to fit your hardware.

1. Requirements

CentOS 7 Minimal installation (64-bit required)

2. CentOS partitions and installation

The following partition table is a suggestion on how to partition your system when you have a single 1TB hard disk.

Mountpoint Size (GB) Type Description
/ 10 ext4 (OS root directory)
swap 2 swap (Swap partition)
/var/lib/ksenos 10 ext4 (Configs will be stored here)
/var/lib/ksenos/capture/d 100 ext4 (This partition is for the database)
/var/lib/ksenos/capture/e "Use all remaining space" ext4 (This is for the actual recordings)

After beginning the installation, set the root password but do not create a user

After the CentOS installation log in as root user and you will land on a console view.

3. Installing Ksenos

To install Ksenos you will first need to install the repository then the Ksenos packages

  • #(Install Ksenos repository)
  • rpm -Uvh
  • #(Install Ksenos Daemon)
  • yum -y install ksenos-daemon
  • #(Set privileges for recording space and config folders for user "ksenos")
  • chown -R ksenos:ksenos /var/lib/ksenos

After the installation you should reboot the system. Then once the system is up and running again, connect to its IP address on browser to get to the configuration page. Next all you need to do is enter product key, configure recording spaces from and start adding cameras. These are all described in Ksenos Installers guide.

4. Suggested configurations and additional software

4.1 Update all packages

  • yum -y update

4.2 Install additional repository for the packages in later suggestions

  • rpm --import
  • rpm -Uvh
  • yum -y install epel-release

4.3 Install additional programs, minimal installation of CentOS does not include some useful basic packages so these are installed manually

  • yum -y install nano net-tools ntpdate ntp smartmontools wget
  • nano CLI text editor
    net-tools Network tools for CLI
    ntpdate Manual tool for internet time
    ntp Server and client for internet time
    smartmontools Tool for reading SMART data from hard disks
    wget Tool for retrieving files using HTTP

4.4 To access system (hardware and OS) configurations from Ksenos settings, you will need an external webmin-ksenos package installed

  • wget
  • yum -y localinstall webmin-ksenos-1.820-1.noarch.rpm
    • chkconfig webmin off
    • sed -i "s/^# chkconfig: 235 99 10$/# chkconfig: 235 84 10/g" /etc/init.d/webmin
    • chkconfig webmin on
    • After installing webmin-ksenos, you will need to alter the starting order of the services to make sure webmin-ksenos starts before the actual Ksenos process. The following commands changes the start order automatically, and then applies the new value

4.5 Disable some selected system services

  • #(Firewall, keep it on if you plan on configuring it)
  • chkconfig firewalld off
  • #(kdump is for creating crash dump from kernel crashes)
  • chkconfig kdump off

4.6 Increase the maximum number of open file handles, too many open file handles have caused some systems to malfunction when the default lower value is used

nano /etc/security/limits.conf

  • ksenos soft nofile 10000
    ksenos hard nofile 10000
  • CTRL + O will save the file, CTRL + X will exit the program.

4.7 To manually start, stop or restart the process

service ksenosd start

service ksenosd restart

service ksenosd stop

Reboot is also suggested after all of these changes. To get all the services running correctly, reboot is mandatory.