These instructions will help in installing Ksenos with a GUI on a CentOS 6 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 6 Minimal Desktop (64-bit suggested)
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/6/x86_64/ksenos-release-0.1-3.noarch.rpm
yum -y install ksenos-gui ksenos-gallery
#(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 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://elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
4.3 Install additional programs. (root access required)
yum -y install kmod-joydev nano wget gedit evince eog vlc gnome-system-monitor
|gedit||GUI text editor|
|nano||CLI text editor|
|wget||CLI download utility|
|evince||Document reader to open PDF manuals|
|eog||Image viewer for GNOME|
|vlc||Video player to watch exported video clips|
|gnome-system-monitor||Basic system monitoring tools to see memory usage and system loads|
4.4 If your system has an NVIDIA GPU, you need to install NVIDIA drivers. We do not suggest using Intel integrated GPU on CentOS with Ksenos as the driver has caused problems in the past. 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)
#(Automated bug reporting system for OS)
chkconfig abrtd off
#(Firewall for IPv4 traffic, keep it on if you plan on configuring it)
chkconfig iptables off
#(kdump is for creating crash dump from kernel crashes)
chkconfig kdump off
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 a normal user.
#(Removes computer, home and trash icons from desktop)
gconftool-2 --type boolean --set /apps/nautilus/desktop/computer_icon_visible "false"
gconftool-2 --type boolean --set /apps/nautilus/desktop/home_icon_visible "false"
gconftool-2 --type boolean --set /apps/nautilus/desktop/trash_icon_visible "false"
#(Use browser style view on file explorer)
gconftool-2 --type boolean --set /apps/nautilus/preferences/always_use_browser "true"
#(Disable system hibernate and suspend)
gconftool-2 --type boolean --set /apps/gnome-power-manager/can_hibernate "false"
gconftool-2 --type boolean --set /apps/gnome-power-manager/can_suspend "false"
#(Disable screensaver and locking)
gconftool-2 --type boolean --set /apps/gnome-screensaver/lock_enabled "false"
gconftool-2 --type boolean --set /apps/gnome-screensaver/idle_activation_enabled "false"
#(Disable monitor and computer sleep)
gconftool-2 --type string --set /apps/gnome-power-manager/timeout/sleep_computer_ac "0"
gconftool-2 --type string --set /apps/gnome-power-manager/timeout/sleep_display_ac "0"
#(Set solid black background)
gconftool-2 --type string --set /desktop/gnome/background/color_shading_type "solid"
gconftool-2 --type string --set /desktop/gnome/background/picture_filename ""
gconftool-2 --type string --set /desktop/gnome/background/picture_options "none"
gconftool-2 --type string --set /desktop/gnome/background/primary_color "#000000"
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 -> Video menu.