I’ve finally decided to bring my personal projects out of the dark ages. After using CVS for years and years, I’m making the leap to Subversion. Git and friends look appealing, but, the fact is that “a little better than CVS” does it for me at this point. Plus I understand Subversion and the tool support on the Mac is excellent. For my server, I’m using VirtualBox 1.6.2 as the host and Ubuntu JEOS 8.04 as the guest. These notes may or may not be useful for others. I’m just trying to keep track of what I did here.

I used a VirtualBox machine set for Ubuntu with 512MB RAM and 3 virtual disk files.

The first is 1GB and contains only the root partition. The second is 2GB and has swap, /tmp and /var. (256MB, 700MB and 1.2GB respectively) The third is 8GB and has /home (2GB) and /srv (6.1GB). /srv is where subversion and trac data files will land. Here’s what it looks like after the installation:

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1            1012M  324M  638M  34% /
/dev/sdc5             1.9G   35M  1.8G   2% /home
/dev/sdc6             6.1G  142M  5.7G   3% /srv
/dev/sdb5             662M   17M  612M   3% /tmp
/dev/sdb7             1.2G  198M  875M  19% /var

On the first reboot, all I did from the virtualbox console was find out the MAC address of the network adapter so I could assign a fixed IP in my DHCP server, then

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install openssh-server

That done, I rebooted the virtual machine to be sure that the kernel was current and went to install the VirtualBox additions. Since the JEOS installation is intentionally light, before the additions could be installed, a few packages were needed:

sudo aptitude install build-essential linux-headers-$(uname -r)

Then installing them was simple enough. After choosing “Install Guest Additions” from the VirtualBox GUI, all it took was

sudo mount /media/cdrom
sudo sh /media/cdrom/VBoxLinuxAdditions.run
sudo umount /media/cdrom

After that, I shut down the machine to start it headless. With the VM stopped, from the host:

VBoxManage startvm brain -type vrdp