Setting up Subversion

April 12th, 2007

With the growing number of projects I have been working on, version control seems to become increasingly important.  With a system for version control, willy nilly saving and copying of files is a thing of the past.

Here is a quick and dirty usage guide to start a project.

SVN Usage:

Creating a project:
On Server, run:
#svnadmin create /var/svn/(project)
#svn import (project) file:///var/svn/(project) -m “initial import”
#chown -R www:wheel /var/svn/(project)

To get a working copy:
svn checkout http://china.jellyfishnetwork.com/svn/(project)

To deploy:
svn export http://china.jellyfishnetwork.com/svn/(project)

For a more  informative guide about setting up subversion on freebsd, see:

bsdguides

SSH Hanging on Freebsd Jail

February 13th, 2007

A common problem I have ran into while using freebsd 5 and 6 with jails is that ssh will hang on login.  This happens just after authentication and it is because there is no /dev filesystem mounted.  What happens is that in freebsd 4 you can use makedev.  However, in freebsd 5 and 6 this does not work.  You have to mount_devs:

#mount_devfs devfs /usr/jails/code-dev/dev

When you do this, ssh should work properly.

I am using Jails within freebsd on my server to create services for development, backup, and versioning.  The importance of it being on a jail is in decending order.  Development is great to have in its own world.  However, backup and versioning are good because they can later be moved to their own machine or onto some more complex setup at a later time without much effort.