- WSL2安裝
(1)?舊版 WSL 的手動安裝步驟 | Microsoft Learn
(2)?https://www.cnblogs.com/37yan/p/16169564.html
(3)?在win10中安裝linux--使用WSL_wsl.conf-CSDN博客
- 安裝Ubuntu 18.04 on Windows
安裝方法有2種,
- 一種是通過Microsoft Store安裝,參見,如果沒有安裝Store或者不想通過Store,推薦第2種方式。Ubuntu 18.04 on Windows - Microsoft Store 中的官方應用
- 另一種可以直接下載Ubuntu_1804.2019.522.0_x64.appx,用7z解壓縮后直接在Powershell下面執行ubuntu1804.exe,第一次執行會提示設定Ubuntu系統的用戶名和密碼。
- 新建并配置/etc/wsl.conf,解決訪問權限的問題
# 新建/etc/wsl.conf文件,輸入以下內容
[automount]
root = /
options = "metadata"
- WSL GitHub SSH Key
進入到新安裝的Ubuntu后,需要把連接GitHub所需要的SSH KEY拷貝到“/home/username/.ssh”下面,驗證是否成功,通過指令
ssh -T git@github.com
- Github連接碰到的問題及解決
(1)The TMPDIR Error
修改文件在:“openbmc\poky\meta\conf\sanity.conf”
The TMPDIR: ../build/tmp can‘t be located on nfs.解決_can't be located on nfs-CSDN博客
(2)UNPROTECTED PRIVATE KEY FILE
ssh WARNING: UNPROTECTED PRIVATE KEY FILE!-CSDN博客
(3)通過Hosts緩解Github訪問慢的問題
通過工具(如:“github.com”A記錄/cname檢測結果--Dns查詢|dns查詢--站長工具)找到可以連接github的DNS,然后添加到"C:\Windows\System32\drivers\etc\hosts"文件,例如:
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost20.205.243.166 github.com
還有其他專門的工具,如FastGithub等。
- OpenBMC
屏蔽掉目前不可用的Driver的方法:
1) openbmc\meta-mytest\meta-common\recipes-mytest\packagegroups\packagegroup-mytest-apps.bb 刪除指定的Driver
2) openbmc\meta-mytest\meta-common\recipes-mytest\Driver,相應的Driver Folder拿掉.