Acco Net Manual 2
Acco Net Manual 2
ACCO NET
Installation Manual
- caution.
CONTENTS
1 General ............................................................................................................................. 2
2 Software components........................................................................................................ 2
3 System architecture........................................................................................................... 3
4 Network requirements ....................................................................................................... 4
5 Suggested hardware requirements ................................................................................... 4
6 Installation of the ACCO NET system software ................................................................. 5
6.1 Installing the Debian operating system ...................................................................... 5
6.2 Installing the server environment and ACCO NET system ...................................... 19
6.2.1 Installing a local database .................................................................................. 29
6.2.2 Installing the ACCO NET system with remote database .................................... 38
6.3 Installing the ACCO-NT Conf / ACCO Soft / Map Editor programs.......................... 50
6.3.1 Using the Map Editor program ........................................................................... 50
7 Configuring the settings................................................................................................... 51
7.1 ACCO NET system components (without ACCO Web) ........................................... 51
7.2 ACCO Web application ............................................................................................ 52
7.3 Useful commands .................................................................................................... 52
7.3.1 Starting help for the installation script ................................................................ 53
8 Updating the ACCO NET system software to version 1.8 ............................................... 54
8.1 Updating the ACCO NET system from version 1.7 to 1.8 ........................................ 54
8.2 Updating the ACCO NET system when migration to new device is required ........... 54
8.2.1 Updating the system with database migration performed manually ................... 55
8.2.2 Updating the system with database migration performed automatically ............. 64
2 ACCO NET SATEL
1 General
The ACCO NET access control system is designed for protection of buildings against access
by unauthorized persons. The ACCO NET system is made up of software and SATEL's
devices (access control panels, access control modules, expansion modules, keypads,
proximity card readers, etc.).
This manual covers installation of the software which enables configuration and then
management of the system (in version 1.8). It also describes the ACCO NET update
procedure as well as the method of transferring the databases to the updated system.
The system may include many objects with any number of access control panels.
Communication with the control panels takes place via the Ethernet network.
2 Software components
For the ACCO NET (version 1.8) system to operate, the Debian operating system is required.
Installation of the Debian 10 (“buster”) system for the 64-bit PC (amd64) architecture is
described further in this manual, but if it has already been installed, you may skip this section.
The software necessary for proper operation of the system is offered as an installation
package which includes:
1. server environment software. It is not developed by the SATEL company (addresses of
websites on which licenses for each of the programs are available are given in
parentheses):
– Apache (http://www.apache.org/licenses/LICENSE-2.0.html),
– PHP (http://php.net/license/3_01.txt),
– MySQL and JDBC MySQL (http://www.gnu.org/licenses/gpl-2.0.html),
– Java and JAVA SE (http://www.gnu.org/licenses/gpl-2.0.html,
https://adoptopenjdk.net/about.html),
– ModSecurity (http://www.apache.org/licenses/LICENSE-2.0.html),
– Fail2Ban (http://www.gnu.org/licenses/gpl-2.0.html),
– MariaDB (https://mariadb.com/kb/en/mariadb/mariadb-license/),
– WildFly (http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html).
Please remember to legalize the server environment required by the system.
If you have already installed these programs, please verify that their versions meet the
requirements. If so, you may skip installation thereof.
2. ACCO NET access control system firmware:
– ACCO Server – program enabling data exchange between the access control panels,
database, and the ACCO Soft and ACCO Web programs,
– ACCO DB – database to which all system related data are saved, including
configuration and events,
– ACCO-EE – JavaEE component providing map data,
– ACCO Web – application for remote management and operation of the system,
– ACCO-NT Conf – installation file for the network settings configuration program
(for more information on the program and how it should be used, refer to the ACCO-NT
control panel installation manual),
– ACCO Soft – installation file for the system configuration program,
– Map Editor – installation file for the object map creating program.
SATEL ACCO NET 3
The system owner / administrator is obliged to carry out the diagnosis of errors,
ongoing supervision and backup of the program and database with the frequency
consistent with generally accepted practices (daily, weekly and monthly backups).
This will ensure proper and reliable operation of the program, in particular the
possibility of full and immediate recovery of all data from backups without incurring
excessive costs. Considering this obligation of the system owner / administrator,
SATEL is not responsible for the loss of data or costs resulting from the recovery of
distorted or lost data by the owner / administrator of the system.
3 System architecture
Fig. 1. An example of the ACCO NET system, in which the ACCO Server and database have
been installed on one computer (the settings are shown just for illustration).
The ACCO NET system can be installed on one device. Alternatively, it can be shared by
multiple devices, in which case distributed architecture will be used. The applications:
ACCO Soft for system configuration, and Map Editor for creating site plans, can be installed
4 ACCO NET SATEL
on several devices. All you need to use the ACCO Web application for remote management
of the system is the web browser running on your computer, smartphone or tablet.
An example of the ACCO NET system is shown in Fig. 1.
4 Network requirements
Internet protocol version 4 (TCP/IPv4).
IP address for each connected ACCO-NT control panel.
If the ACCO Web application is to be accessible from another subnet, the web port (https;
default: 443), on which communication between ACCO Server and ACCO Web application
is to take place, should be redirected.
If the ACCO Soft program is to be accessible from another subnet, the following ports
should be redirected:
– RMI port (default: 2500), on which communication between ACCO Server and
ACCO Soft program is to take place,
– DB port (default: 3306), on which communication between ACCO Server and database
is to take place.
SATEL recommends to purchase and install an SSL certificate for encryption support and
proper validation of the domain on which the ACCO Web application will be running.
If the ACCO NET system is connected to a public network, SATEL recommends
to apply additional security measures, including e.g. a firewall, intrusion
detection and prevention systems (IDS / IPS), in addition to the standard
encryption techniques (SSL).
Components of the device on which the access control system will be installed must
meet the requirements of the Debian 10 operating system (“buster”) for the 64-bit PC
architecture (amd64).
One of the installed disks must have at least 10 GB of free space for installation of the
ACCO NET system. The size of the remaining disks to be installed must be selected
taking into account the following:
– number of events generated in the system (2 to 5 millions events will occupy
1 GB),
– number of users simultaneously running the ACCO Soft or Map Editor programs or
the ACCO Web application,
– size of graphic files assigned to the maps,
– size of user photographs,
– length of defined names of objects, control panels, controllers, expanders,
partitions and users.
The computer(s) / virtual machine(s) on which the ACCO NET system and
database are to be installed must have access to the Internet.
The Debian 10 (“buster”) system for 64-bit PC (amd64) architecture is required. Below,
we present an example installation of the Debian operating system version 10.8.
1. On the https://www.debian.org/releases/buster/debian-installer/ website, select the
appropriate image “amd64” from among the CD “netinst” images and save it to the hard
disk. Having downloaded the ISO image, burn it to a CD or another carrier,
e.g. a pendrive.
2. Insert the burned CD into the computer optical disk drive or the pendrive into the
computer USB port. The splash screen of Debian system installer will be displayed.
6 ACCO NET SATEL
4. Select the language to be used for the installation process and press ENTER.
SATEL ACCO NET 7
10. Define the password for the administrator (login: root) and press ENTER.
12. Give a name to the user (your additional account) and press ENTER. The “rjones” user
name shown on the screenshot is just an example.
13. Enter the name for the new account (e.g. “rjones”) and press ENTER.
SATEL ACCO NET 11
16. At the disk partitioning stage, select the “Guided – use entire disk” and press ENTER.
17. When a command prompt to specify the disk to be partitioned is displayed, press ENTER.
SATEL ACCO NET 13
18. Select the “All files in one partition (recommended for new users)” partitioning method and
press ENTER.
19. Select the “Finish partitioning and write changes to disk” option and press ENTER.
14 ACCO NET SATEL
20. When a prompt appears asking whether you wish to save the changes, select “Yes” and
press ENTER.
21. You will be asked if you want to scan another CD/DVD. Select one of the available
options and click ENTER.
SATEL ACCO NET 15
22. Select the country for the http proxy server and press ENTER.
23. Select the archive name for http proxy server and press ENTER.
16 ACCO NET SATEL
24. Do not enter any http proxy related data, but select “Next” and press ENTER.
27. Press repeatedly the space key to select software you want to install: “SSH server”
and “Standard system utilities” (leave the other fields unselected). Then, press ENTER.
29. When a prompt appears asking whether you wish to install the GRUB boot loader,
select “Yes” and press ENTER.
30. Highlight the name of the master boot record of the first hard disk on which the GRUB
boot loader will be installed and press ENTER.
SATEL ACCO NET 19
31. When information on installation completion is displayed, press ENTER. Restart of the
system will follow.
Each time before starting the system installation procedure, make sure that this
manual applies to the system version you want to install.
The server environment and the ACCO NET system can be installed using:
– a console running from the command line on a computer / virtual machine where the
ACCO NET system is to be installed,
– SSH using, for example, the PuTTY program, if you connect remotely to a computer /
virtual machine where the ACCO NET system is to be installed.
If you connect remotely via SSH using the PuTTY program to the computer / virtual
machine where the ACCO NET system is to be installed, perform the following steps
before starting the installation procedure:
1. Change the PuTTY program settings. In the main window, select “Terminal”,
and then “Features”. Check the “Disable application keypad mode” option. Select
“Session” and click on the “Save” button to confirm the changes.
2. Set the screen resolution (minimum of 1280x800).
If the remote database is to be used, before you start the installation procedure,
go to the “Installing the ACCO NET system with remote database” section and follow
the steps described there.
20 ACCO NET SATEL
Below we present installation of the ACCO NET system in the PuTTY program.
1. Enter the user login and press ENTER.
5. Open the file with configuration settings for the systemd-timesyncd service, using the
command:
nano /etc/systemd/timesyncd.conf
6. Delete the # comment tag at the front of the #NTP= line.
7. Enter the time server IP address or domain name. In the UK, enter e.g.:
NTP=uk.pool.ntp.org
Where the ACCO NET system is integrated with the INTEGRA / INTEGRA Plus alarm
system, the time server IP address must be entered in the time synchronization
settings of the alarm control panel.
8. Save and close the file.
9. Start the procedure of automatic synchronization of the Debian operating system with the
NTP time server by using the command:
timedatectl set-ntp true
10. To download the installation package of ACCO NET system, use the command:
wget https://updates.satel.pl/acco_net_latest/installer/acco-installer-online.sh
22 ACCO NET SATEL
11. Give permissions to run the installation package by using the command:
chmod 755 acco-installer-online.sh
13. When you are asked if you want to install the “curl’ package, enter y.
14. The “dialog” package is required for ACCO NET installation. Enter Y or y to install it.
24 ACCO NET SATEL
15. Use the arrow keys to select the installation language. Then select “Yes” or press Y.
The “Selecting language” screen and the following windows show colorfully highlighted
letters. Some consoles (e.g. Linux), after simultaneously pressing the highlighted letter
and the ALT key, will allow you to execute the command to which the letter is
assigned.
16. When you are asked if you want to install the “bc” package, select “Yes”.
SATEL ACCO NET 25
17. When you are asked if you want to install the “unzip” package, select “Yes”.
18. Additional information about which keys to use during system installation will be
displayed. Click “OK” to go to the next window.
26 ACCO NET SATEL
20. Information about the license content will be displayed in the next window.
SATEL ACCO NET 27
21. Read the terms and conditions of the License Agreement for the ACCO NET software.
To scroll through the text, use the PageDown / PageUp keys.
22. When you have read the terms and conditions of the license agreement, enter ‘q’.
23. Select “Yes” if you accept the terms of the ACCO NET software license agreement and
want to proceed with the installation.
28 ACCO NET SATEL
24. Select “Yes” to update the operating system packages. Updating the packages may take
up to 20 minutes.
25. Decide whether or not to install the system packages required for ACCO NET installation.
If yes, select “Continue”. If no, select “Interrupt”, and then make the system ready for the
ACCO NET installation manually.
SATEL ACCO NET 29
3. Select the IP address of the device on which the ACCO Server program is installed,
and then select “Confirm”.
SATEL ACCO NET 31
4. When information about the database configuration will be displayed, click “OK”.
5. Select the IP address of the device through which ACCO Server will connect to the
databases, and then select “Confirm”.
32 ACCO NET SATEL
6. Select the IP address of the device through which ACCO Soft will connect to the
databases, and then select “Confirm”.
7. Configure. the SSL certificate settings for connecting to the web server:
– Country code – two-character country code;
– Province;
– City;
– Organization – company name;
– Organization unit – name of the company department;
– Host name – name of the device on which the ACCO Server will be installed;
– Email address;
SATEL ACCO NET 33
9. Decide whether downloading and installing the third party software is necessary for
installation of ACCO-EE or not. If so, select “Yes”. If you select “No”, you will have to
install these programs yourself.
10. Addresses of websites where you can find the terms and conditions of third-party software
licenses are given in the “Software components” section. Read them carefully and if you
agree with them, select “I accept / Continue installation”. If you do not accept these
conditions, select “I don’t accept / Exit installation”. This will be tantamount to aborting the
installation.
SATEL ACCO NET 35
11. Decide if you want to install the JAVA Runtime Environment (JRE) required for the
ACCO NET system installation. Read the terms and conditions of the license available on
the website provided. If you accept them, select “Yes”. If you do not accept them,
select “No”. This will cancel the installation process.
12. Information about the installation progress will be displayed. It may take up to 20 minutes.
36 ACCO NET SATEL
13. When a summary of the installation process and the status of the installed ACCO NET
system is displayed, click “OK”.
After MySQL or Apache database server custom configuration has been verified,
the following statuses may be displayed:
correct verification,
incomplete verification (password to MySQL database in the configuration file is
incorrect or changes made in the configuration file were not saved to database),
incorrect verification (MySQL database server is not running or the configuration file
was created incorrectly),
manual settings required (remote database – see section “Preparing the database
for remote connection”).
SATEL ACCO NET 37
14. The last screen will inform you that the installation process has been completed.
38 ACCO NET SATEL
For security reasons, you cannot log into the Debian operating system remotely as
a root user by default. If you want to have root user's privileges, log in as the user
whose account you created e.g. during installation of the system. Enter the su -l
command followed by the root user password.
Fig. 2. Example of the ACCO NET system in which ACCO Server is installed on one
computer, and the database on the other (the settings are for illustration purpose only).
SATEL ACCO NET 39
7. Update the list of packages in the APT repositories by using the command:
apt update
APT is a package management system used by the Debian operating system.
8. Install the MySQL server by using the command:
apt install mysql-server
9. In the configuration window, enter a password for the root administrator of the MySQL
database and press “OK” to confirm.
SATEL ACCO NET 41
10. Re-enter the password you have just created and press “OK” to confirm.
11. Select the “Use Legacy Authentication Method (Retain MySQL 5.x Compatibility)” option
and press “OK” to confirm.
14. Create the root user with privileges to access the database remotely from a device with
the ACCO Server program installed and to manage other users. Use the following
commands:
CREATE USER 'root'@'192.168.11.55' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.11.55' WITH GRANT OPTION;
GRANT USAGE ON *.* TO 'root'@'192.168.11.55' WITH GRANT OPTION;
FLUSH PRIVILEGES;
This command includes an IP address of a computer on which the ACCO Server
program is installed. The IP address used above is an example (see fig. 2).
In place of ‘password’ enter the password you set for the root administrator.
15. Exit the database console by using the command:
EXIT
16. Allow remote access to the database by editing the configuration file. Enter the command:
nano /etc/mysql/conf.d/acco.cnf
17. Enter the following data:
[mysqld]
bind-address = 0.0.0.0
wait_timeout = 31536000
interactive_timeout = 31536000
event_scheduler = ON
log_bin_trust_function_creators = ON
18. Save and close the file.
19. Restart the program to save the changes made by using the command:
systemctl restart mysqld
6.2.2.2 Testing the remote access to the MySQL database
You can verify the MySQL database remote access settings on the computer / virtual
machine on which the ACCO NET system is to be installed. In order to do so, follow the steps
below:
1. Install the curl program by using the command:
apt install curl
2. Add the MySQL repository to the system by using the command:
FILE=‘curl -s https://dev.mysql.com/downloads/repo/apt/ |grep -o mysql-apt-
config_[.0-9_-]*_all.deb’; curl “http://repo.mysql.com/$FILE” -O && apt install
./$FILE
3. Update the list of packages in the APT system repository by using the command:
apt update
4. Install the MySQL Client program by using the command:
apt install mysql-client
5. Check if you are able to connect to the database remotely by using the command:
mysql -uroot -h192.168.11.80 -p
This command includes an IP address of a remote database. The IP address used
above is an example (see fig. 2).
6. Enter the password for the user with root administrator privileges.
SATEL ACCO NET 43
7. If the MySQL database remote access settings were correctly defined, mysql> will be
displayed.
8. Check if the values were correctly saved to database by using the following commands:
show variables where variable_name like 'bind_address';
show session variables like 'wait_timeout';
show session variables like 'interactive_timeout';
show global variables like 'event_scheduler';
show global variables like '%log_bin_trust_function_creators%';
9. Exit the database console by using the command:
EXIT
6.2.2.3 Installing a remote database
If you have decided to use a remote database in the ACCO NET system, please follow the
instructions below when installing the system:
1. Information about continuation of installation in the remote database mode will be
displayed.
3. Confirm the addition of the accoDb, accoDb_temporary and essential databases selecting
“Yes”.
SATEL ACCO NET 45
4. When the list of ACCO NET system components to be downloaded and installed at this
stage of installation is displayed, click “OK”.
7. Select the IP address of the device on which the ACCO Server is installed, then select
“Confirm”.
SATEL ACCO NET 47
9. Select the IP address of the device (in this case “other”) through which ACCO Server will
connect to the database server, and then select “Confirm”.
48 ACCO NET SATEL
10. Enter the IP address of the device through which ACCO Server will connect to the
database server and then select “Confirm”.
12. Select the IP address of the device (in this case “other”) through which ACCO Soft will
connect to the database server, and then select “Confirm”.
13. Enter the IP address of the device through which ACCO Soft will connect to the database
server, and then select “Confirm”.
14. When the configuration screen of the SSL certificate settings for the connection to the
web server is displayed, proceed to step 7 in the “Installing a local database” section and
follow the system installation procedure as described in the next sections.
50 ACCO NET SATEL
6.3 Installing the ACCO-NT Conf / ACCO Soft / Map Editor programs
You can install the ACCO-NT Conf, ACCO Soft and Map Editor programs by using
ACCO Web application.
All you need to use the ACCO Web application is a web browser installed on your
computer. The application works correctly with updated versions of the following
browsers: Google Chrome, Mozilla Firefox, Internet Explorer and Edge.
Communication with the ACCO-WEB application is secured using the SSL protocol.
A message about untrusted certificate for the page will be displayed in the browser
window until you accept the SSL certificate or put a registered certificate on the
computer on which the ACCO Web application has been installed.
If the application fails to open correctly in the Internet Explorer browser, check that the
address you have entered is on the “Websites you've added to Compatibility View” list.
To do this, open the “Tools” menu and select “Compatibility View Settings”. If the
address you have entered in the browser is included in the list of websites for which
compatibility view is enabled in the browser, remove the address. Do not enable the
following options: “Display intranet sites in Compatibility View” and “Use Microsoft
compatibility lists”. Click on the “Close” button.
1. Start the web browser. Enter the address: https://[address of the device on which the
ACCO Server is installed] and log into the ACCO Web application as the Administrator
(default login: “admin”; default password: “admin”).
2. Click on the “Programs” command in the menu on the left side of the screen. Links to the
installation files of ACCO-NT Conf, ACCO Soft and Map Editor programs will be
displayed.
3. Click on the selected link to download, and then install the required program.
6.3.1 Using the Map Editor program
Communication between the program and the system takes place remotely via Ethernet.
It is recommended that you update the Map Editor program to the latest available
version after each update of the ACCO NET system.
Each time before starting the system update procedure, make sure that this manual
applies to the version to which you want to update the system.
Version 1.8 of the ACCO NET system is only compatible with the Debian 10 (“buster”)
operating system for the 64-bit PC (amd54) architecture. You can run the ACCO NET
system update on a computer / virtual machine where the Debian operating system is
installed in version specified above. If your device runs on a different version of
Debian, you must migrate the system to a new device.
Before updating the system, make sure to provide sufficient disk space amounting to
at least 8 times the size of the databases.
Before updating the ACCO NET system, the owner or the administrator of the system
is required to make:
backup copies of the databases,
snapshot of the virtual machine on which the ACCO NET system and / or the
databases are installed.
This will ensure that all data can be retrieved from the backup copies. SATEL will not
be held responsible for any loss of data or any costs of retrieving damaged or lost data
by the owner / administrator of the system.
For security reasons, you cannot log into the Debian operating system remotely as
a root user by default. If you want to have root user's privileges, log in as the user
whose account you created e.g. during installation of the system. Enter the su -l
command followed by the root user password.
8.1 Updating the ACCO NET system from version 1.7 to 1.8
1. In the console window, log in as the root administrator.
If you are logged into the console as another user, enter the su -l command and then
enter the root administrator password.
2. Update the list of packages in the APT system repository by using the command:
apt update
APT is a package management system used by the Debian operating system.
3. Run the installation package by using the command:
./acco-installer-online.sh -u
4. Follow the instructions that will be provided on the following screens.
8.2 Updating the ACCO NET system when migration to new device is
required
If the version of the Debian operating system is incorrect, the process of installation
and then updating the software must be carried out on a computer / virtual machine on
which no system is currently installed. Both computers / virtual machines – one with
the existing version of the system and one with no operating system – must have
access to the Internet. Furthermore, they must be connected to the same network so
that it is possible to access them remotely via SSH in the PuTTY program.
SATEL ACCO NET 55
There are two ways in which you can update the system by using the installation script: with
database migration performed manually or automatically.
Below is an example of how to update the ACCO NET system software from version 1.6 to
version 1.8.
8.2.1 Updating the system with database migration performed manually
1. Install the Debian operating system on the new device (see “Installing the Debian
operating system”).
During the system installation procedure, add a user (e.g. “rjones”) and create
a password for it to log into the system.
2. After the system is restarted, the console window will open. Install the ACCO NET in
version 1.8 by using the console (see „Installing the server environment and ACCO NET
system”).
3. Having installed the new versions of the Debian and ACCO NET systems, delete the new
databases created during the installation (see: “Deleting databases”).
4. On the device where the ACCO NET system was installed, export the previously used
databases to SQL files (see “Exporting databases”).
5. Copy the exported databases to the new system (see “Copying databases from the old
system to a new one”).
6. Import the databases copied from the existing system to the new system (see “Importing
databases”).
7. Update the databases in the new system (see „Updating databases”).
If the system installation was carried out in a standard way (the database was installed
locally), the root password of the MySQL database was saved in the configuration file
during the installation procedure. You can check the password by using the command:
cat /root/.my.cnf
Do not use this command if you are updating the ACCO NET system from version 1.4
to 1.8.
8. Exit the database by using the command:
EXIT
8.2.1.2 Exporting databases
When transferring the ACCO NET system, the current databases must be exported to
SQL files:
map – essential,
primary – accoDb,
secondary – accoDb_temporary.
In the next step, the databases that have been exported will be copied and then imported to
the system.
In the console window, on the computer or virtual machine where the databases are located:
1. Log in as the root administrator.
2. Stop the ACCO Server program by using the command:
systemctl stop acco-server
3. Stop the WildFly program by using the command:
systemctl stop wildfly
4. Go to the directory to which you want to export the SQL files by using the command:
cd /home/asmith
The following random names are used in the command:
asmith – name of user of the existing system;
/home/asmith – name of the “asmith” user's home directory. This directory is created
during the procedure of adding a user to the system.
5. Export the map database named essential to the SQL file by using the command:
mysqldump --databases essential --routines > essential.sql
Do not use this command if you are updating the ACCO NET system from version 1.4
to 1.8.
6. Export the primary database named accoDb to the SQL file by using the command:
mysqldump --databases accoDb --routines > accoDb.sql
7. Export the secondary database named accoDb_temporary to the SQL file by using the
command:
mysqldump --databases accoDb_temporary --routines > accoDb_temporary.sql
8. Check whether the database files have been exported to the required directory, whether
the export date and the size of the exported files are correct by using the command:
ls -lh /home/asmith/*.sql
Three files will be saved in the /home/asmith directory:
essential.sql – map database file exported;
accoDb.sql – primary database file exported;
accoDb_temporary.sql – secondary database file exported.
SATEL ACCO NET 57
6. In order to make the secondary database compatible with the current MySQL program
version, use the command:
sed -i -e s/,NO_AUTO_CREATE_USER//g accoDb_temporary.sql
7. Log in to the database by using the command:
mysql
8. Import the map database file to the new system by using the command:
SOURCE essential.sql
9. Import the primary database file to the new system by using the command:
SOURCE accoDb.sql
10. Import the secondary database file to the new system by using the command:
SOURCE accoDb_temporary.sql
11. Grant the accoweb user (accoweb – name of the user who had access to the previous
database) access to the essential database by using the command:
GRANT ALL ON essential.* TO 'accoweb'@'%';
12. Grant the accoweb user access to the accoDb database by using the command:
GRANT ALL ON accoDb.* TO 'accoweb'@'%';
13. Grant the accoweb user access to the accoDb_temporary database by using the
command:
GRANT ALL ON accoDb_temporary.* TO 'accoweb'@'%';
14. If a remote database is used in the system, grant the root administrator privileges to
manage other users by entering the command:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.11.55' WITH GRANT OPTION;
This command includes sample data:
192.168.11.55 – IP address of the device on which the new system was installed.
15. Refresh the settings of edited privileges by using the command:
FLUSH PRIVILEGES;
16. Exit the database console by using the command:
EXIT
17. Run the WildFly program by using the command:
systemctl start wildfly
18. Run the ACCO Server program by using the command:
systemctl start acco-server
8.2.1.5 Updating databases
In the console window, on a computer or virtual machine with new versions of Debian and
ACCO NET installed:
1. Log in as the root administrator.
If you are logged into the console as another user, enter the su -l command and then
enter the root administrator password.
2. Run the installation package by using the command:
./acco-installer-online.sh -m
SATEL ACCO NET 59
3. Use the arrow keys to select the installation language. Then select “Yes” or press Y.
60 ACCO NET SATEL
4. Additional information about which keys to use when updating databases will be
displayed. Click „OK” to go to the next window.
5. Select the “ACCO NET databases upgrade” migration mode and then select “Confirm”.
SATEL ACCO NET 61
6. You will be warned that the ACCO NET system programs will be stopped while the
databases update is in progress. Select “Yes” to continue the process.
7. You will be informed that the databases will be updated. Select “Yes” to continue.
Updating the databases can take several hours, depending on the size of the updated
files.
62 ACCO NET SATEL
8. You will be asked if you want to restart the ACCO NET system. Select “Yes”.
9. When the databases update is completed, you will be asked if you want to check the
ACCO NET system operation. Select “Yes”.
SATEL ACCO NET 63
10. When the ACCO NET system status is displayed, click “OK”.
11. The last screen will inform you that the databases update has been completed.
17. Update firmware for the devices in the system: the ACCO-NT control panel and all of the
access control modules.
8.2.2 Updating the system with database migration performed automatically
1. Install the Debian operating system on the new device (see “Installing the Debian
operating system”).
During the system installation procedure, add a user (e.g. “rjones”) and create
a password for it to log into the system.
2. After the system is restarted, the console window will open. Install the ACCO NET in
version 1.8 by using the console (see „Installing the server environment and ACCO NET
system”).
3. On the device where the ACCO NET system was installed, export the previously used
databases to SQL files (see “Exporting databases”).
4. Import the databases from the previous system to the new system, and then update the
databases on the device with the new system installed (see “Importing and updating
databases”).
8.2.2.1 Exporting databases
Use the installation script to export the current databases to SQL files:
map – essential,
primary – accoDb,
secondary – accoDb_temporary.
In the console window, on a computer or virtual machine on which the databases are stored:
1. Log in as the root administrator.
2. Enter the sequence of commands:
rm acco-installer-online.sh ;
wget https://updates.satel.pl/acco_net_latest/installer/acco-installer-online.sh ;
chmod 755 acco-installer-online.sh ; ./acco-installer-online.sh -m
SATEL ACCO NET 65
4. Use the arrow keys to select the installation language. Then select “Yes” or press Y.
66 ACCO NET SATEL
5. Additional information about which keys to use when exporting databases will be
displayed. Click “OK” to go to the next window.
6. Select the “Exporting the databases from the current system” migration mode and then
select “Confirm”.
SATEL ACCO NET 67
7. You will be warned that the ACCO NET system programs will be stopped while the
databases export is in progress. Select “Yes” to continue the process.
8. Information will be displayed about the size of the exported databases and the name of
the folder to which the databases have been exported. Check if the exported databases
are correct in size. If the sizes are correct, select “OK”. If not, select “Interrupt” and export
the databases manually (see section “Exporting databases”).
68 ACCO NET SATEL
9. You will be asked if you want to copy the SQL files containing the exported databases.
Select “Yes”.
10. Configure the following settings in order to be able to copy databases to the new system:
– Host – IP address of the device on which the new system is installed;
– Port – port number for SSH communication (by default: 22);
– Login – login for the user added during system installation (for example: rjones);
– Destination directory – name of the “rjones” user home directory (this directory is
created when the user is added to the system; database files will be copied to this
directory);
and select “Confirm”.
SATEL ACCO NET 69
12. Information will be displayed about the name of the folder to which the databases were
copied. Click “OK”.
70 ACCO NET SATEL
13. You will be asked if you want to restart the ACCO NET system. Select “Yes”.
14. When the database export is completed, information about the database import will be
displayed. Click “OK”.
SATEL ACCO NET 71
3. Use the arrow keys to select the installation language. Then select “Yes” or press Y.
72 ACCO NET SATEL
4. Additional information about which keys to use when importing databases will be
displayed. Click “OK” to go to the next window.
5. Select the “Importing the databases to the new system” migration mode and then select
“Confirm”.
SATEL ACCO NET 73
6. You will be warned that the following ACCO NET system programs will be stopped while
the databases import is in progress. Select “Yes” to continue the process.
8. From the files found automatically by the system, select the one which contains the
exported databases. Then select “Confirm”.
SATEL ACCO NET 75
9. You will be asked if you want to import the selected file. Select “Yes”.
11. If the current databases were used remotely on another device, go to section “Importing
and updating remote databases”.
12. Specify if you want to use the database names from the new system (option “Copy
database names from configuration file”) or the old system (option “Copy database names
from .sql files”). Then select “Confirm”.
13. You will be informed that the databases of the new ACCO NET system will be dropped.
Click “OK” to continue.
SATEL ACCO NET 77
14. A sequence of windows will be displayed with information about the progress of the
database import. Importing the databases can take several hours, depending on the size
of the imported files.
15. When the database import is completed, you will be asked if you want to start the
database update. Select “Yes”.
16. You will be informed that the databases will be updated. Select “Yes”. Updating the
databases can take several hours, depending on the size of the updated files.
78 ACCO NET SATEL
17. You will be asked if you want to restart the ACCO NET system. Select “Yes”.
18. You will be asked if you want to check the ACCO NET system operation. Select “Yes”.
SATEL ACCO NET 79
19. When the ACCO NET system status is displayed, click “OK”.
20. The last screen will inform you that the database import and update has been completed.
80 ACCO NET SATEL
3. Specify if you want to use the database names from the new system (option “Copy
database names from configuration file”) or the old system (option “Copy database names
from .sql files”). Then select “Confirm”.
82 ACCO NET SATEL
4. You will be informed that the databases of the new ACCO NET system will be dropped.
Click “OK” to continue.
6. A sequence of windows will be displayed with information about the progress of the
database import.
7. When the database import is completed, you will be asked if you want to start the
database update. Select “Yes”.
8. You will be informed that the databases will be updated. Select “Yes”.
84 ACCO NET SATEL
9. You will be asked if you want to restart the ACCO NET system. Select “Yes”.
10. You will be asked if you want to check the ACCO NET system operation. Select “Yes”.
SATEL ACCO NET 85
11. When the ACCO NET system status is displayed, click “OK”.
12. The last screen will inform you that the database import and update has been completed.
86 ACCO NET SATEL