Do you want the X Windows System to be started by xenodm(1)? [no] yes
打开 xenodm 以运行 X
Setup a user? (enter a lower-case loginname, or 'no') [no] ykla
设置用户名。
Full user name for ykla?
用户全名,可随意输入或者回车默认。
Password for ykla account? (will not echo)
为该账号设置密码(密码不会显示在屏幕上)。
Password for ykla account? (again)
再次输入该用户名的密码。
Allow root ssh login?(yes, no, prohibit-password)[no] yes
输入 yes 以允许 root 登录 ssh。
What timezone are you in? ('?' for list) [US/Eastern] Asia/Shanghai
设置时区。
Available disks are: sd0. sd1 sd2 Encrypt the root disk? (disk, 'no' or '?' for details) [no]
回车,不加密磁盘。
Available disks are: sd0 sd1 sd2 Which one is the root disk? (or 'done') [wd0] ?
输入 ? 查看硬盘:
Which disk is the root disk? (‘?‘ for details) [sd0] ?
sd0: NVMe, VMware Virtual N, 1.3 (80.0G)
sd1: NVMe, VMware Virtual N, 1.3 (1.0G)
sd2: NVMe, VMware Virtual N, 1.3 (0.1G)
Available disks are: sd0 sdl sd2.
Which disk is the root disk? (‘?‘ for details) [sd0]
Use (W)hole disk MBR, whole disk (G)PT or (E)dit? [gpt]
回车。
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a]
这里我们直接回车,选择系统默认分区。(文末附有自定义分区设置,仅供参考,不推荐新用户尝试。)
Available disk are: sd0.Which disk do you wish to initialize? (or 'done') [done] 直接回车。
Let's install the sets! Location of sets? (cd disk ftp http or 'done') [cd] disk
软件地址,选择 disk。这里我们选择安装盘为软件地址。
Is the disk partition already mounted? [yes] no
需要提示一点的是,系统询问是否已识别 U 盘时,一定要选择否,否则系统不会识别。如不确定 U 盘编号,可输入 ? 查看。
Which disk contains the install media? (Cor 'done') [sd1] 选择 sd1
a: 1358848 1024 2048 16384 16142
i: 960 64 MSDOS
Available sd1 partitions are: a i.
Which wdo partition has the install sets? Cor 'done') [a] 回车
Pathname to the sets? Cor 'done') [7.3/amd64] 回车
Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-' to the set name, name pattern or 'all'. Selected sets are labelled `[X]`
[X] bsd [X] bsd.rd [X] comp73.tgz [X] game73.tgz [X] xshare73.tgz [X] xserv73.tgz
[X] bsd.mp [X] base73.tgz [H] man73.tgz [X] xbase73.tgz [X] xfont73. tgz
Set name(s)? (or 'abort' or 'done') [done] -game*
这里我们可输入 -game* 来取消 game73.tgz,其它都勾选。也可以直接回车。
注:即使不使用桌面,也请勾选 X11 相关选项,否则部分软件可能无法正常运行。
Set name(s)? (or 'abort' or 'done') [done] 输入 -game*
[X] bsd [X] bsd.rd [X] comp73.tgz [ ] game73.tgz [X] xshare73.tgz [X] xserv73.tgz
[X] bsd.mp [X] base73.tgz [H] man73.tgz [X] xbase73.tgz [X] xfont73. tgz
Set name(s)? (or 'abort' or 'done') [done] 回车
Directory does not contain SHA256sig. Continue without verification? [no] 输入 yes
Location of sets? (cd disk ftp http or 'done') [done]
继续回车确认。此后开始安装系统。约 5 分钟后,会出现如下提示:
CONGRATULATIONS! Your OpenBSD install has been successfully completed!
To boot the new system, enter 'reboot' at the command prompt.
When you login to your new system the first time,
please read your mail using the 'mail' command.
# cd /sys/arch/$(machine)/compile/GENERIC.MP # 要 cvs 拉取完才有该路径
# make obj
# make config
# make -j4 && make install # 编译内核
# cd /usr/src
# make obj && make -j4 build # 编译基本系统
# sysmerge
# cd /dev && ./MAKEDEV all
# cd /usr/xenocara
# make bootstrap
# make obj
# make build # 编译 xorg