cfkoch-tech

NetBSD — Unix — multimedia — other fun

New GitHub repo: "cfklp"

— Monday, August 26, 2013

cfklp is my new minimal LaTeX replacement thing. The idea is to create a printable document from a text file which requires minimal (if any) formatting.

(0 Comments)

New Git repo: "spread"

— Tuesday, August 13, 2013

I wrote a minimal spreadsheet thingy in Awk. You can find it here.

(0 Comments)

Random NetBSD sysctl tricks!

— Saturday, August 03, 2013

There's hardly a message or overarching moral to this entry. I simply thought this information was interesting...

uptime(1) tells you how long the system has been up, but you can also discover at what time the machine was started:

$ sysctl kern.boottime

Get nothing but load averages:

$ sysctl -n vm.loadavg

By default, NetBSD does not forward network packets, you have to turn it on yourself:

# sysctl -w net.inet.ip.forwarding=1

And if you use IPv6:

# sysctl -w net.inet6.ip6.forwarding=1

I've never had a need for this, but it appears you can adjust almost anything you want about NetBSD's in-kernel debugger:

$ sysctl -a | grep ^ddb
ddb.radix = 16
ddb.maxoff = 1048576
ddb.maxwidth = 80
ddb.lines = 24
ddb.tabstops = 8
ddb.onpanic = 0
ddb.fromconsole = 1
ddb.tee_msgbuf = 0
ddb.commandonenter = 

If you've enabled Linux emulation, you can see which version you're running:

$ sysctl -a | grep emul.linux.kern
emul.linux.kern.ostype = Linux
emul.linux.kern.osrelease = 2.6.18
emul.linux.kern.osversion = #0 Wed Mar 3 03:03:03 PST 2010

Oh yeah, don't forget to use sysctl -d if you don't understand what a particular field means! I really wish audioctl and mixerctl had similar functionality.

(0 Comments)

Dotfiles available

— Saturday, July 20, 2013

Just FYI, some of my dotfiles are now available on GitHub.

(0 Comments)

New GitHub repo: "pless"

— Monday, July 15, 2013

Yeah, I'm in a GitHub mood these days. Mainly because Chisel shut down (but the website is STILL up??). Anyway, I created pless, a screen-oriented pager. It's like less(1) except better.

(0 Comments)