Alpha - Archinstoo
什么是 archinstoo
archlinux 的操作系统安装程序(及工具)。
[!TIP] 在 ISO 中,您默认是 root。 使用
sudo或等效命令,当从现有系统时。
设置 / 使用
0. Keymap
在 ISO 上,你可以 loadkeys <somekblayout>
您也可以查看可用的选项:
localectl list-keymaps 否则默认为 us。
1. 获取互联网访问
[!NOTE] 以太网电缆即插即用。
Test: ping -c 3 google.com if this returns ttl=109 time=10.1 ms 3 times...
然后你可以跳过下面的 wifi 设置
对于 Wifi:
# check devices
$ ip link
$ iwctl station wlan0 connect "SSID"
# where SSID is the name of your wifi
# where wlan0 is your device name
# case sensitive and will prompt for password
$ nmcli dev wifi connect "SSID" -a
# alternative
2. 准备
如果是在 ISO 上而非实时系统
pacman-key --init
pacman -Syy git
3. 获取源代码
git clone https://github.com/h8d13/archinstoo
4. 运行代码
cd archinstoo/installer
python -m archinstoo [args] # try -h or --help
# some options are behind --advanced
5. 享受你的新系统
制作你的披萨。Una pizza con funghi e prosciutto.
如果你刚开始使用 Arch,请参阅 Newb-Corner。
[!TIP] 或者: 在 repo root 处有包装器/辅助工具(执行与步骤 4 类似的操作):
./RUN # regular
./DEV # advanced
修改/扩展
你可以按照
archinstoo/default_profiles/中的约定创建任意配置文件,这些文件将被自动导入。 或者直接修改现有的配置文件。也可以在此处查看 示例
你可以轻松地为 archinstoo 创建插件 --script list,scripts/ 内的任何内容也会被导入。
Available options:
[*] requires root
count
mirror
size
format [*]
guided [*] < DEFAULT
live [*]
minimal [*]
packages [*]
rescue [*]
项目的完整结构可通过 TREE 查阅
你可以在 installer.py 及相关 defs 中进行核心更改(在此,搜索/查找/替换是你的好帮手)。
man 页面也可在 man -l installer/docs/archinstoo.1 获取
用例
参见 Headless 以了解用于运行 minecraft/运行 tailscale 节点的示例服务器安装。
参见 Multi-Boot 以了解启动多个操作系统的示例。
参见 Out-of-Tree 以了解在不支持的硬件上安装的示例。(旧款 nVIDIA、Realtek、...)
参见 Security 以了解加固安装/最佳实践。
更高级
参见 Build-ISOs 以创建你自己的安装介质。
参见 Distros 以了解从不同发行版进行安装。
参见 ARM-Support 以了解在 Raspi 5-b 上安装的示例。
参见 Cachy-Kernels 以了解安装后切换到他们的内核。
测试
Host-to-target: 测试(不使用 ISOs)在此你需要更多 dependencies。
参见历史/最新更改 Changelog
使用 git clone -b <branch> <url> 测试特定修复的过程是相同的。通常是在 实际/合适的硬件 上复现然后测试。
在此方面的任何帮助都深表感谢,因为测试/挖掘与编写代码花费的时间一样长。准确的报告/PR 将得到及时的处理: PRs、Issues 和 Contributing
Philosophy: 简化,无向后兼容,快速推进(即使这意味着破坏和修复)。 More...
构建源
[!NOTE] 对于 DEV 顶层
PKGBUILD拥有诸如archiso、pacman-contrib和nvchecker等额外工具。 对于 non-dev,参见installer/PKGBUILD使用 git 中该仓库的非顶层部分。
但我们建议直接从最新的 git master 使用。因为修复往往具有时间紧迫性,且 arch 系统具有“移动目标”的特性。
参见 archinstall,并感谢众多原始贡献者。以及 arch-wiki。
参见 mirror 获取该仓库的副本,该副本未托管在 GitHub 上。