tony spencer » Linux http://www.tonyspencer.com It's Just Links Sat, 19 Oct 2013 14:31:31 +0000 http://wordpress.org/?v=2.9.1 hourly 1 Setup a Subversion Server in 4 Minutes http://www.tonyspencer.com/2007/03/02/setup-a-subversion-server-in-4-minutes/ http://www.tonyspencer.com/2007/03/02/setup-a-subversion-server-in-4-minutes/#comments Fri, 02 Mar 2007 17:11:18 +0000 tony http://www.tonyspencer.com/2007/03/02/setup-a-subversion-server-in-4-minutes/ 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://192.168.0.2/svnrepos/myyrailsproject

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

]]>
http://www.tonyspencer.com/2007/03/02/setup-a-subversion-server-in-4-minutes/feed/ 31
Copy an Entire Directory in Linux http://www.tonyspencer.com/2005/11/04/copy-an-entire-directory-in-linux/ http://www.tonyspencer.com/2005/11/04/copy-an-entire-directory-in-linux/#comments Fri, 04 Nov 2005 17:10:00 +0000 Tony http://www.tonyspencer.com/2005/11/04/copy-an-entire-directory-in-linux/ Yeah, this is simple but I’m forgetful so heres how you copy an entire directory, its subdirectories, and files:

cp -R dirtocopy/ newdir/

]]>
http://www.tonyspencer.com/2005/11/04/copy-an-entire-directory-in-linux/feed/ 35
Create a tar file of an entire directory and its sub-directories http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/ http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/#comments Wed, 02 Nov 2005 16:37:40 +0000 Tony http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/ To create a tar archive of an entire directory including all files and sub-directories:

tar -cvf mytarfile.tar mydir/

]]>
http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/feed/ 7
grep all files and sub-directories in a directory for a string http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/ http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/#comments Fri, 14 Oct 2005 22:34:00 +0000 Tony http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/ This is mostly just a post for my recollection. To search all files and subdirectories recursively for a phrase:

grep -r -i somethingtosearchfor ./

]]>
http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/feed/ 4