OpenHarmony环境搭建

OpenHarmony环境搭建

默认windows和VMware虚拟机已经安装好

一、安装 ubuntu

  1. 可以选择安装的 址

官方下载地址(不推荐)

https://www.ubuntu.com/download

中科大源

http://mirrors.ustc.edu.cn/ubuntu-releases/20.04/

南京大学

http://mirrors.nju.edu.cn/ubuntu-releases/20.04/

上海交通大学

http://ftp.sjtu.edu.cn/ubuntu-cd/20.04/

清华大学

https://mirror.tuna.tsinghua.edu.cn/ubuntu-releases/20.04/

阿里云开源镜像站

http://mirrors.aliyun.com/ubuntu-releases/20.04/

浙江大学

http://mirrors.zju.edu.cn/ubuntu-releases/20.04/

不知名镜像 站

http://mirror.pnl.gov/releases/20.04/

各个版本下载 址:

http://mirrors.melbourne.co.uk/ubuntu-releases/

2.选择清华镜像下载ubuntu20镜像包

3.新建虚拟机,主要配置镜像包的目录,账号,安装路径,配置虚拟机的参数

4.安装虚拟机

https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/get-code/sourcecode-acquire.md#https://gitee.com/help/articles/4191

二.注册SSH公钥

https://gitee.com/help/articles/4191#article-header0

生成公钥

ssh-keygen -t ed25519 -C “linyiy1219@126.com”

配置公钥

三.安装git客户端和git lfs

安装git客户端

sudo apt install git-all

安装curl

sudo apt-get install curl

安装git lfs

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.python.sh | bash

sudo apt-get install git-lfs

配置git

git config –global user.name “yourname”

git config –global user.email “your-email-address”

git config –global credential.helper store

例如

git config –global user.name “linyiyu”

git config –global user.email “linyiyu1219@126.com”

git config –global credential.helper store

四.安装repo

curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo #如果没有权限,可下载至其他目录,并将其配置到环境变量中chmod a+x /usr/local/bin/repopip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests

五.安装pip3

sudo apt install python3-pip

六.安装python

七、下载代码

ubuntu重启后

声明:本站部分文章内容及图片转载于互联 、内容不代表本站观点,如有内容涉及侵权,请您立即联系本站处理,非常感谢!

(0)
上一篇 2022年3月12日
下一篇 2022年3月12日

相关推荐