NOTE : the OpenBSD developers strongly suggest to use binary packages whenever possible.
# man afterboot
# man intro
# man 8 intro
# man hier
Manually update the files database so we can use the locate command to look for a file
# locate <name>
List installed packages
# pkg_info |more
Search for packages in repository (provided by PKG_PATH)
# pkg_info -Q <search string>
Update all packages on the system
# pkg_add -v -u
# vim /etc/fstab
(FFS records the last time a file was accessed, meaning the last time it was executed or
read by any means. These updates consume a small but measurable amount of time and disk performance.
"noatime" is very useful the hard disk and the screen are the two most power-hungry devices on a laptop
and if you can reduce the amount of time your laptop's hard drive spins you will extend battery life.)
(Soft update, or "softdep," mounts organize and arrange disk writes so that the file system metadata
on the disk remains consistent, and it comes close to giving the performance of an "async"
mount with the reliability of a "sync" mount.)
One of the more exciting features in OpenBSD is systrace(1), a system call access manager.
With systrace, a system administrator can say which system calls can be made by which programs,
and how those calls can be made.
Proper use of systrace can greatly reduce the risks inherent in running poorly written
or exploitable programs.
12> Insecure Console (Single-user mode)
When you boot FreeBSD in single-user mode, you get a root command
prompt. This is fine for your laptop and works nicely for servers in your
corporate datacenter, but what about machines in untrusted facilities?
# man /etc/ttys
secure If on is also specified, allows users with a UID of 0 to log in
on this line. If set for the console entry, then init(8) will
start a single-user shell without asking for the superuser password.
To make the console require a root login when booted into single-usermode,
change the secure to insecure.