head.daveops.net

Snippets for yer computer needs

OpenBSD

OpenBSD

@OpenBSD

List PCI devices

pcidump -v

Install package

pkg_add

Add an IP alias to a network interface

ifconfig carp0 inet alias 192.0.1.2 netmask 255.255.255.255

Delete an IP alias

ifconfig carp0 delete 192.0.1.2

Download ports

cd /usr cvs get ports

USB snapshots

dd if=install*.fs of=/dev/sd1c bs=1m

Securelevels

Edit /etc/rc.securelevel or sysctl kern.securelevel

Building from source

See man 8 release