Do you want the X Windows System to be started by xenodm(1)? [no] yes # 输入 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) [GB] Asia
输入 Asia 按 回车键 确认
What sub-timezone of 'Asia' are you in? ('?' for list) Chongqing
输入 Chongqing(注意,C 是大写字母),按 回车键 确认
Available disks are: sd0.
Encrypt the root disk? (disk, 'no' or '?' for details) [no]
按 回车键,不加密磁盘。
Available disks are: sd0
Which one is the root disk? (or 'done') [sd0] ?
输入 ? 可查看硬盘:
Which disk is the root disk? (‘?‘ for details) [sd0] ?
sd0: NVMe, VMware Virtual N, 1.3 (50.0G)
Available disks are: sd0.
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? (cd0 disk ftp http or 'done') [cd0] 直接回车。
软件地址,选择 cd0。这里我们选择安装盘为软件源。
Pathname to the sets? (or 'done')[7.6/and64] 直接回车。
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] comp76.tgz [X] game76.tgz [X] xshare76.tgz
[X] bsd.mp [X] base76.tgz [H] man76.tgz [X] xbase76.tgz [X] xfont76.tgz
Set name(s)? (or 'abort' or 'done') [done] -game*
这里我们可输入 -game* 来取消 game75.tgz,其它都勾选。也可以直接回车。
注:即使不使用桌面,也请勾选 X11 相关选项,否则部分软件可能无法正常运行。
Set name(s)? (or 'abort' or 'done') [done] 输入 -game*
[X] bsd [X] bsd.rd [X] comp76.tgz [ ] game76.tgz [X] xshare76.tgz
[X] bsd.mp [X] base76.tgz [H] man76.tgz [X] xbase76.tgz [X] xfont76.tgz
Set name(s)? (or 'abort' or 'done') [done] 回车
Directory does not contain SHA256sig. Continue without verification? [no] 请输入 yes,回车
继续回车确认。此后开始安装系统。约 5 分钟后,会出现如下提示:
Location of sets? (cd0 disk http nfs or 'done')[done]
Time appears wrong. Set to 'Mon Dec 16 22:43:37CST 2824' ? [yes]
警告
如果不想卡在 fw_update 这一步,请在按回车前,此刻,拔掉网线断开网络连接。
CONGRATULATIONS! Your OpenBSD install has been successfully completed!
When you login to your new system the first time, please read your mail
using the 'mail' command.
Exit to (S)heLL, (H)alt or (R)eboot? [reboot] 按回车键重启进入新系统
# 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