Create a ticket for Trassir Technical Support - https://support.trassir.com/plugins/servlet/theme/portal/16/create/566 , so a specialist will send you actual software links.

We recommend to install new version of Trassir on a fresh OS, because major changes of the daemon may lead in problems in CentOS file and directory management if you just reinstall the daemon on the same OS.
Link to download CentOS - https://ncloud.dssl.ru/s/MZiTnSqwB6NN7aS
Link to download Trassir repo for daemon - https://ncloud.dssl.ru/s/apzPdj8d7TpbRz2
Link to download Trassir daemon of the latest version will be provided by the Trassir Technical Specialist
Link to download ntp server - https://ncloud.dssl.ru/s/st9mWQXcgaxPPa4 

Instructions:

1. Install CentOS. Be sure to format all the disks in the CentOS installation wizard before processing the installation itself. Set up network interface using CentOS installation wizard. Connect CentOS server to the internet (in case of no internet, you will have download the rpm for net-tools and upload it on CentOS manually)

2. Login as root, execute (without "#" symbol):

# systemctl disable firewalld (if you're planning to use this CentOS server only in the local network) 
# yum install net-tools -y

3. It is possible now to connect to the server via SSH.
Execute:

# sed -i -e '/SELINUX=enforcing/s/enforcing/disabled/g' /etc/sysconfig/selinux /etc/selinux/config 
# reboot

- Optional, if you plan to copy the files on CentOS from the NTFS flash drive, install the ntfs package, but after the file copying, delete the package otherwise it will conflict with packages of the Trassir repo

4. Unpack repo.zip archive to the /home directory on CentOS. Do not forget to replace the license.txt with an actual license file, the name should remain the same.
Unpack ntp server.rar to the /home directory on CentOS.

5. Install "chrony ntp server":

# yum install -y /home/ntpserver/*.rpm

Edit the config - here you have to write the network from which the clients will be connected (default is 192.168.0.1/24):

# vi /home/ntpserver/chrony.conf 

(typing ":wq!" will save and exit vi)

In case if ntpd service is installed:

# systemctl stop ntpd && systemctl disable ntpd 
# reboot
Then execute:
# mv -f /home/ntpserver/chrony.conf /etc/

# reboot
# systemctl enable chronyd && systemctl start chronyd

All ntp clients (cameras, recorders of this server) can use the server's IP address as the NTP (time) source.
If you regularly adjusted the time on the ntp server, then you need to register the restart of the chronyd service with the command: 

# systemctl restart chronyd

6. Execute:

# cd /home && chmod 777 /home/installrepo && ./installrepo 

The system will reboot if it will successfully install all the packages

7. Execute:

# cd /home && chmod 777 /home/installt1daemon && ./installt1daemon

The system will reboot if it will successfully install all the packages

8. Connect to the server via Trassir Client (it's better to use the latest release version from our website https://trassir.com/software-updates/ )
go to database settings -> change the user "vmsdb" to "postgres"

9. If you plan to use CentOS machine's disks as archive, follow next steps:
check whether the disk is detected, using the command:

# lsblk


In our case, it's "sdb", execute:

# fdisk /dev/sdb

- Press "p" . There should be no created sections after pressing the "p" - but if there are, press "d"
- "p" again . If there was a section - it will be deleted
- "g"
- "n"
- "1"
- "2048"
- enter the last number before the last bracket (marked as default)
- "w"

Check if the new section has been created (there would be "sdb1" in our case):

# lsblk

Do this for all CentOS drives that are planned to use as archive.
Execute:

# mkfs.ext4 /dev/[section]
in our case, the section is sdb1
for a single drive:
# mkdir /media/VmsArchive && chmod 777 /media/*
for multiple drives (in the next example - 3 drives):
# mkdir /media/VmsArchive
# mkdir /media/VmsArchive2
# mkdir /media/VmsArchive3 
execute as much "mkdir /media/VmsArchive'x', where 'x' - is a different number according to each hard drive you have
#chmod 777 /media/*

To get the UUID of the disk, execute:

# ls -la /dev/disk/by-uuid/

In our case of "sdb" drive, it's UUID is: a81b597d-4a32-4986-aee2-0f0cbc66e1cb
Execute:

# crontab -e
# mount --uuid=[your_uuid] /media/VmsArchive

In our case, it will be: mount --uuid=a81b597d-4a32-4986-aee2-0f0cbc66e1cb /media/TrassirArchive
Do this for all drives that are planned to use as archive on this CentOS server.

Open up Trassir Client again, go to Archive, enter /media/TrassirArchive/ and press "add"
Do this for all drives that are planned to use as archive on this CentOS server.

10. If you are planning to connect NAS to CentOS, use this manual - How to connect NAS to CentOS via iSCSI protocol

Vasily Selivantsev 

  • No labels