Skip to content

Font Anti-Aliasing and Mac OS X 10.6

Mac users may have noticed the options for adjusting font anti-aliasing / smoothing in Mac OS X 10.6 (Snow Leopard) have mysteriously disappeared from the “Appearance” section of System Preferences.  With Mac OS X 10.5 (Leopard) and before, users could control the level of font smoothing with classifications such as: Automatic, Standard, Light, Medium, and Strong.

Luckily, this now hidden preference, can still be accessed via the Terminal. Run the following command as the local user:

defaults -currentHost write -globalDomain AppleFontSmoothing -int 1

and replace the number at the end for the selection you wish:

1 – Light
2 – Medium
3 – Strong

Finally, log out and log back in to see the changes applied to the Finder and all applications.  A special “thank you” goes to Mac OS X Hints for supplying the information for this post.

Categories: Apple / Mac.

Tags: , , , , ,

Enabling sar Stats on Debian

Many CentOS and RHEL Linux administrators have come to rely on the sar tool as an easy way to see historical load, io, and memory statistics.  On Debian, sar functionality isn’t available by default but is easy to install.

apt-get install sysstat
dpkg-reconfigure sysstat

(select yes to activate sysstat’s cronjob)

After several minutes, you’ll have access to:

  • Check historical load averages: sar -q
  • Check historical memory utilization: sar -r
  • Check historical disk utilization: sar -u

As a side note, the sysstat package we installed also includes additional helpful utilities such as: iostat, mpstat, and pidstat.

Categories: Linux.

Tags: , , ,

HAProxy & Heartbeat on Cloud Servers

High availability load balancing can be easily configured on virtualized computing instances in the Cloud.  This post explores deploying HAProxy and Heartbeat on Rackspace Cloud Servers running Debian 5.0 Lenny.

The desired result of this project is to have a redundant load balancer pair in active/passive configuration, distributing requests across two Apache web servers where any one load balancer and any one web server can fail with the environment still operational.

Example Server List

Server Public IP Private IP

Virtual IP:

Step 1: Obtaining a Virtual IP

A Virtual IP is a static, public failover IP which can move between load balancers as needed.  This is the IP you will use for your ‘A’ records when configuring DNS for your domain(s).  You can easily request the failover IP via the Rackspace Cloud ticketing system (, but make sure to be very deliberate in the wording of your ticket or you may just get an additional IP provisioned which won’t share properly. Here is some sample ticket verbiage which may help: “Please provision a failover IP for lb1 and ensure that it is also shared with lb2.  I understand and agree to the $2/mo additional charge for the IP.”

Read More »

Categories: Linux.

Tags: , , , , , ,

Upgrading to Ubuntu 10.04 on VirtualBox

Now that the production release of Ubuntu 10.04 Lucid Lynx is out, users should consider upgrading.  Luckily, Ubuntu/Debian (unlike some other distros) makes it really easy to perform an upgrade without breaking things or retaining extra clutter from the pervious version.

I am running Ubuntu 9.04 Karmic Koala in a VirtualBox instance on my Macbook Pro.  The first set of commands can be used universally for all users running Ubuntu on any platform and the second are specifically for upgrading the VBox tools to work with the new kernel.

Upgrading Ubuntu (steps for all users):

apt-get clean
apt-get autoremove
nano -w /etc/apt/sources.lst

(change all references of “karmic” to “lucid”)

apt-get update
apt-get dist-upgrade
apt-get autoremove

Upgrading VBox Tools (for VirtualBox users only):

cd /cdrom

Once you log back in, verify that window resizing and mouse traversal in and out of the VM work correctly. If so, you should be all set and your upgrade is now complete. If you run into any issues, feel free to email me and I’ll do my best to give you a hand.

Categories: Linux.

Tags: , , ,

Slow Shell Prompt in

Have you recently noticed your shell prompt taking longer and longer to show up after you open in Mac OS X Leopard or Snow Leopard?  In some cases, I’ve seen the delay to be as long as 7-10 seconds.  Well, here is a quick tip to alleviate the issue.

cd /var/log/asl
sudo rm -rf *

The above commands clear the Apple System Log and the problem is instantly resolved.

Categories: Apple / Mac.

Tags: , , ,