Fun with FreeBSD

Wed 22 March 2023 by R.L. Dane

Do *not* do the following :D
Please scroll down to the **Update** section below, instead

I was watching this video about FreeBSD last night, and the gentleman made mention of a blog which had extra information on FreeBSD. Looking at the blog, I found an excellent article describing how to make the FreeBSD boot process less visually noisy.

The first step they gave is to add the lines:


to /boot/loader.conf.
The first line replaces the kernel boot messages with a graphic FreeBSD logo. It's not as pretty, colorful or high-resolution as modern Plymouth boot images on Linux, but it definitely gets the job done. The second line reduces the automatic boot delay from 10 seconds to 2, which just speeds up the boot process by eliminating the need to manually hit "Enter" to start the boot right away.

The rest of the instructions given entail modifying a handful of init scripts to redirect the output of some verbose commands to /dev/null.

Now, anyone new to an OS would have some understandable trepidation modifying init scripts right away, but ultimately, a script is a script, and as long as you know what you're doing, there shouldn't be any serious danger that can't be fairly easily undone. However, I didn't like the idea of permanently altering the boot process, so I added my own failsafe:

I touched a file called /etc/.quietboot, and then I added the following lines to the beginning of the init scripts I changed:

if [ -e /etc/.quietboot ]
    debugout() {
        cat >/dev/null
    debugout() {

The code above checks for the presence of the /etc/.quietboot flag file I just created, and if found, it defines a function debugout() which simply runs cat >/dev/null, essentially serving as a pipe terminator to the null device.
If the flag file is not found, the debugout() function will simply run cat, continuing the pipe to STDOUT, and not silencing any init messages.
I then went to every line which the blog post recommended have a >/dev/null added at the end of (in order to eliminate unneeded boot init messages), and added | debugout instead.
That way, if there's something wrong with the system and I need to verbosely see what the init scripts are doing, I can just comment out the autoboot_delay=2 line from loader.conf, then delete the /etc/.quietboot flag file and reboot, and everything will be normal. No need to go hunting through init scripts to remove >/dev/null from several lines.

Update: Oops, or: "I coulda just read the manpage!"

I found out that I didn't have to modify the init scripts at all. Thanks to "evilham" and vermaden himself, I learned that with two simple lines added to /etc/rc.conf, I could reduce all of the boot messages down to a mere 22 status lines, which easily fits in one screenful. I then undid all of the init script changes (so obviously skip all the steps above about modifying init scripts. The only changes needed for a pretty quite FreeBSD boot are add:


to /boot/loader.conf, and add:


to /etc/rc.conf.

That's it! You may now safely disregard the rest of this blog post above, which I'm keeping intact for... posterity? Laughing at myself later? :D

#100DaysToOffload - Day 7

Le Blerb, or: I guess I should write something, eh?

Tue 21 March 2023 by R.L. Dane

Welp, it's been literally a month since my last blog post. 1,000 days to offload, right? 😆

I had a checkup with my doctor today, and going over the results of my blood test, I was encouraged in no uncertain terms to pick up regular exercise again, and stick with …

read more

Christian Propaganda

Tue 21 February 2023 by R.L. Dane

Content Warning: This is straight-up Bible stuff from a very Christian perspective. If that's not what you're looking for, I'm sure I'll have other posts you'd be interested in soon. Cheers.

I've been home sick the past few days (mostly recovered now, thankfully), so I did a lot of flipping …

read more

Life, Liberty, and the Pursuit of Beauty

Tue 14 February 2023 by R.L. Dane

Six years ago, I found myself sitting in a classroom in one of the most beautiful, über-modern buildings on campus. I was in a graduate course surrounded with incredibly intelligent and kind classmates (a rarity in grad school in my experience, sadly), and two very experienced, passionate, and sophisticated professors …

read more

A quick little terminal tip

Mon 30 January 2023 by R.L. Dane

Becoming a terminal file management enjoyer

read more

"But my friends aren't on there!"

Sun 29 January 2023 by R.L. Dane

Promoting ethical alternatives to unethical social media

read more

The Revolution is Being Televised

Sat 28 January 2023 by R.L. Dane

PeerTube and the future of federated online media

read more