文檔:一、x86環境下的openeuler安裝以及換yum源.note
主要是我對於openeuler系統的一個初次嘗試,編譯好系統,我發現openEuler真的很良心,里面連python爬蟲用的request依賴庫里面都是現成的。期待國產Linux越來越好。
換源在不同的系統環境所換的華為雲Base也不一樣,詳見鏈接:
https://support.huaweicloud.com/csg_faq/csg_04_1209.html
兩種安裝openeuler的方法
- 1-通過VMware 安裝
- 2-通過Vitural Box安裝
1方法上面已做出詳盡介紹http://note.youdao.com/noteshare?id=4dc7252c28d21050ca9a0f6cc6b13509&sub=8E334DBD682E4B0386046EF5DCA247B4
2方法如下:https://openeuler.org/zh/blog/2020/03/27/2020-03-27-VirtualBox.html
兩者優缺點對比:
- 1更適合初學者使用,因為安裝比較直觀,只需按照引導就可,但是會出現一個問題,無法安裝VMware Tools 這會使你無法直接通過復制粘貼去敲命令行,以及通過FTP直接從win平台傳輸文件。具體解決辦法看這個文檔:
VM Tools的安裝.note
鏈接:http://note.youdao.com/noteshare?id=c205366e3f467493885eef922134c910&sub=E8E16E9DE3EE48B9B2212C90CB0E4D5F
- 2方法的優點是界面生成十分簡單,滿足一部分人極簡的需要。但是他貌似不能生成快照,我也在進一步研究。其次就是安裝的設置參數相比於1來說比較繁瑣
嘗試使用openeuler的repo的aarch64進行換源
-
優點 :首先華為雲base源屬於一個比較成熟的生態,應該不能包含openeuler所有的source,openeuler屬於開發階段,迭代快、開發量大、更新快,建議dev使用openeuler的everything
-
教程: 視頻教學
everything換源
- cd /etc/yum/repos.d
- vim openEuler_x86_64.repo
Copyright (c) [2019] Huawei Technologies Co., Ltd.
generic-repos is licensed under the Mulan PSL v1.
You can use this software according to the terms and conditions of the Mulan PSL v1.
You may obtain a copy of Mulan PSL v1 at:
http://license.coscl.org.cn/MulanPSL
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
PURPOSE.
See the Mulan PSL v1 for more details.
[everything]
name = osrepo
baseurl = https://repo.openeuler.org/openEuler-20.03-LTS/everything/x86_64/
enabled = 1
gpgcheck = 1
gpgkey = https://repo.openeuler.org/openEuler-20.03-LTS/everything/x86_64/RPM-GPG-KEY-openEuler
priority = 2
[update]
name = update
baseurl = https://repo.openeuler.org/openEuler-20.03-LTS/update/x86_64/
enabled = 1
gpgcheck = 1
gpgkey = https://repo.openeuler.org/openEuler-20.03-LTS/update/x86_64/RPM-GPG-KEY-openEuler
priority = 2
yum update 的時候我們可以看到我們的升級包都是rpm的格式,這也就是為什么我們需要掌握並能將Tensorflow打包成rpm的原因