NixOS Installation Guide/zh: Difference between revisions
No edit summary |
Created page with "* o (dos硬盘标签) * n new * p primary (4 primary in total) * 1 (分区编号[1/4]) * 2048 first sector (alignment for performance) * +500M last sector (引导扇区的大小) * rm signature (Y), if ex. => warning of overwriting existing system, could use wipefs * n * p * 2 * default (填满分区) * default (填满分区) * w (写入)" Tags: Mobile edit Mobile web edit |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 45: | Line 45: | ||
==== 在macOS上 ==== | ==== 在macOS上 ==== | ||
# 使用<code>diskutil list</code>找到正确的设备, 比如说<code><i>diskX</i></code>. | |||
# | # 使用<code>diskutil unmountDisk <i>diskX</i></code>取消挂载. | ||
# | # 使用<code>sudo dd if=<b>path_to_nixos.iso</b> of=/dev/<i>diskX</i></code>进行刻录 | ||
# | |||
{{tip|使用<code>rdiskX</code>而不是<code>diskX</code>可以大幅改变速度. 你可以在另一个终端里使用<code>iostat 2</code>检查写入速度.}} | |||
{{tip| | |||
<span id="From_Windows"></span> | <span id="From_Windows"></span> | ||
==== 在Windows上==== | ==== 在Windows上==== | ||
# 下载USBwriter. | |||
# | # 启动USBwriter. | ||
# | # 选择下载的ISO文件作为'Source' | ||
# | # 选择USB驱动器作为'Target' | ||
# | # 点击'Write' | ||
# | # 当USBWriter完成写入操作后, 安全拔出USB驱动器 | ||
# | |||
<span id="Alternative_installation_media_instructions"></span> | <span id="Alternative_installation_media_instructions"></span> | ||
| Line 115: | Line 109: | ||
=== 无线网络 === | === 无线网络 === | ||
Network Manager安装在图形界面ISO文件中, 意味着可以在命令行中使用<code>nmtui</code>来连接到网络. | Network Manager安装在图形界面ISO文件中, 这意味着可以在命令行中使用<code>nmtui</code>来连接到网络. | ||
使用左上方的"Applications(应用)"标签页或者在底部的启动栏, 打开一个终端应用, 在那里启动 <code>nmtui</code>. 这可以让你'activate(激活)'一个(无线)连接 - 你那里的SSID(无线网络名称) | 使用左上方的"Applications(应用)"标签页或者在底部的启动栏, 打开一个终端应用, 在那里启动 <code>nmtui</code>. 这可以让你'activate(激活)'一个(无线)连接 - 你应该可以在列表里看到你那里的SSID(无线网络名称), 除此之外你还可以添加一个新的连接. 当无线连接处于活动状态, 并且你已经测试过了时, 一开始就启动的安装程序很可能还没有检测到新的连接. 关掉安装程序, 再重新从屏幕底部的启动栏打开它. 这时它应该会检测到新的网络连接而继续. | ||
在最小化安装的ISO文件上(或者你更熟悉 <code>wpa_supplicant</code> ), 你也可以运行 <code>wpa_passphrase ESSID | sudo tee /etc/wpa_supplicant.conf</code>, 然后输入你的密码, 再运行<code>systemctl restart wpa_supplicant</code>. | 在最小化安装的ISO文件上(或者你更熟悉 <code>wpa_supplicant</code> ), 你也可以运行 <code>wpa_passphrase ESSID | sudo tee /etc/wpa_supplicant.conf</code>, 然后输入你的密码, 再运行<code>systemctl restart wpa_supplicant</code>. | ||
| Line 129: | Line 123: | ||
=== DOS === | === DOS === | ||
* o (dos硬盘标签) | |||
* o (dos | |||
* n new | * n new | ||
* p primary (4 primary in total) | * p primary (4 primary in total) | ||
* 1 ( | * 1 (分区编号[1/4]) | ||
* 2048 first sector (alignment for performance) | * 2048 first sector (alignment for performance) | ||
* +500M last sector ( | * +500M last sector (引导扇区的大小) | ||
* rm signature (Y), if ex. => warning of overwriting existing system, could use wipefs | * rm signature (Y), if ex. => warning of overwriting existing system, could use wipefs | ||
* n | * n | ||
* p | * p | ||
* 2 | * 2 | ||
* default ( | * default (填满分区) | ||
* default ( | * default (填满分区) | ||
* w ( | * w (写入) | ||
=== UEFI === | === UEFI === | ||