freebsd-upgrade In A Boot Environment

Yesterday FreeBSD 11.1 was released. Once I got into work I started upgrading the VM I use for day to day activities. After creating a Boot Environment (BE) using beadm(1), and running the upgrade and install parts of freebsd-update(8), I rebooted into a newly activated BE only to find I had an 11.1 kernel, but a 11.0 userland… I had no idea what I’d done wrong. After some questions on the FreeBSD Forums, I figured it out. Read On →

BSD Desktop Week

Last week on Twitter I was promoting BSD on the desktop. I'm promoting #BSDdesktopWeek, spent part of the weekend building a #FreeBSD desktop running #xfce Go give it a try! pic.twitter.com/eDhfTzst8r — Ben Lavery-Griffiths (@forquare) February 1, 2016 I got a small flurry of “likes” and “retweets” regarding a number of posts, and one (I think) real person even posted to #BSDdesktopWeek! Haven't used a @freebsd system as a desktop lately? Read On →

Raspberry Pi USB-GPIO OS X and FreeBSD

I play with my Raspberry Pi so rarely that I forget how to use my CP2102 serial converter to connect from my iMac or FreeBSD laptop to the Raspberry Pi, so I thought I’d write a blog post and then I’d have an easy place to go back to remember how… Connecting the cables On a Mac Acquire a CP2102 serial converter Download the driver (direct link to zip file) Reboot Attach Raspberry Pi using a USB 2. Read On →

Grabbing the MAC address on RHEL

At work I deploy Red Hat Enterprise Linux VMs, for a variety of reasons, mostly by hand. One of the steps I loath is setting up the network, it’s almost the only thing that truly requires manually tapping each character out. I have, however, learnt this bash one-liner such that I type it out without thinking: Simply replace “eth0” with whatever interface you want the MAC address from and redirect it into the relevant ifcfg- file, edit said file with your favourite editor and prepend “HWADDR=” to the line with the MAC address on. Read On →

3rd Party iCloud Apps?

At home I use an iMac. When I’m away from my desk I use an iPhone 6. At work, I’m forced to deal with Windows (though use Linux/BSD VMs where possible). I have a lot of software on my Mac, a number of apps are “document based” though manage those document internally. Some of these apps talk really nicely across many of the platforms I use (e.g. Evernote), other software works incredibly well within the Apple ecosystem (e. Read On →

File Recovery

Over the past few years I’ve needed to recover files from various USB sticks and SD cards using my Mac. I’ve recently needed to do this again, and every time I’m asked I always forget the application I use! So I’m created a blog post so it’s easy to search for! The application I use is TestDisk. It’s a command line application and can recover files from a number of different file systems. Read On →

DeGoogling my life

I have mixed feelings about Google. On the one hand their search engine is next to ubiquitous, most browsers come with it as the default, and they also have some pretty excellent services. On the other hand, and perhaps this is my Apple synapse firing, I see them as a new enemy, and one that isn’t doing much to try and win me over. In the past few years a few Google services that I have used (and some that I didn’t) have been axed. Read On →

My frequently used bash commands histogram

Taken from Small Labs Inc., here’s a histogram of my most used commands: cd 289 ############################################################ ls 282 ########################################################### git 158 ################################# hi 76 ################ vim 75 ################ for 72 ############### ssh 70 ############### sudo 52 ########### java 48 ########## rm 46 ########## cat 38 ######## brew 38 ######## man 35 ######## less 34 ######## find 26 ###### scp 23 ##### ps 23 ##### “hi 17 #### lorem 16 #### top 13 ### Have a try at making your own with the code from the Small Labs Inc. Read On →

An eight year old laptop

Technology moves so fast, doesn’t it? I mean who would want such a battered looking laptop? It doesn’t look like much, does it? This first generation MacBook has been in my possession for eight years today. Setting me back just a little over £900 at the time for 1GB RAM, a dual core (32-bit) CPU running at 2GHz, and OS X 10.4 Tiger. I bought the MacBook for two main reasons Read On →

Throw off the dust covers!

Well it’s been a long time since I’ve been here. After a quick update it all looks very shiny again. What happened to 2013!? Mostly full of work, friends, and reading in the ruins of Aberystwyth castle. Since the last post in 2012, I have moved from Aberystwyth to Frome in Somerset. I no longer work with ERTMS, or indeed on the railway at all, for the last month and a half I have been an employee at Ntegra where I have been working with one of their clients to configure many virtual machines running Red Hat Enterprise Linux. Read On →