随笔 - 64  文章 - 0 评论 - 4 阅读 - 6063
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

Windows10/11中VirtualBox安装CentOS Stream 8

二.虚拟机内安装

0.安装选择
Test this media & Install CentOS Stream 8-stream

一).系统设置(SYSTEM)

1.磁盘分区 Installation Destination
挂载点 磁盘容量 文件系统类型
/ 20GiB ext4
/boot 2GiB xfs
/home 26GiB ext4
swap 2GiB swap
2.内核崩溃转存机制(KDUMP)

内存崩溃转存机制是当计算机内核由于某种原因崩溃时,该机制将从系统中捕获崩溃信息。这些信息对于分析系统崩溃原因将有巨大的帮助。请注意:KDUMP确实需要保留一部分内存,这些内存将默认只有在上述情况下才能使用。

kdump is a kernel crash dumping mechanism.In the event of a system crash, kdump will capture information from your system that can be invaluable in determining the cause of the crash. Note that kdump does require reserving a portion of system memory that will be unavailable for other uses.

3.网络和主机 Network & Host Name
OFF -> ON
4.安全策略 Security Policy

No centent found. Please enter data stream content or archieve URL below.

二).软件安装(SOFTWARE)

1.安装源 Installation Source
http://mirrors.ustc.edu.cn/centos/8-stream/BaseOS/x86_64/os
2.软件选择 Software Selection
// 最小安装
Minimal Install

三).本地化(LOCALIZATION)

1.键盘布局 Keyboard layout
Chinese(Hanyu Pinyin(altgr))
2.语言支持 Language Support
中文 简体中文(中国)

3.时间和日期 Time & Date

// 亚洲 上海
Asia Shanghai 

四).用户设置

1.Root密码 (Root Password)
输入root用户密码
2.创建用户 (User Creation)
输入普通用户名
输入普通密码

五).安装后的配置

1.给普通用户加上sudo权限
// 以root用户登录(仅此一次)
root 
// 给Roger用户加上sudo权限
usermod -aG wheel roger
// 切换用户
su roger
2.更新软件安装源

CentOS Stream换国内DNF源
sed使用命令详解

//将软件安装源换为中科大源
sudo sed -i 's/^mirrorlist/#mirrorlist/g;
s|^#baseurl=http://mirror.centos.org/$contentdir
|baseurl=http://mirrors.ustc.edu.cn/centos|g'
-i.bak
/etc/yum.repos.d/CentOS-Stream-*.repo

// 清除硬盘中的缓存
sudo yum clean all
// 重新加载
sudo yum makecache
posted on   RainbowSea26  阅读(270)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· 2 本地部署DeepSeek模型构建本地知识库+联网搜索详细步骤
点击右上角即可分享
微信分享提示