Wednesday, November 26, 2008 
Eee on MacBook

I've been very happy with my MacBook Pro. It's my primary home machine, sitting on the living room coffee table, and getting far more use than the desktop system in my office upstairs.

But it rarely leaves the house. It's big–a 17" screen–and it's heavy. I seldom carry it anywhere and I hardly ever bring it to a coffee shop.

I bought myself a netbook last month, an Asus Eee 1000H: 10" screen, 1024x600, 1.6GHz dual core Atom, 1GB RAM, 160GB hard disk, 3lbs, $479. Look at how much bigger the MacBook is in the photo! For reference, the Eee 1000H is the same size as a magazine. It's small enough and light enough that I take it with me every day, and it's been inside many a coffee shop.

The Eee came with Windows XP Home. I immediately repartitioned it and put Ubuntu Eee on the second partition. I don't think I've booted back into Windows after the first few days. All the devices (webcam, sound) and apps (Skype, Flash) work and I have all the Ubuntu goodness, optimized for this form factor, instead of a seven-year-old operating system.

The keyboard is adequate for my slender hands, though I would not care to do a lot of writing on it. The main problem that I continue to have with it is the placement of the right-hand Shift key, to the right of the Up-arrow key. My touch-typing fingers expect to find Shift beside the /, dammit.

The Elantech trackpad drove me nuts initially. Under both XP and Ubuntu Eee, it's configured with all kinds of multitouch gestures. Far too often, I inadvertently clicked or selected merely by hovering over the trackpad while typing. With some pain (especially on Ubuntu), I figured out how to turn all that crap off, so that it merely moves the mouse around and the right edge scrolls.

The screen is a little too small at 1024x600. The Netbook Remix interface replaces the GNOME desktop with a custom launcher. Each window runs maximized by default with minimal trimmings.

For a low-power machine, it's surprisingly fast. The Atom has two cores, so even if one is maxed out, the other one keeps the machine responsive. 1GB has been sufficient so far, but I'll probably get a 2GB stick because RAM is cheap.

I'm very pleased with the Eee. It nicely complements my MacBook.

posted on Wednesday, November 26, 2008 8:33:24 AM (Pacific Standard Time, UTC-08:00) 
#    Comments [0]
Tuesday, May 13, 2008 
Sharing Dotfiles between Windows and *nix

Tomas Restrepo wrote a post about sharing dotfiles between Windows and Ubuntu, specifically about sharing .vimrc (Linux) and _vimrc (Windows) and the .vim (Linux) and vimfiles (Windows) directories.

I have a different solution. On Windows, my C:\AutoExec.bat includes:

set HOME=C:\gvr
set VIM=C:\Vim
set VIMDIR=%VIM%\vim71
set EDITOR=%VIMDIR%\gvim.exe
set PATH=%PATH%;C:\Win32app;C:\GnuWin32\bin;C:\UnxUtils;C:\SysInternals;C:\Python25\Scripts

%HOME% (C:\gvr) contains _vimrc, vimfiles, and other stuff accumulated over many years. This directory is stored in a personal Subversion repository at DevjaVu. All my Vim files are stored with Unix LF endings, not Windows CR-LFs, so that they'll work on my Mac OS X and Linux boxen. I play some games with if has("win32") and if has('gui_macvim') to ensure that my _vimrc works cross-platform.

On my *nix boxes, the gvr folder lives under my home directory at ~/gvr, and ~/.vimrc and ~/.vim are symlinks:

$ ln -s ~/gvr/_vimrc ~/.vimrc
$ ln -s ~/gvr/vimfiles/ ~/.vim

In addition, the dotfiles that I keep in SVN are stored locally in ~/gvr/dotfiles without a leading period in their names, which makes them easy to see:

$ ln -s ~/gvr/dotfiles/bashrc ~/.bashrc

This arrangement works well for me.

posted on Wednesday, May 14, 2008 6:28:36 AM (Pacific Daylight Time, UTC-07:00) 
#    Comments [1]
Sunday, February 04, 2007 

content/binary/laptop-woes.jpg

My laptop scared the crap out of me last night. I came home to find it in a completely unresponsive state: it would not wake up. The hard disk LED was a solid green. I power cycled it and it refused to boot.

It did, however, boot from a Kubuntu Edgy CD, but it did not recognize the hard disk. In desperation, I booted into the BIOS and played with the disk-related menus. That fixed the problem, but I don't know what went wrong, and my faith is shaken in the reliability of this system.

I bought the laptop just over three years ago, shortly before I quit Microsoft, as a replacement for the work laptop that I had been using. It's served me well. I have a reasonably beefy desktop system of the same age, but I almost always use the laptop instead. It's a Compaq Presario X1012QV, with a 1.3GHz Centrino, a WXGA screen, 35GB hard disk, and 1280MB RAM. It had 512MB RAM originally, but I replaced one of the 256MB sticks with a 1GB stick last year, making it more pleasant to use.

For several months now, I've been planning to buy a new Vista-ready laptop this spring, with a Core 2 Duo, ~100GB disk, and 2+GB RAM. I want a 64-bit CPU so that I can occasionally run Win64; e.g., to update the Win64 port of Vim. I'm severely tempted by Apple and expect to end up with some kind of Mac laptop — my first ever Mac. I was hoping to hold out until Mac OSX 10.5 (Leopard) comes out sometime this spring, but the latest rumors say that it's "edging the very limit of the definition of 'Spring' — i.e. mid-June". If the Presario craps out on me again, I'll replace it in short order.

Whether I go with Mac or stick with a PC, I'll continue to run multiple OSes. Kubuntu Linux has been my primary operating system since last June, and I think it's unlikely that Vista will replace it. OSX may well do so.

posted on Sunday, February 04, 2007 9:19:32 AM (Pacific Standard Time, UTC-08:00) 
#    Comments [3]
Tuesday, December 26, 2006 

content/binary/rainlendar.png

I've dualbooted my laptop between Linux and Windows since June, spending nearly all of my time in Linux. I started out with Ubuntu 6.06 (Dapper Drake), but soon switched to Kubuntu (the KDE variant), later upgrading to Kubuntu 6.10 (Edgy Eft).

To make this useful, certain key applications have to be available in both Windows and Linux. Firefox for browsing; Thunderbird for email; Rainlendar for calendar; KeePass and KeePassX for password management; among others.

My laptop has four partitions:

  • Primary 1, NTFS - Windows, aka /windows or /dev/hda1. 8GB

  • Primary 2, Ext3 - Linux system partition, aka / or /dev/hda2. 12GB

  • Extended 1. Linux swap partition. 2GB.

  • Extended 2, Ext3. Shared partition, aka /shared. 15GB.

I'm using NTFS-3G under Kubuntu to read and write the NTFS partition. Linux has long had support for reading NTFS partitions, but only recently has good support for writing NTFS partitions been added. It's a user-mode only filesystem, so it's not possible to run Linux from an NTFS partition.

I've installed Ext2 IFS (Installable File System) on Windows, which allows me to read and write Ext3 (and Ext2) partitions. I keep cross-platform data, such as my Thunderbird mail folders, on the Ext3 partition, /shared. My home directory is also on the /shared partition, so there's very little data that I mind losing on the / partition. I haven't had any problems with Ext2 IFS, except that I've had no luck with external USB hard drives formatted as Ext3. I'm not about to convert my Windows partition to Ext3, however.

Rainlendar is a fairly recent addition to the above list of cross-platform apps. I was using Mozilla Sunbird, but I never liked it very much. It's very much the poor cousin of Firefox and Thunderbird. Sunbird is slow, clunky, and ugly, with very few developers, who have taken years just to get it to version 0.3. It supports iCal as an export format, but publishing calendars to the web is a bear.

I discovered Rainlendar a couple of months ago. It's far slicker, with a large set of skins, and more functionality. iCal is the native format. Rainlendar is based on wxWidgets, so it's cross-platform. Installation on Linux consists of extracting everything from a compressed tar file. There's no deb or rpm packages to install it into your system menu, alas. I've been running it by using Alt+F2 (Run Command) to launch /shared/georger/rainlendar2/rainlendar (yuck!)

Earlier today, I ran across the very useful ArsGeek site, which has an enormous set of useful tips for Ubuntu users. One post on installing Songbird inspired me to figure out how to add Rainlendar to the KDE Menu.

First, open up a terminal, then:

 cd /opt
sudo mkdir rainlendar2
sudo chown georger:georger rainlendar2
tar jxvf /shared/Downloads/Rainlendar-Lite-2.0.1.tar.bz2

Substituting your username twice in the chown line.

You should now be able to run Rainlendar from the command line:

 ./rainlendar2/rainlendar2 &

At this point, you may want to install a different skin, as the default look is overwhelming in my opinion. I use the Vista skin. The older skins (.zip files) need to be unzipped into rainlendar2/skins; newer skins (.r2skin files) merely need to be copied into that directory.

Now to get the Rainlendar icon into /usr/share/pixmaps. (Finding the damn icon was the trickiest part of this whole exercise.):

 cd rainlendar2/resources
unzip -j resources.zrc res/logo-large.png
sudo mv logo-large.png /usr/share/pixmaps/rainlendar.png

Finally, let's add Rainlendar to the Office menu. ArsGeek gives the instructions for using Alacarte under Gnome. For KDE, click the K Menu button, right-click on Office, and choose Edit Menu, which brings up the KDE Menu Editor. Click New Item, then set:

  • Name: Rainlendar

  • Description: Calendar

  • Comment: Manage calendar and todos

  • Command: '/opt/rainlendar2/rainlendar2'

Click the blank icon button, then Other icons. Choose the rainlendar icon and click OK. Save the new menu entry.

You should now be able to launch Rainlendar from the Office menu. Enjoy!

posted on Tuesday, December 26, 2006 10:29:49 PM (Pacific Standard Time, UTC-08:00) 
#    Comments [0]
Thursday, October 26, 2006 

content/binary/linux-security-cookbook.gif

Windows deservedly gets a lot of bad press about the unending stream of security updates. But Linux, despite all of the propaganda about it being more secure than Windows, has its own security problems.

Take this post from LWN.net yesterday:

No security updates today
[Posted October 25, 2006 by corbet]

It is sad that this is worthy of note, but it is: on this day, Wednesday, October 25, we have not received a single security update for any Linux distribution.

(This post was composed on a laptop running Kubuntu 6.06.)

posted on Friday, October 27, 2006 6:40:36 AM (Pacific Daylight Time, UTC-07:00) 
#    Comments [0]