These instruction will help installing Ksenos with GUI on a CentOS 7 platform. Ksenos with GUI will work as a viewing client and a recorder. 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 (such as GPU and drivers for it).
1. Requirements
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.
Mountpoint | Size (GB) | Type | Description |
---|---|---|---|
/ | 25 | ext4 | (OS root directory) |
swap | 2 | swap | (Swap partition) |
/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 -
Password:
#(Install Ksenos repository)
rpm -Uvh http://packages.ksenos.fi/centos/7/x86_64/ksenos-release-0.1-3.noarch.rpm
#(Install Ksenos)
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, and next all you need to do is enter product key, configure recording spaces from Ksenos settings and start adding cameras. These are all described in Ksenos Installers 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 additional programs (root access required)
yum -y install vlc
-
vlc Mediaplayer to playback video clips
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 installs 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)
gedit /etc/gdm/custom.conf
-
Edit or add the following lines under [daemon] section
-
-
AutomaticLoginEnable=true
AutomaticLogin=kseno
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 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 ope(root access required)
n file handles, too many open file handles have caused some systems to malfunction when the default lower value is usedgedit /etc/security/limits.conf
-
-
Add the following lines at the end of the file
-
-
ksenos soft nofile 10000
ksenos hard nofile 1000
4.8 Set desktop attributes like screensaver and automatic locking for 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) to be the correct one.
Ksenos can be manually started from the Applications -> Sound & Video menu.