Youngest and oldest source file in FreeBSD base/head

While compiling a custom kernel for FreeBSD/amd64 base/head r264077, I began wondering how old is the oldest source file, how young is the youngest?

This is the command I devised:

ident /usr/obj/usr/src/sys/VBOX/kernel | grep FreeBSD | awk '{print $4,$5,$3,$2}' | sort -nr

The oldest source files are:

2003-06-10 21:44:29Z 116174 head/sys/crypto/sha1.c
2003-06-10 21:44:29Z 116174 head/sys/crypto/blowfish/bf_skey.c
2003-06-10 21:44:29Z 116174 head/sys/crypto/blowfish/bf_enc.c

The youngest source file is:

2014-04-03 01:46:03Z 264063 head/sys/netinet/tcp_input.c

That’s a span of about 10.815 years. Continue reading

WITHOUT_NEW_XORG=yes → true

I’m probably not paying enough attention to new developments in FreeBSD after all. After updating the installed ports in my VMs running base/head and base/stable/10, X11 stopped working. It turns out the new version of X.org requires KMS and what not in the kernel. This doesn’t fare well with VMs running inside VirtualBox.

The solution? Place

WITHOUT_NEW_XORG=yes

in the /etc/make.conf file and recompile everything, or at least recompile everything belonging to the X.org subsystem. I opted for the former, spending roughly five hours recompiling 443 ports. :-/

The VMs running base/stable/8 and base/stable/9 hasn’t been affected yet, but I figured it’s best to play safe and I amended the aforementioned line in the /etc/make.conf file on those VMs.

Your own virtualized desktop FreeBSD lab

If you’re like me, eager to test new stuff in FreeBSD, you might as well run a virtualized FreeBSD laboratory on your desktop. I use Oracle VirtualBox, but you might as well use Microsoft Hyper-V, real hardware, or some other contraption. Couple this with ZFS and boot environments, and you’re even able to rapidly revert any mishaps, although enabled ZFS features can’t be reverted without some help in advance from the virtualization software. Continue reading

UTF-8 in GNU Emacs

I nicked the following from http://linux.seindal.dk/2004/08/07/gnu-emacs-and-utf-8-locale/:

(setq locale-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)

You may also specify your preference toward the Unix newline convention:

(setq locale-coding-system 'utf-8-unix)
(set-terminal-coding-system 'utf-8-unix)
(set-keyboard-coding-system 'utf-8-unix)
(set-selection-coding-system 'utf-8-unix)
(prefer-coding-system 'utf-8-unix)

Yet another technical oriented blog, more or less