Setting up NFS and Subversion on Centos 6

$ yum update;

Get the NFS parts needed

yum install nfs-utils and yum install nfs-utils-lib;

$ yum install subversion

$ mkdir /var/nfs/

$ chmod -R 777 /var/nfs/

$ cd /var/nfs/

$ svn checkout http://wherever.yourcode.com/ /var/nfs/

$ rsync -vru --exclude-from 'exclude.txt' --progress -e ssh user@ /var/nfs/

Turn off selinux

$ 0 >/selinux/enforce

Make sure selinux is not going to restart on a server reboot

chkconfig selinux off

 Set the nfs deamon to run on reboot

$ chkconfig nfs on


$ vi /etc/exports

Add this

/var/nfs           client.ip.address.here(rw,sync,no_root_squash,no_subtree_check)

exportfs -a