tummy.com: we do linux

Recent Entries

Below is a summary of the most recent journal entries. A full index of all entries is also available.
Also available as: RSS Comments (RSS)

(Yesterday, 19:56) Sean Reifschneider
Subject: Enigmail message composition and mutt.
Keywords: Encryption, Technical

I've been using enigmail inside Thunderbird for mail for a while now. However, the default setting was such that mutt wasn't auto-detecting the messages as encrypted when I was sending them, because the content-type wasn't set -- programs had to look for the "BEGIN PGP MESSAGE" line.

It took a bit of hunting, but I was finally able to figure out how to change this. Since it's non-obvious, here's what you need to do:

  • Click on "Write" to start writing a new message.
  • Click on the OpenPGP menu.
  • Select the "Default Composition Options" item.
  • Select the "Signing/Encryption Options" sub-item.
  • Check the "Always use PGP/MIME" box.
  • Click "OK".

You can't change this option from the main "Preferences" window for Enigmail, you have to do it from the Composition window. That's what tripped me up.

Encrypted-ly yrs,
Sean
(go to article | 0 Comments)


(Monday August 25, at 17:13) Sean Reifschneider
Subject: "help" for zsh
Keywords: Technical, zsh

One of the things I really miss about bash is the help for the "test" command (for shell conditionals). There's the test man page, but for some reason I just always want to type "help test" to see what I can use in shell conditionals. I finally decided to fix this and came up with the following line which can be added to ~/.zshrc:

function help { bash -c "help $@" }

(go to article | 0 Comments)

(Monday August 11, at 01:57) Sean Reifschneider
Subject: "Book" mode editing of code in vim.
Keywords: Technical, vim

When I'm coding, and sometimes when I'm writing, I like to see a lot of code. Usually I just maximize my window vertically, which gives me around 51 lines, and to the side of it I have a couple of windows I can use for a Python shell, regular shell, or another editing session. Sometimes I just want to see more code... Read on for a nifty trick I found in vim.
(read more | 1 Comment)


(Friday August 08, at 17:35) Sean Reifschneider
Subject: rawstdin: Library for doing "raw" prompting of users.
Keywords: Library, Python, Technical

I've been doing some internal automation which is basically turning a workflow that Evelyn regularly does into a script that takes care of most of the "light manual labor", so she can concentrate on the higher value part of that work. Part of this involves prompting about what to do next...

One of the first libraries I wrote in Python back in 1997 when I started using it was a port of a previous C library I had which would set the terminal in raw mode and read a response to a prompt. I decided to put this on steroids and make the task a bit easier. Martin Blais has made hos if this code in his SVN helper, for example. Read on for more information...
(read more | 0 Comments)


(Friday August 08, at 16:57) Sean Reifschneider
Subject: A month of ZFS under Linux
Keywords: Linux, Technical, ZFS

It's been a month since I set up and started heavily using ZFS under Linux on my storage box, It's been working quite well. So well in fact that I set up a new machine to migrate 3TB worth of ZFS snapshots from an OpenSolaris system that we've been having problems with. That didn't go at all well. Read on for more details.
(read more | 5 Comments)


(Friday July 25, at 18:12) Sean Reifschneider
Subject: I feel like a superhero!
Keywords:

Steve Holden has posted a blog entry titled "Where's Sean Reifschneider When You Need Him?" I feel so super!

Fear not, citizen! I'll be in Chicago in 2009! Now where are my tights?

(With apologies to the WearPython folks :-)
(go to article | 0 Comments)


(Friday July 25, at 16:13) Sean Reifschneider
Subject: Enabling automatic upgrades on Hardy
Keywords: Hardy, Ubuntu, Upgrades

Enabling automatic upgrades on Ubuntu Hardy is fairly cryptic. There's a nice "unattended-upgrades" package, but installing it is (far less than) half the battle... I've created a helper script, and ended up getting fairly fancy with it, but if you want to make use of it the short form is:

wget ftp://ftp.tummy.com/pub/tummy/ubuntuenableautoupdate/ubuntuenableautoupdate
sh ubuntuenableautoupdate

It will prompt you for a couple of options you can tune (though command-line arguments are available, for example "ubuntuenableautoupdate -yu updatemaster@example.com". Read on for details on what exactly this does.
(read more | 0 Comments)


(Tuesday July 08, at 13:42) Sean Reifschneider
Subject: My Desktop Habits
Keywords: Desktop, Linux, Technical

Seems like every time you turn around there's a story about whether "Linux is ready for the desktop". As someone who has been using a Linux desktop for over a decade, I just ignore them and keep typing. As an aside, I would like to say that we recently had an administrative assistant join the company and she was able to transition from Windows to Linux quickly and with no problems at all.

Anyway, tonight at the NCLUG meeting, I'm going to be one of a few people who are demonstrating our "desktop habits" -- how we get things done. Read on for a list of the things I do to help me get work done.
(read more | 2 Comments)


(Monday July 07, at 02:44) Sean Reifschneider
Subject: Putting it all together: The Ultimate Storage Box
Keywords: Linux, Storage, ZFS

Putting together the last few posts I made, I've written up an article with detailed information about the hardware and software configuration for a 6TB encrypted Linux-based ZFS file storage system.
(go to article | 2 Comments)


(Saturday July 05, at 15:00) Sean Reifschneider
Subject: ZFS Under Linux: A User Report
Keywords: Technical, ZFS

As was pointed out by Daniel Webb in a comment to my previous post, under Linux you have to use FUSE to use ZFS. He just replied before I had a chance to get the next post in this series out. :-)

We've been using ZFS under Open Solaris for the last year or two in our hosting business for backup servers. It has some really compelling features (beyond what I mentioned in my last post) when used for backups. While it has worked well, it hasn't been entirely trouble-free. For a home backup/storage server I wanted to use ZFS but I absolutely have to keep the data encrypted.

ZFS under OpenSolaris doesn't currently support on disc encryption, though they are working on it. Linux has very mature disc encryption support, it's in the stock kernels and many installers support it now. That plus me being very familiar with Linux prompted me to look at ZFS under Linux again. Read on for my user report.
(read more | 5 Comments)


(Saturday July 05, at 02:38) Sean Reifschneider
Subject: Why I Like ZFS.
Keywords: Technical, ZFS

The data on computer systems is what makes them valuable. Most file-systems and RAID designs will go through all sorts of work to make sure that their own meta-data are correct, but very little about the user data that they contain. ZFS, in contrast, checksums everything that's written to disc -- meta-data as well as file contents. It can detect if the disc has silently been corrected, and recover from it. Read on for more of the benefits of ZFS.
(read more | 1 Comment)


(Thursday July 03, at 18:35) Sean Reifschneider
Subject: SATA Port Multipliers Under Linux
Keywords: SATA, Technical

I've been curious about SATA Port Multipliers because of my home storage server. SATA is great stuff, and not that bad even when dealing with 10 drives in a single relatively small case. However when you outgrow that case, or just as likely the power supply, you need to start adding drives externally. But do I really want 5 or 10 normal SATA cables routing out of my case? While it's easy to get 8 internal SATA ports, 8 eSATA ports is quite unusual.

I recently found that SATA II supports Port Multipliers, allowing multiple drives to be connected to a single SATA port. Sounds like just the trick, but how is support for them? Read on for more information.
(read more | 2 Comments)


(Wednesday June 25, at 18:05) Sean Reifschneider
Subject: Hiding crypto file-systems.
Keywords: Encryption, Ideas, Technical

I've been reading Cory Doctorow's book Little Brother. In it, our hero gets illegally detained and he wishes he had set up a second password for his phone which decrypted an empty partition, so he could give away that password instead of the real data password.

You can do this under Linux by creating two partitions, and setting up LVM on both, and hacking the cryptsetup code so that it tries to decrypt one partition, and if that fails tries the other. Then the boot could continue normally with scanning for an LVM, finding which ever one is active, and using that. However, you don't have to look very hard to see that this laptop with a 200GB drive only has 10GB of usable space on it.

So I started thinking about how you would create a partition that could have multiple data-sets on it, without it being obvious to someone with access to the hardware that it was there. Read on for my thoughts on it.
(read more | 3 Comments)


(Friday June 20, at 22:16) Kevin Fenzi
Subject: Fudcon 10 days one and two
Keywords: Conferences, Fudcon 10, Tech

Just finished up days one and two of Fudcon (the 'hackfest' days). Read on for some snippets and impressions:


(read more | 0 Comments)

(Thursday June 19, at 08:55) Kevin Fenzi
Subject: Fudcon Boston F10
Keywords: Conference, Fedora, Fudcon, Tech

Just a quick note to let everyone know that I am at FudconF10 , which is being held here with the Red Hat Summit. Any folks who are there and want to meet up, just drop me an email or catch me on IRC (#fudcon on irc.freenode.net).

Look for more reports from Fudcon in the coming days.


(go to article | 0 Comments)

(Friday June 06, at 14:17) Sean Reifschneider
Subject: Disabling the Gnome Desktop
Keywords: Gnome

I've recently been trying Gnome because it seemed like Compiz worked better under it than under KDE. Compiz has some nice features, like zooming (not resizing) a window to be full screen, that I really have been wanting to try. But Gnome has these icons on the root window which I don't need or want. I mentioned this to Mike and he gave me the recipe to disable it:

  • Run gconf-editor (Applications -> System Tools -> Configuration Editor).
  • Apps
  • Nautilus
  • Preferences
  • Uncheck "show_desktop"

(go to article | 0 Comments)

(Tuesday May 27, at 15:40) Sean Reifschneider
Subject: FYI: Gandi DNS servers seem to be having problems.
Keywords: DNS, Technical

We've been recommending gandi.net as a domain registration provider for our clients needing registration service. FYI: If you are using gandi.net for your DNS (registration seems fine, it's just DNS that seems impacted), it looks like they're having serious issues. Read on for more details.
(read more | 1 Comment)


(Friday May 23, at 12:19) Kevin Fenzi
Subject: Of Beta versions and Distributions
Keywords: Beta Versions, Fedora, Software, Tech

Since the release of Fedora 9, I have seen a number of folks pop up on the #fedora support channel on irc.freenode.net with the following statement: "Fedora 9 was released with all kinds of Beta software, it's not usable, why would they call it a stable release with a Beta X server, Beta firefox, and Beta package management system?"

I think this misunderstanding comes from folks not understanding how distributions are put together. In the end I think Fedora 9 is quite a good release, even given the Beta packages in some areas.

Read on for my take on how a distribution is put together and why Beta versions are OK sometimes.


(read more | 1 Comment)

(Monday May 19, at 15:02) Kevin Fenzi
Subject: Impressions of Fedora 9
Keywords: Fedora, Fedora 9, Linux, Releases, Tech

Fedora 9 was released last week (2008-05-13). Overall, I think it's another great release. Congrats to all the folks who worked so hard on it!

As with any release there are a few gotchas and bugs, but not all that many from my (biased) viewpoint. Read on for further impressions of the release.


(read more | 3 Comments)

(Friday May 02, at 16:32) Sean Reifschneider
Subject: Growing a software RAID-5 array.
Keywords: Linux, Technical

I'd never run a "grow" on a Linux software RAID array before, but my storage server needed some more space. The manual page for mdadm is not really obvious about how exactly you add drives to a RAID-5 array, but everything went smoothly once I figured out that you first have to add the drives as a hot-spare. Read below for more details.
(read more | 0 Comments)


(Wednesday March 19, at 14:07) Sean Reifschneider
Subject: Report on PyCon 2008 Networking.
Keywords: Networking, PyCon, WiFi

I've written up a bit of a report about the networking this year at PyCon. I wasn't nearly as involved in the network this year, for reasons I go into some in the article. If you're interested in the networking for handling 1100 people, follow the link
(go to article | 1 Comment)


(Thursday February 14, at 09:13) Sean Reifschneider
Subject: Sean and Evelyn at PyCon.
Keywords: PyCon, Python

I'm sure everyone who is interested has already been to the PyCon web site, and so you probably already know that tummy.com is sponsoring it again. But did you know that I'll be presenting with a talk titled Python in System Administration: How, When, and Why one SysAdmin uses Python. Hope to see you there.
(go to article | 2 Comments)


(Sunday February 03, at 17:12) Sean Reifschneider
Subject: The New Nielsens
Keywords: Popularity

Nielsen Ratings haven't traditionally been particularly accurate, in that you can't tell how involved someone is in the viewing, whether they're in the room or paying attention, or have friends over also watching the content (and therefore advertisements).

However, if you can post something showing the number of people who "died in a blogging accident", and have the google hits for that term go from 2 to 50,000 practically over-night, that's some important "viewership" information.

The Internet is dramatically changing the information we can gather, sometimes even in useful ways. ;-)
(go to article | 0 Comments)


(Monday January 14, at 13:22) Kevin Fenzi
Subject: Fudcon Raleigh 2008
Keywords: Fedora, Fudcon, Tech

Just got back last night from this years fudcon in Raleigh, NC. Read on for my recap of the event.


(read more | 1 Comment)

(Wednesday January 02, at 18:29) Kevin Fenzi
Subject: Linux Photo Management
Keywords: Cameras, Fedora, Linux, Photos, Pictures

For the recent Holiday, I managed to get a lovely new camera. A Fuji FinePix F50fd. There wasn't anything particularly wrong with my old camera, which I liked quite a bit, it was getting a bit worn, and some of the features on the new Fuji are great.

With the new camera comes the age old problem: How to manage all the photos I take with it. Read on for my thoughts on Linux software for photo management and plea to readers for better ideas...


(read more | 2 Comments)