Upgrades
Upgrade CQ from V2.15 to V2.20
Prerequisites
-
A CYBERQUEST 2.15 instance must be installed
-
Back-up by creating a snapshot of the CYBERQUEST VM is recommended in this stage
-
CYBERQUEST 2.20 packets must be downloaded prior to the beginning of the upgrade process
Technical operations
Access your CYBERQUEST instance via ssh and follow the steps bellow:
1.Login as root with password toor1 and select Exit option
The result should loook like this:
2.Create a new folder using th following command:
mkdir /home/superadmin/upgrade
The result should loook like this:
3.Copy from Prerequisitis.7z file the following folders: packages and cq to the CYBERQUEST server in the following path: /home/superadmin/upgrade
4.Edit the file cyberquest.list
A.Open the file cyberquest.list using the following command:
nano /etc/apt/sources.list.d/cyberquest.list
B.Coment the row:
C.Save and Exit
5.Upate CYBERQUEST server using the following command:
apt-get update
6.Upgrade CYBERQUEST server using the following command:
apt-get upgrade
Select Yes on "Do you want to continue? [Y/n]"
7.Reboot CYBERQUEST server using the following command:
reboot
8.Login as root with password toor1
Select Exit option
9.Edit the following file sources.list
A.Open the file sources.list using the following command:
nano /etc/apt/sources.list
B.Replace stretch with buster using Ctrl + \
C.Select A to replace All
D.Save and Exit
10.Upate CYBERQUEST server using the following command:
apt-get update
11.Upgrade CYBERQUEST server
A.Upgrade CYBERQUEST server using the following command:
apt-get upgrade
B.Select y on "Do you want to continue? [Y/n]"
C.Press q button
D.Select Yes on "Restart services during package upgrades without asking?"
E.Press Enter on "crontab (Y/I/N/O/D/Z) [default=N] ?"
12.Update CYBERQUEST server
A.Update CYBERQUEST server using the following command:
apt-get dist-upgrade
B.Select Y on "Do you want to continue? [Y/n]"
C.Press q button
D.Press Enter on "limits.conf (Y/I/N/O/D/Z) [default=N] ?"
E.Press Enter on "rsyslog.conf (Y/I/N/O/D/Z) [default=N] ?"
F.Press Enter on "sysctl.conf (Y/I/N/O/D/Z) [default=N] ?"
G.Press Enter on "tools.conf (Y/I/N/O/D/Z) [default=N] ?"
H.Select "openssl-server: keep the local version currently installed" and press "Enter"
I.Reboot CYBERQUEST server
13.Install all deb files in the following path: /home/superadmin/upgrade/packages
A.Change the path to: /home/superadmin/upgrade/packages using the following command:
cd /home/superadmin/upgrade/packages
B.Install the packages using the following command:
dpkg -i *
14.Fix dependency using the following command:
apt-get -f install
Press Y on "Do you want to continue? [Y/n]"
15.Unintall networkagent.service
A.Use the following command to stop networkagent.service:
systemctl stop networkagent.service
B.Use the following command to disable networkagent.service:
systemctl disable networkagent.service
C.Use the following command to remove networkagent.service:
apt-get remove networkagent
Press y on "Do you want to continue? [Y/n]"
16.Install CYBERQUEST services
A.Change the path using the following command:
cd ..
B.Change the path using the following command:
cd cq
C.Open the file elasticsearch.in.sh using the following command:
sudo nano /usr/share/elasticsearch/bin/elasticsearch.in.sh
D.Comment the line:
# ES_GC_OPTS="$ES_GC_OPTS -XX:+UseParNewGC"
Search in to nano with Ctrl+W for 'UseParNewGC' to jump to the line abouve. Put "#" in front of the line.
E.Save and Exit
F.Install CYBERQUEST services using the following commands:
dpkg -i administration_2.15.5_amd64.deb
dpkg -i DataStorage-2.20.6-Prerelease.deb
dpkg -i data-correlation-2.20.8-debian_buster.deb
dpkg -i data-server-2.20.41-debian_buster.deb
dpkg -i data-acquisition-2.20.95-debian_buster.deb
Press Enter on "lic (Y/I/N/O/D/Z) [default=N] ?"
dpkg -i cqweb.2.20.298-Prerelease.deb
17.Change path and owner
A.Change path using the following command:
cd /var/opt/cyberquest/reports
B.Change owner using the following command:
sudo chown -R www-data:www-data slimapp
C.Reboot CYBERQUEST server
18.Change java
A.Use the following command to chenge java:
update-alternatives --config java
B.Select option "2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode" and press Enter
C.Reboot CYBERQUEST server
19.Logon to web interface and check the About page in Settings: