AI-GUARD Installation
- Decompress the Ascend-mindxdl-aiguard_{version}_linux-{arch}.zip package obtained in Component Preparation to obtain the aiguard-{version}-py3-none-linux_{arch}.whl file.
{version} indicates the package version and {arch} indicates the CPU architecture. Obtain the software package as required.
- Log in to the running environment of the encryption and decryption tool as the root user and modify the umask 0022 file.
- Upload the software package obtained in Component Preparation to a secure private directory (for example, ~/software) in the environment.
- Go to the directory and decompress the software package:
unzip Ascend-mindxdl-aiguard_{version}_linux-{arch}.zip
- Decompress the package to obtain the WHL installation package aiguard-{version}-py3-none-linux_{arch}.whl, and run the following command to install the package. Before the installation, ensure that the network is available, install logs will not be dumped, and there is enough drive space.
pip3 install aiguard-{version}-py3-none-linux_{arch}.whl --log ~/.aiguard/log/install.log
By default, Python 3 is installed in the dist-packages or site-packages directory under the installation path. The aiguard directory is generated, which contains all Python APIs, sample code, and modification description of training scripts.
- Modify umask 077.
- Change the directory permission:
chmod 700 ~/.aiguard chmod 700 ~/.aiguard/log chmod 600 ~/.aiguard/log/*.log
- Change the permission on the home directory. For security purposes, before running the aiguard command as a common user, run the following command to change the permission on the home directory to allow only the current common user to read and write.
chmod 700 ~
Parent topic: Installation and Deployment