OpenBSD

OpenBSD general notes

See also:

OpenBSD-sparc64

Command equivalents

Common problems

I'm trying to include the version/arch of OpenBSD where each problem occurred. This doesn't mean that the problems are bound to specific releases.

R: 5.0/sparc64: Leave an ssh session idle for some time

E: Output is slow/laggy through SSH connection from certain hosts (while scp, for example, works fine)

S: The client's IP address cannot be resolved - 'UseDNS no' in sshd_config (or modify /etc/hosts) doesn't solve the problem; unknown source

R: 4.6/i386: nmap somehost

E: nmap returns unusual errors ("No route to host") - see also http://hup.hu/node/84809

S: pf firewall prevents certain scanning techniques used by nmap

R: 5.0/sparc64: pkg_add -i foo

E: Can't find <pkgname>

S: PKG_PATH is invalid or unset?

E: 5.0/sparc64: 'ps -o pid=' insists on using a blank line as a header (instead of no header line)

S: sendbug(1) (seriously)

R: 5.0/sparc64: # strings /dev/rsd1a

E: strings: Warning: '/dev/rsd1a' is not an ordinary file

S: pipe through dd

Environment variables, shell profile

Presets for OpenBSD top

TOP=-Csu

Install path for OpenBSD packages

PKG_PATH=http://ftp.wu-wien.ac.at/pub/OpenBSD/snapshots/packages/sparc64/

Shell history - these are unset in PD KSH by default

HISTFILE=$HOME/.sh_history
HISTSIZE=4096

Primary prompt

PS1="[\u@\h] $ "

Path

$PATH MUST contain /bin:/sbin !

Boot

Verbose boot

From bootloader:

> boot -c
UKC> verbose

See also: man 8 boot_config

LGee and OpenBSD

2004-11: OpenBSD 3.6. I bought a CD set in Germany, pre-ordered in a Lehmanns book shop at uni-regensburg http://hup.hu/node/13945

2006-12: OpenBSD 4.0/i386 on 'corvus' (IBM-Lenovo ThinkPad T43)

2006-12: OpenBSD 4.0/i386 on 'kuka' (Dell Optiplex GX1)

2007-05: OpenBSD 4.1/sparc64 on 'blade' (Sun Blade 150)

2007-09: 'kuka' given away

2007-11: OpenBSD 4.2. A CD set through Hackathon developers/robert@, Hungary http://hup.hu/node/44521

2008-06: 'blade' sold

2011-10: OpenBSD 5.0-CURRENT/sparc64 on 'poseidon' (Sun Fire V240)