su root -c 'tar xfzCp src.tar.gz'
should be su root -c 'tar xfzCp src.tar.gz /usr/src' echo pkg_add ghostscript | su root
tar xfz nvi-1.79.tar.gz
cd nvi-1.79/docs/USD.doc
(cd vi.ref; ps2pdf vi.ref.ps)
(cd vi.tut; ps2pdf vi.tut.ps)
the interactive vi tutorial is also great: cp /usr/src/usr.bin/vi/docs/tutorial/* ./
vi vi.beginner
vi vi.advanced
assuming you installed the relevant src tar: ftp -C https://cdn.openbsd.org/pub/OpenBSD/"`uname -r`"/SHA256.sig &&
ftp -C https://cdn.openbsd.org/pub/OpenBSD/"`uname -r`"/src.tar.gz &&
signify -Cp /etc/signify/openbsd-"`uname -r|tr -d .`"-base.pub -x SHA256.sig src.tar.gz &&
su root -c 'tar xfzCp src.tar.gz'
wouldnt it be nice if installation did this and syspatch patched it and sysupgrade merged it? mkdir man && cd man &&
for n in 1 2 3 4 5 6 7 8 9
do for m in /usr/share/man/man$n{/,/"`machine`"/}*
do test -f "$m" && man $n "`basename $m .$n`" | col -b > "`basename $m`"
done
done
grep relink * | grep kernel
maybe use it to train an LLM, idk. login root
cp /etc/rc /etc/rc.old
ed /etc/rc
g/reorder/p
/^reorder_libs[^()]*$/s/^/#
/^wait_reorder_libs[^()]*$/s/^/#
/reorder_kernel/s/^/#
wq
you are now on the beginning of the long, tedious, futile and soul crushing journey of dealing with documentation and source code on openbsd.