Now, since we were getting started with the OpenGL semester project, we wanted to prepare a robust system that 5 people can use to share source code and manage the content. So, i decided to set up a svn server on my PC with ssh server running, so they could use it to checkout/checkin programs from my computer.
I had a small research session to decide weather to use SVN or CVS, but due to easier management options, i decided to go for SVN. For more details, do a classic svn vs cvs search in Google.
Now, to install Subversion (SVN) first, i went to this site, which promised an easy way to set up the repository.
sudo apt-get install subversion
Never mind, it'll already be installed, unless your OS is some ultra slim OS.
now, We create a repository. Mind you, a repository needs its own directory. It wont be readable to bare eyes, because the files are usually stored in a binary format.
svnadmin create /home/siddhartha/Documents/programs/opengl/project
now, change to that project, edit the svnserve.conf and remove comments on the following lines:
[general]
passwd-db=passwd
realm = Siddhartha's Repository
In the same folder, edit the passwd file to enable/create the following lines, user = password being the syntax to add a user and a password for him/her.
[users]
siddhartha = siddhartha
user = password
now, set the default SVN_EDITOR to select a program to add to the log.
#export SVN_EDITOR=vi
#svnserve -d -r /home/siddhartha/Documents/programs/opengl
This will run the svn server in daemon mode.
now, add files to it:
$svn import project file:///home/siddhartha/Documents/programs/opengl/project
here project is the original source tree, and we are assuming you are in the same directory as project is in.
to use SVN, here is a tutorial:
http://www.clear.rice.edu/comp314/svn.html.
I had a small research session to decide weather to use SVN or CVS, but due to easier management options, i decided to go for SVN. For more details, do a classic svn vs cvs search in Google.
Now, to install Subversion (SVN) first, i went to this site, which promised an easy way to set up the repository.
sudo apt-get install subversion
Never mind, it'll already be installed, unless your OS is some ultra slim OS.
now, We create a repository. Mind you, a repository needs its own directory. It wont be readable to bare eyes, because the files are usually stored in a binary format.
svnadmin create /home/siddhartha/Documents/programs/opengl/project
now, change to that project, edit the svnserve.conf and remove comments on the following lines:
[general]
passwd-db=passwd
realm = Siddhartha's Repository
In the same folder, edit the passwd file to enable/create the following lines, user = password being the syntax to add a user and a password for him/her.
[users]
siddhartha = siddhartha
user = password
now, set the default SVN_EDITOR to select a program to add to the log.
#export SVN_EDITOR=vi
#svnserve -d -r /home/siddhartha/Documents/programs/opengl
This will run the svn server in daemon mode.
now, add files to it:
$svn import project file:///home/siddhartha/Documents/programs/opengl/project
here project is the original source tree, and we are assuming you are in the same directory as project is in.
to use SVN, here is a tutorial:
http://www.clear.rice.edu/comp314/svn.html.
No comments:
Post a Comment