【慢学鸿蒙OS2.0】 第一层 本地ubuntu设置

下载源码:

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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值