Software Installation and Configuration

I know I’m supposed to continue with my series of posts on 2D geometry algorithms but I’ve been busy (mostly lazy, but I’ll blame being busy :). Infact this post is about what I’ve been wasting time on. And that’s Software Installation and Configuration.

First a little background. I routinely use 3 different computers. My home desktop computer, work laptop, and home laptop. I also have server space that I use at I do software develop on all 4 systems.

This means that I have 4 systems to configure. The pain of installing and configuring the software becomes a huge annoyance. I estimate that I spend at least 20% of my time just installing or configuring software (this includes installing new versions of packages such as ruby on rails). When you think about it, this is a huge problem. That 20% of my time is completely wasted. I’m not doing creative or productive work. It’s the part of my work that I hate the most (actually the only part that I dislike about my work). I’m writing this blog because I just upgraded my home desktop computer and it’s taken me almost two days to get everything configured (this does include some time I spent on hardware issues).

I know of several other people that have written about this problem (or very similar problems). Steve Yegge cites someone here (search for “configuration”). Part of the ruby on rails philosophy is convention over configuration.

This is part of the reason why web apps have grown so popular. With web apps you don’t have to reinstall or configure software when switching computers (except for the web browser but that’s only one app). You don’t even have to worry about lugging your data around. It’s all stored on the server and available anywhere.

I don’t know of any really good solutions to this problem for thick client apps (it’d be great if people in the comments would link to possible solutions). One method is to create a set of unattended scripts to automate the installation and configuration of my development tools. But then there’s the problem that my home desktop computer runs Ubuntu and unattended is for windows.

One solution is to copy squeak’s model of keeping all your development tools inside one big binary blog that you can cart around. You can do this via virtual machines (squeak runs on its own virtual machine). That is create one disk image that you use on every computer and run that disk image using your favorite virtual machine (I use VMware). The downside to this solution is that you have to cart around an at least 20GB file. Also you need a disk image for every operating system you use.

Another possibility is to follow Mac OS X’s use of apps as directories. This is where each application resides entirely in one directory. So to copy the app you just copy its folder. There exists a Linux program ROX that also uses the apps as directories philosophy. There’s another Linux program Zero Install that largely eliminates software installation. Here’s a Zero Install example (stolen from Wikipedia): textfile.txt”

The above will run “vim textfile.txt”. More importantly you don’t have to worry if vim is already installed or not. If vim is not installed it gets automatically installed with I believe no user interaction. Too bad zero install doesn’t exist for windows. There is still the problem of configuration that I don’t believe Zero Install fixes.

One partial solution to the configuration problem is to set up a git repository of all your configuration files and then on each computer do a “git pull” (or “git clone” if it’s the first time) to fetch the configuration files (you’d also need to write some scripts to copy the files to the appropriate places).

I imagine that with a lot (probably an enormous amount) of engineering it would be possible to use a git like repository for the whole operating system. Then for each computer you’d do a “git pull” to get the most recent version of all you programs and configuration files.

Too bad I don’t have the resources to execute that idea. Because I really hate software installation and configuration.
Feel free point out anything that would alleviate my pain.


2 thoughts on “Software Installation and Configuration

  1. Usually, how often do you find yourself upgrading any software? Weekly/Monthly/Sporadically? My suggestion is that you either start loving the process or understand that everything on a machine need not always be bleeding-edge. A long time ago I used to keep installing the newest and coolest tools only to realize later that I barely used some of them, and spent more time updating and configuring things than actually using them. I’m not saying that your situation is similar. For me, it’s like cleaning my desk — I only do it when things get chaotic and it’s bothering me. Weird analogy, huh?

  2. I upgrade my system(s) about every six months. I don’t try and be bleeding edge but at the same time I like to be current. So if a new version of visual studio is released I like to use it. Maybe I should do what you suggest and only upgrade when needed. The list of tools I use on a daily basis is fairly long (git, emacs, visual studio, subversion, C#, sql server, mysql, ruby, sqlite, rake, ubuntu, etc) which is probably why I find myself upgrading more than I want to.

    Thanks for the comments 🙂

    Bryan Bell

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s