More dotfiles


March 4th, 2009

By special request. These are all pulled by my .zshrc if existing copies aren't there:

.htoprc - for htop

.screenrc - for GNU Screen

.config/terminator/config - for Terminator terminal

.vimrc - for Vim

.ssh/config - for ssh/sshd

My .zshrc


February 10th, 2009

I have always known a few people who use zsh over bash, but recently they seem to be increasing in numbers. I decided to jump ship too and haven't looked back. Possibly that's because I've actually spent some time setting up my .zshrc...

Permanent link here. I use this .zshrc regularly on both Linux and FreeBSD machines, some quite old, so it's reasonably compatible. Includes an interesting prompt that changes the colour of the depending on the hostname (thanks, nameless coworker).

Note that this zshrc writes quite a few files and overwrites existing ones in some cases. Caveat emptor.

Mount a Windows share from Ubuntu


January 19th, 2009

You'd think by now a simple solution to this would have percolated up to the top few results in a Google search. Sadly not.

ajlaptop:~> sudo apt-get install smbfs
[...]
ajlaptop:~> sudo mount -t cifs '\\AJ\Music' /mnt/home-music -o username=alex
ajlaptop:~>

Into fstab:

\\AJ\Music    /mnt/home-music    smbfs    credentials=/home/aj/.smbpasswd-home-aj,noauto,uid=aj,gid=aj,ro    0    0

See Also:

mount.smbfs(8)

"Please free 53.93mb and click Retry"


January 18th, 2009

I got this nice message when installing drivers on my brother's old-but-newly-formatted machine. The motherboard is a Gigabyte GA-K8NF-9 (runs Athlon64 CPUs), the installers were from Gigabyte's website, and used the InstallShield wrapper. I had a fresh WinXP SP1a install, and this message appeared despite the >100gb free space.

The solution is a little strange: enable compatibility mode and set it to NT4 mode. The installer should get to the main wizard screen now, and then fail because it thinks your OS is too old. Now, disable compatibility mode, and re-run the installer. Voila!

Misc