Setting up environment¶
Configured environment is needed for correct installing and setting of modules. Follow below points for configuring:
Packages installing:
# Debian: apt-get install -y python3-pip python3-dev gcc
To install packages on Astra Linux (Smolensk) run the following:
sudo apt-get install -y python3-pip python3-dev gettext python3-pbr python3-setuptools crudini
Setting environment variables:
export PIP_INDEX_URL=http://pypi.accentos.ru/simple/ export PIP_TRUSTED_HOST=pypi.accentos.ru
For AccentOS for Astra Linux (Smolensk), connect the repository provided to you with AccentOS packages.
License installation:
Place provided
license
file to/etc/aos
folder.Packages installing:
pip3 install python-subunit pip3 install packaging pip3 install requestsexceptions pip3 install sqlalchemy-migrate pip3 install jsonpath-rw-ext
AccentOS for Astra Linux (Smolensk) does not require installation of packages.
Services restarting:
# Debian, Astra Linux: systemctl restart nova-api.service systemctl restart apache2
Assigning a database password for the root user:
mysqladmin -u root password 123456
Important
It is not allowed to use non ASCII characters in logins/passwords for the database.
You can start installing modules after environment setting. We recommend the following installation order for modules when installing without using the Autosetup module:
Note
Also it is needed installed and configured Redis for modules to work correctly. You can get acquainted with description of installation and configuration in appropriate section of documentation.
Absence of access to internet¶
You need do next steps in case of installing modules to server without access to internet:
Download modules and their dependencies on server with access to internet (prerequisite set up environment variables):
mkdir packages pip3 download dashboard monitor cloud-manager scheduler rs-server dashboard-theme pip -d packages
Copy the
packages
directory to the server.
Important
On a server without Internet access, it is necessary to ensure the presence of the packages listed in the file: system_packages.txt
.