RAID 1 on FreeBSD using GMirror and GLabel

glabel label -v local1 /dev/da1 glabel label -v local2 /dev/da2 gmirror label -vh -b round-robin gm0 /dev/label/local1 /dev/label/local2 echo ‘glabel_load=”YES”‘ >> /boot/loader.conf echo ‘geom_mirror_load=”YES”‘ >> /boot/loader.conf Load the mirror: gmirror load Let’s verify that the…

Creating a SVN Repository

Create a Repository To create an empty repository: svnadmin create /path/to/repository Once the repository is created you need to import data. Typically, svn repositories are broken into 3 directories, /trunk, /branches, and /tags with the…

Abook with Mutt

Since I’m now a mutt user, I needed to find an address book I could use for it. That’s where abook comes in. abook is a simple program designed for use with mutt; specifically to…

SMTP via telnet

You can easily test a server’s SMTP connection via the command line using telnet. Encoding using base64 If the SMTP server requires authentication, you’ll have to encode the username and password using base64. To encode,…

MYSQL back up in the CLI

Backing up MySQL database in the command line is relatively easy: mysqldump –password=mypassword –user=myuser database [table] > dump.sql In the above, –password and –user are only used if necessary. Naturally, you’ll replace mypassword and myuser…

going minimal

After several years of being a devoted KDE/beryl user, I’ve decided to go minimalist, specifically at work and on my laptop. The reasoning? Primary my work computer keeps causing me problems. After several hours it…

upgrading the FreeBSD kernel

I’ve decided to take on the task of learning to upgrade the FreeBSD kernel. Here are the steps that I took upgrading to the 6.2 release: Copy the standard-supfile to either your home directory or…