下载源码:
sudo -i
apt install curl
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo
chmod a+x /usr/local/bin/repo
cd /usr/bin && sudo ln -s /usr/bin/python3 python
sudo apt install python3-pip
pip3 config set global.trusted-host repo.huaweicloud.com
pip3 config set global.index-url https://repo.huaweicloud.com/repository/pypi/simple
pip3 config set global.timeout 120
sudo npm install -g @ohos/hpm-cli
sudo chmod a+x tool.run
sudo apt-get install python3-venv
sudo cp /home/mo/.local/share/deveco-device-tool/99-jtag.rules /etc/udev/rules.d/99-jtag.rules
sudo cp /home/mo/.local/share/deveco-device-tool/99-platformio-udev.rules /etc/udev/rules.d/99-platformio-udev.rules
sudo udevadm control -R
sudo apt install authbind
sudo touch /etc/authbind/byport/69
sudo chmod 777 /etc/authbind/byport/69
apt install git
cd /usr/bin && sudo ln -s /usr/bin/python3 python
repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
repo sync -c