Installation User Preparation

If the Ascend-CANN-Toolkit has been installed, install MindStudio IDE as the Ascend-CANN-Toolkit installation user.

If the Ascend-CANN-Toolkit has not been installed, perform the following operations to create an installation user. For details, see "Installing the Development Environment" in the CANN Software Installation Guide.

Creating an Installation User

You can perform the installation as the root user or a non-root user.

  • If the root user is used for installation, directly go to Dependency Installation.
  • To install MindStudio as an existing non-root user, ensure that the user has the read, write, and execute permissions on the $HOME directory.
  • To install MindStudio as a new non-root user, perform the following operations as the root user to create the non-root user:
    1. Create a user group and an installation user, and set the $HOME directory for the user.
      usergroup indicates the user group and username indicates the user name.
      groupadd usergroup     
      useradd -g usergroup -d /home/username -m username -s /bin/bash

      Take the HwHiAiUser group as an example. Run the following commands to create a software package installation user and add it to the HwHiAiUser group:

      groupadd HwHiAiUser
      useradd -g HwHiAiUser -d /home/username -m username -s /bin/bash
    2. Run the following command to set the password for the non-root user:
      passwd username