Friday, February 24, 2006

Subversion Configuration and Install

1) Install packages


$ apt-get install subversion


2) Create sample repos:


$ svnadmin create /var/svn/home


3) Run as a service:


a) make sure inted is installed and configured


$ apt-get install inetd


$ vi /etc/services and insert:


svn 3690/tcp # Subversion


svn 3690/udp # Subversion


$ vi /etc/inetd.conf


svn stream tcp nowait svn /usr/bin/svnserve svnserve -i -r /var/svn


{the svnowner is the userid, so make sure it exists}


4) Make sure your user-id has write perms to the repos created above by the svn user


Thursday, February 23, 2006

SSHFS and Fuse

Great way to have a secure remote filesystem at home and be able to mount it locally while at coffee shop or at work.


1) Download and install fuse and sshfs from Sourceforge.net


2) ./configure, make, and sudo make install for both fuse and sshfs


3) fuse will install libs under /usr/local/lib, so you must give kernel information on where to find the information by adding "/usr/local/lib" to the end of /etc/ld.so.conf.


4) Update ld cache: sudo ldconfig


5) I had to update /etc/modules to include "fuse" so that udev will re-create /dev/fuse when the module is loaded.


6) mount your remote directory:


$ mkdir thisdir


$ sshfs dbreese@192.168.1.200: thisdir


$ mount


7) Unmount it:


$ fusermount -u thisdir

8) If /dev/fuse issues arrise (doesn't exist or can't write to it):

# mknod /dev/fuse c 10 229
# chmod o+rw /dev/fuse