tony spencer » Linux It's Just Links Sat, 19 Oct 2013 14:31:31 +0000 hourly 1 Setup a Subversion Server in 4 Minutes Fri, 02 Mar 2007 17:11:18 +0000 tony You are going to need to type fast but I think you can do it in 4 minutes. :) These are my notes on what worked for me on my Fedora core 6 with svn lib already installed by the package manager:

1. Create a Repository

svnadmin create /svnrepos

2. Create a SVN User

vi /svnrepos/conf/svnserve.conf

In that file add these three lines:

anon-access = none
auth-access = write
password-db = passwd

Create a password file:

vi /svnrepos/conf/passwd

In that file add a line for your user:

# add users in the format : user = password
tony = mypassword

3. Import Your Project

(assuming you’ve put your project files in /projects/myrailsproject)

svn import /projects/myrailsproject file:///svnrepos/myrailsproject

4. Start the SVN Server as Daemon

svnserve -d

Done! You should now have a svn server running with one project named myrailsproject.

Try checking it out of the repository:

svn co svn://

Since we set anon-access to none you should be prompted for username and password which you created in the file /svnrepos/conf/passwd.

]]> 31
Copy an Entire Directory in Linux Fri, 04 Nov 2005 17:10:00 +0000 Tony Yeah, this is simple but I’m forgetful so heres how you copy an entire directory, its subdirectories, and files:

cp -R dirtocopy/ newdir/

]]> 35
Create a tar file of an entire directory and its sub-directories Wed, 02 Nov 2005 16:37:40 +0000 Tony To create a tar archive of an entire directory including all files and sub-directories:

tar -cvf mytarfile.tar mydir/

]]> 7
grep all files and sub-directories in a directory for a string Fri, 14 Oct 2005 22:34:00 +0000 Tony This is mostly just a post for my recollection. To search all files and subdirectories recursively for a phrase:

grep -r -i somethingtosearchfor ./

]]> 4