These instructions will help in installing Ksenos with a GUI on a CentOS 7 platform. Ksenos with a GUI will work as a viewing client and as a recorder. Installation may differ from the instructions due to different hardware used for servers. There are only a few mandatory steps, but all the suggested steps are very useful. These instructions should not be followed blindly but adjusted to fit your hardware (such as GPU and drivers for it).
CentOS 7 GNOME Desktop (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.
|/||25||ext4||(OS root directory)|
|/home||50||ext4||(Users home directory, Gallery and 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 the CentOS installation, add a new user (for example "ksenos") and log in.
3. Installing Ksenos
To install Ksenos, open up a terminal and elevate your privileges to root.
[ksenos@localhost ~]$ su -
#(Install Ksenos repository)
rpm -Uvh http://packages.ksenos.fi/centos/7/x86_64/ksenos-release-0.1-3.noarch.rpm
yum -y install ksenos-gui
#(Set privileges for recording space for user "ksenos")
chown -R ksenos:ksenos /var/lib/ksenos/capture
After the installation is completed, you can close the terminal. Next all you need to do is enter a product key, configure recording spaces from the Ksenos settings, and start adding cameras. These are all described in the Ksenos Quickstart Guide.
4. Suggested configurations and additional software
4.1 Update all packages. (root access required)
yum -y update
4.2 Install additional repository for the packages in later suggestions. (root access required)
rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
yum -y install epel-release
rpm -Uvh https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
4.3 Install VLC media player to play back video clips. (root access required)
yum -y install vl
4.4 If your system has an NVIDIA GPU, you need to install NVIDIA drivers. The following command will first detect the correct driver and then install it. (root access required)
yum -y install nvidia-detect && yum -y install $(nvidia-detect)
4.5 Set automatic OS login for your user (in this example "ksenos"). (root access required)
Edit or add the following lines under [daemon] section.
4.6 Disable some selected system services. (root access required)
#(Firewall, keep it on if you plan on configuring it)
chkconfig firewalld off
#(kdump is for creating a crash dump from kernel crashes)
chkconfig kdump off
#(PackageKit is an auto-updater for CentOS and should be removed to avoid unexpected restarts)
yum -y remove PackageKit
4.7 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. (root access required)
Add the following lines at the end of the file.
ksenos soft nofile 10000
ksenos hard nofile 10000
4.8 Set desktop attributes like the screensaver and automatic locking for the user.
First exit from elevated privileges
[root@localhost ~]# exit
Then type the following commands as normal user
#(Disable screen shield/blank screen and screen locking)
gsettings set org.gnome.desktop.session idle-delay 0
gsettings set org.gnome.desktop.lockdown disable-lock-screen true
Reboot is also suggested after all of these changes. Before rebooting, make sure to doublecheck your NVIDIA driver (if you installed it) is the correct one.
Ksenos can be manually started from the Applications -> Sound & Video menu.