FAQ #
- How to configure Python environment variables?
When installing Python, you need to configure Python’s bin directory into the PATH environment variable. This allows you to install the SphereEx-Boot tool using the pip in the installed Python.
For example: export PATH=/usr/local/python3/bin:$PATH
is appended to end of ~/.bashrc
file. Executing source ~/.bashrc
validates the environment variable.
- How to view dependent software versions?
- Run the command
sshpass -V
to view the sshpass version.
[root@centos71 ~]# sshpass -V
sshpass 1.06
- Run the command
python -V
to view the Python version.
[root@centos71 ~]# python -V
Python 3.6.8
- Run the command
pip --version
to view the pip version.
[root@centos71 ~]# pip --version
pip 21.3.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
- If the pip version is outdated, you can use the command
pip install --upgrade pip
to upgrade pip. If the upgrade is unsuccessful, please reinstall pip.
- How to install pip package?
- Python3 environment install pip
wget
https://bootstrap.pypa.io/get-pip.py
python get-pip.py
or python3 get-pip.py
- Python2 environment install pip
wget
https://bootstrap.pypa.io/pip/2.7/get-pip.py
python get-pip.py
- How to configure SSH mutual trust?
Set secret key for passwordless login (if you have set secret key passwordless login, you can skip the following steps)
a.Generate secret key (If id_rsa.pub saved in ~/.ssh/ directory, you can skip this step.)
$ ssh-keygen -t rsa
b.Set intercommunications using the command ssh-copy-id -i ~/.ssh/id_rsa.pub <user>@<host-ip>
.
$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@127.0.0.1