Sean Reifschneider's Journal Recent Entries
Below is a summary of the most recent journal entries by this user. A full index of all entries is also available.Also available as: RSS
Yesterday, 19:56
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:
Sean
(go to article | 0 Comments)
-
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".
Sean
(go to article | 0 Comments)
Monday August 25, at 17:13
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:
(go to article | 0 Comments)
function help { bash -c "help $@" }(go to article | 0 Comments)
Monday August 11, at 01:57
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)
(read more | 1 Comment)
Friday August 08, at 17:35
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)
(read more | 0 Comments)
Friday August 08, at 16:57
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)
(read more | 5 Comments)
Friday July 25, at 18:12
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)
(With apologies to the WearPython folks :-)(go to article | 0 Comments)
Friday July 25, at 16:13
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:
(read more | 0 Comments)
wget ftp://ftp.tummy.com/pub/tummy/ubuntuenableautoupdate/ubuntuenableautoupdate sh ubuntuenableautoupdateIt 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
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)
(read more | 2 Comments)
Monday July 07, at 02:44
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)
(go to article | 2 Comments)
Saturday July 05, at 15:00
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)
(read more | 5 Comments)
Saturday July 05, at 02:38
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)
(read more | 1 Comment)
Thursday July 03, at 18:35
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)
(read more | 2 Comments)
Wednesday June 25, at 18:05
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)
(read more | 3 Comments)
Friday June 06, at 14:17
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:
(go to article | 0 Comments)
-
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
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)
(read more | 1 Comment)
Friday May 02, at 16:32
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)
(read more | 0 Comments)
Wednesday March 19, at 14:07
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)
(go to article | 1 Comment)
Thursday February 14, at 09:13
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)
(go to article | 2 Comments)
Sunday February 03, at 17:12
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)
(go to article | 0 Comments)
Thursday December 06, 2007 at 00:34
Subject: The Value is not where you think it is...
Keywords:
Musing, Value
A few weeks ago, Slashdot had
a story about a music executive speaking at a Cellular Phone conference.
He was admitting that the music industry was wrong to stand still while
their customers were switching to P2P. Of course, he was saying
that the mobile industry needed to make sure that they were delivering
music to their customers.
However, I think the "mobile operators" are much worse off than just
needing to deliver music to their customers. In a very similar way to how
the music industry, wireline phone companies, and newspapers are already in
trouble. It's all about where the value is: seeing it and being willing
to react to it.
Read on for more...
(read more | 1 Comment)
(read more | 1 Comment)
Tuesday December 04, 2007 at 14:21
Subject: PgAdminIII Hanging During Connection
Keywords:
PostgreSQL, Technical
I was having problems earlier with connecting to PostgreSQL via
PgAdminIII, and google was no help. The problem was that connecting from
the "psql" CLI remotely was fast, and the initial connect via PgAdminIII
was fast, but opening a particular database hung PgAdminIII for several
minutes.
For future reference, a postmaster process was taking up 100% CPU time
on the server, and a "vacuum analyze pg_trigger" resolved the problem.
A tcpdump of the wire showed that there was this nasty query being
sent referencing the pg_trigger table, which took 2 minutes to complete
on a very fast CPU.
(go to article | 0 Comments)
(go to article | 0 Comments)
Saturday November 24, 2007 at 15:37
Subject: Recipe for setting up Encrypted root+swap on Fedora 8.
Keywords:
Encrypted, Fedora-8, Technical
I've just finished testing a new mechanism for setting up an encrypted
root partition which is much easier than my previous mechanism. This
allows for encrypted swap, root, and other partitions, via an encrypted LVM
physical volume, so only one pass-phrase is required for access to all the
partitions.
Read more in my article titled Encrypted
root With LVM on Fedora 8.
(go to article | 0 Comments)
(go to article | 0 Comments)
Saturday November 17, 2007 at 12:51
Subject: My 5 favorite Python library modules.
Keywords:
Python, Technical
Recently I ran across a blog post from Titus titled What are
the 5 best "hidden gem" stdlib modules in Python?. Here are mine.
(read more | 0 Comments)
(read more | 0 Comments)
Monday November 12, 2007 at 01:33
Subject: Project Management Idea: ICRAM
Keywords:
Project Management
Evelyn and I have been speaking about project management mechanisms.
There are so many of those, so why not have another one? Many of the
project management mechanisms are geared towards software development,
where tasks are around 10 times larger than what we normally deal with.
Usually the items are unrelated, so you can't rely on the natural ordering
of tasks (I can't do this until I do this). So, it's a very real worry
that a task stagnates on a task list because other tasks are selected
instead of it.
Another contributing factor to this is that I often will select more
tasks for my daily task list than I can reasonably do in a day. Even days
where I'm not so optimistic, urgent items that come in during that day can
contribute to stagnating tasks.
After thinking about this problem, I came up with the idea that it
would be nice if tasks grew in size as they sat on my list. In other
words, the tasks started coming towards me, becoming bigger and bigger in
my vision, to use a physical metaphor. Perhaps displacing other tasks
until I just can't ignore it. So an hour long task that's sat on my list
for a while could start looking like a 2 or 4 hour task...
This reminded me of the South Park episode where they go hunting.
Any animals are in season, as long as you yell "It's Comin' Right At Me"!
So, I started calling it ICRAM.
(read more | 2 Comments)
(read more | 2 Comments)
Wednesday October 31, 2007 at 23:03
Subject: Getting RPM to list packages by install date
Keywords:
RPM, Technical
Tonight Scott was having problems with mutt suddenly having a garbled
display. One of the things we wanted to do was to display packages by
installed date to see what had changed recently. This is always annoying
to find because I can never remember how to get the installed time or the
list of available tags. Here's how...
(read more | 1 Comment)
(read more | 1 Comment)