dd(8) with progress

I needed to write an iso image to a USB key, and the typical way is
with just dd(8), but I wanted a progress bar. A quick google later,
and I get:

pv -tpreb isoname | sudo dd of=/dev/sdd bs=1024

Which will write the iso image to the USB stick sdd, and give me a
progress bar, tell me how fast it is writing, and give me an eta when
finished. Perfect.

Tale of Installs

So, I am starting a new personal project at the house, and I need a new server. As I was wanting to learn more about the BSD, I started looking around at things like FreeBSD, NetBSD, or OpenBSD.

Since there was a security part, I started with OpenBSD. One of the things I noticed quickly while doing my research is that while there is a lot of documentation, they do not really seem to care about making it easy for new folks to join the project, nor are the trying to support new-fangled hardware, like bootable USB drives. This strikes me odd, as FreeBSD has instructions (see 2.3.5).

Since I want to use pf, I am going to stay with OpenBSD for now.

Clickable URL links in rxvt

So, I use rxvt as my daily interface to my computers. I also use mutt for my email reading pleasure. Sometimes, I get URLs in email and I want to read them in a browser. If I was using a GUI based mail reader, I would just click the URL to open it. Well, there is an easy way to set up rxvt to do that!

Using the fine Arch Linux wiki entry for rxvt unicode, the solution is quite easy. In the file ~/.Xdefaults, add:

URxvt.perl-ext-common: default,matcher
URxvt.url-launcher: /usr/bin/firefox
URxvt.matcher.button: 1

And either do a xrdb –merge ~/.Xdefaults or log out/log in. And start a new rxvt, and you are good to go.