Archive for October, 2007

How to count the number of files in a directory

Sunday, October 14th, 2007

I recently needed to count the number of files, not including directories, within a given directory. Additionally, I wanted to count recursively.

On FreeBSD or Linux, you can do this with the following commands:

$ find /path/to/dir -type f | wc -l

Pretty handy!

-Chris

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Living with Two Macs

Wednesday, October 10th, 2007

So I have two Macs: My Macbook that I take to class and various wifi hotspots (read: Panera Bread) with me, and my PowerMac G5 desktop. Currently I connect my 23″ Apple Cinema to my Macbook when I’m home and sit here and work. I would like to be able to fire up the Macbook at home and “sync” it up with my desktop so that I can revert to using my desktop for the major work I do here — web development and business operations.

Honestly, I haven’t used my PowerMac in about two months and I intend to soon spend some time updating all the applications and bringing it up to speed with what I use on my Macbook today. So, that aside; how can I sync the various data elements I use on each system with each other? Here is what I use:

  • Apple Mail
  • iTunes
  • OmniFocus
  • Documents
  • Address Book
  • iPhoto

What I do not want to do is purchase a .Mac account because I don’t think it’ll do anywhere near what I need. Additionally, I have nearly 1GB of mail within Apple Mail, and I’m not happy using IMAP. Not only does it slow the updates down from the server, in my experience, but it eats up server space.

If anyone has any suggestions on how I can smoothly sync these, let me know! Syncing mail is the most important to me. I want to be able to view my mail on both systems, and if I read a message on system A show it as read on system B. Thinking about this more and more, perhaps IMAP is the way I’ll have to go. I’m just concerned that with the massive amount of mail I have that accessing mail will be very slow and will cause a great deal of overhead on the server.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Presidential Debate Response

Tuesday, October 9th, 2007

I am beginning this entry as I sit down to watch the re-airing of the GOP Presidential Candidates debate on MSNBC at 8PM CST on 10/09/07. I intend to review section by section the debate as it unfolds and voice my opinion and stance on issues throughout.

(more…)

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Disk I/O Testing for VMware Server

Tuesday, October 9th, 2007

Recently we have been using the VMware server we have more and more. Lately we have been seeing performance issues and I’m trying to track down exactly what is causing this.

In this article, we’ll take a look at some disk performance testing I’m doing on various servers of different configuration. We’ll compare the results against the VMware server to see how it stacks up.

(more…)

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Update on Zimbra Connector for Outlook

Tuesday, October 9th, 2007

Jake has been testing our Zimbra 4.6.7 setup using the beta version of the Zimbra Connector for Outlook. We contacted Zimbra directly and were able to get access to the beta. In our tests, the functionality of the connector is good, but the stability is not. Jake is running Vista and Outlook 2007 and is reporting almost unusable stability of Outlook when using the Zimbra client. Hopefully these issues will be resolved soon and I think we’ll be set to use it in production.

Additionally, he tested the mobility features and found that they work well on his Windows Mobile smart-phone.

Zimbra the Release Candidate of Zimbra 5.0 (Network Edition) should be out soon — like, next week — so I look forward to seeing what changes have been implemented there.

Additionally, Jake is in discussions with Scalix about pricing, features and such so if the price is right we’ll be looking at that soon too. I also want to take a look at Open Exchange and will be doing so soon.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Zimbra First Impressions

Friday, October 5th, 2007

Today I installed Zimbra for the first time. Zimbra is an open-source, Linux-/UNIX-based collaboration and mail server suite, similar in features to Microsoft Exchange. It has native support for MAPI and is supposed to work great with Outlook. It also has advanced mobility features that put it on par with Exchange.

I spun up a Virtual Machine on our VMware server and loaded Ubuntu 6.06 Server. Once the base install was done, I removed the CD-ROM source from /etc/sources.list and ran:

# apt-get update

This made the package manager know it was to use FTP or HTTP to download packages. Next, I ran the following:

# wget http://files.zimbra.com/downloads/4.5.7_GA/zcs-NETWORK-4.5.7_GA_1319.UBUNTU6.tgz
# tar zxf zcs-NETWORK-4.5.7_GA_1319.UBUNTU6.tgz
# cd zcs
# sudo ./install.sh

This ran through the initial process and listed several packages that needed to be installed, so I installed them next and re-ran the installer:

# sudo apt-get install libidn11 curl fetchmail libpcre3 libgmp3c2 libxml2 libstdc++6 openssl perl libexpat1 libstdc++5
# sudo ./install.sh

This went through several very obvious questions as part of installation, including the administrator password. At one point near the end, it asked for my license file. I signed up for a free trial on Zimbra’s website, and that was emailed to me in the form of a XML file. I simply used SCP to move that up to the server, typed in the path to the file and it worked great.

I made one big mistake though: The password I provided for the admin account had a special character that must have thrown the setup program off. Although it reported the admin user was created, post-installation user account listings showed that other default users had been created but the admin user was nowhere to be found. Additionally, I couldn’t login to the admin using the admin username and password I provided. Bummer…

So, I spent the next two hours trying to figure out how to add a new admin. It wound up being a very simple command:

# zmprov ca testadmin@domain.com test123 zimbraIsAdminAccount TRUE

The key here is the “zimbraIsAdminAccount TRUE” attribute. Once I did that, I was able to login to the admin panel and everything worked out of the box as far as I can tell. I was able to point my domain’s MX record to the public IP of the server (I placed it behind a NAT) and before long I had setup another domain with a few user accounts and had mail flowing.

Had the admin password not screwed up, it would have been working about 20 minutes — which is amazing.

It seems to use a local LDAP server by default, but I did have the option to specify an LDAP server during the installation as well as clustering options that I didn’t touch, since this was a VM. Apparently it stores user account data in LDAP and mail schema information in a MySQL 5.0 database which was also installed. I’m not sure yet where it stores the data (email, etc.) but I think it’s on the raw file system as it should be.

The web interface is pretty cool with lots of AJAX. That said, it doesn’t work in Safari 3.x beta yet; I read they’re working on that. Since that is my primary browser, I was using Camino 1.5 instead.

Jake is going to be testing the MAPI connector and the mobility features and I’m sure he’ll report on that soon.

I’m going to move on to setting up a Scalix server next I believe. We’re looking for a good open-source, Outlook-supporting collaboration server that’s on par with Exchange server.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Ubuntu default install doesn’t have SSHd

Friday, October 5th, 2007

I’m installing Zimbra to test it out, so I spun up a Ubuntu virtual machine on our VMware server. Much to my surprise, the base install of Ubuntu 6.04 doesn’t have an SSH server turned on or even installed. Since Ubuntu uses the Debian package manager, it’s very easy to install; just annoying that you have to do it at all:

# sudo apt-get install openssh-server
[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

How to Clone a Virtuozzo VPS

Friday, October 5th, 2007

This comes in handy. You can take an “image” of a VPS, and just not start it up (ever). Then later, when you need to spawn a new instance of it, just clone it again.

# vzmlocal -C old_VEID:new_VEID
[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

I Lost My iPod

Thursday, October 4th, 2007

So I lost my iPod today, I’m pretty bummed about that. I was sitting outside of math class waiting to go in and I had my headphones in. I opened up my laptop and plugged them into that. I must have laid my iPod down next to me while I was doing something on my laptop, but then didn’t pick it up when I went into class. Naturally, when I came out of class it wasn’t still laying there and I didn’t think about it until it was too late.

So, I have a few options:

  1. Buy Jake’s 30GB iPod Video (probably $150-175 w/ accessories?)
  2. Buy a new iPod nano 4GB ($149 before student discount)
  3. Buy a brown Zune (ha…ha…ha)

hmmm….

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Why I Hate Bluesboro

Thursday, October 4th, 2007

So last night I played at Bluesboro with the band Crisis. This is the last time I’ll play with them, and it’s I’ve really enjoyed. That said, let me explain why I hate Bluesboro. We were supposed to go on at 9 or 9:30, so I got there at 8:30 which would give me just enough time to setup and get started.

I arrived on time, setup everything, and then we waited. We did a sound check around 9:30 — whatever that means, seeing as the sound went from bad to bad — then we stopped. We were told to wait a while, so we did. Around 10PM, some random dude briskly walked in off the street with a guitar and walked up on stage. He plugged in and did a “sound check.” We were shocked, who is this guy? Apparently he is the person that was playing before us.

So, we watched as he played and were fully determined he was either coked or cracked out. Not only could you not understand him, but he seemed to occasionally go into convulsions mid-song. Further, he did a few covers that were not covers at all; instead, he just randomly inserted various explicitives into what would normally be a good song. For a single guy with an acoustic guitar, it was overall very disturbing.

So, we were supposed to go on at 9PM but we don’t wind up going on until around 11PM. That is VERY unprofessional on the parts of Bluesboro. I wish Crisis the best of luck now that I’m no longer with them, and I’ll definitely be seeing them the next time they have a gig; but, if I never play at Bluesboro again I will be a very, very happy person.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]