Initial procedures¶
Certain procedures need to be followed before installing the CPQD ASR:
1) Check installation requirements
Verify if your environment meets the requirements indicated in the installation requirements section. In the following examples, some Linux commands are executed to verify your environment’s characteristics.
OPERATING SYSTEM
To verify your OS version, run the command
cat /etc/redhat-release
. In this example, we have CentOS 7.6 installed:$ cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core)
RAM Memory
To use the free speech feature, the minimum RAM memory requirements must be met. To verify your memory, run the command
free -h
. In the following example, we have a total of 7.6 G RAM memory (“total” field) and approximately 6.2G available (“available” field):$ free -h total used free shared buff/cache available Mem: 7,6G 1,0G 1,0G 1,1M 3,6G 6,2G Swap: 0B 0B 0B
Disk Space
The CPQD ASR is installed in
/opt/cpqd/asr
and the logs are created in/var/log/cpqd/asr
. To check disk space in these directories, rundf -h /opt
anddf -h /var/log
. In the following example, there is 32 GB free space:$ df -h /opt Filesystem Size Used Avail Use% Mounted on none 65G 29G 32G 52% / $ df -h /var/log Filesystem Size Used Avail Use% Mounted on none 65G 29G 32G 52% /NUMBER OF CPUs AND PROCESSOR TYPE
To check the number of CPUs and the processor type, run the command
lscpu
. In the following example, we have a machine with 8 CPUs typeIntel(R) Core(TM) i7 CPU 870 @ 2.93GHz
.$ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 8 On-line CPU(s) list: 0-7 Thread(s) per core: 2 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 30 Model name: Intel(R) Core(TM) i7 CPU 870 @ 2.93GHz Stepping: 5 CPU MHz: 1200.000 BogoMIPS: 5866.97 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 8192K NUMA node0 CPU(s): 0-7
2) Install Java JDK
Install Java JDK 8 64 bits - Oracle by searching for the RPM file at JDK 8 link or clicking on the download link.
For example, download the file
jdk-8u172-linux-x64.rpm
and run the command below to install it:sudo yum -y localinstall jdk-8u172-linux-x64.rpmWarning
This version of the CPQD ASR only works with Java 8; it will not work with Java 10, for example.
Warning
Use Oracle’s distributed Java, since the system has been verified with this distribution. The system has not been tested with OpenJDK and we cannot guarantee it will work correctly.
3) Test the Java installation
Verify if you have the correct Java installation, running the command
java -version
. See the following example:$ java -version java version "1.8.0_172" Java(TM) SE Runtime Environment (build 1.8.0_172-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)
4) Configure the correct Java version
If you do not have the desired Java version or distribution, you can select the correct one by executing
sudo alternatives --config java
, as shown in the following example:$ java -version openjdk version "1.8.0_171" OpenJDK Runtime Environment (build 1.8.0_171-b10) OpenJDK 64-Bit Server VM (build 25.171-b10, mixed mode) $ sudo alternatives --config java There are 2 programs which provide 'java'. Selection Command ----------------------------------------------- *+ 1 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.x86_64/jre/bin/java) 2 /usr/java/jdk1.8.0_172-amd64/jre/bin/java Enter to keep the current selection[+], or type selection number: 2 $ java -version java version "1.8.0_172" Java(TM) SE Runtime Environment (build 1.8.0_172-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)