This page contains notes on how to set up an account on a computer named web3.ias.csusb.edu.
This assumes that your instructor has set up a server according to Subversion Server Setup.
After setting up a repository according to these instructions,
you can access your repository through a subversion client.
Subversion clients take many forms.
If you are working from the command line in Linux,
you can use the svn command as described in Subversion Command Line Usage Notes.
If you are working in Eclipse (regardless of operating system), you can access the repository through a plugin, such as Subclipse.
If you are working under Windows with a tool that does not have a Subversion client built into it, you can use TortoiseSVN.
Subversion clients will access your repository through the apache web server running on web3 through the following url.
https://web3.ias.csusb.edu:8443/username
Allow apache user to descend into your home directory by setting the execute bit on your home directory as follows.
chmod +x ~
To create a Subversion repository on web3, do the following.
Create a folder called repo in your home directory, initialize it for use as a Subversion repository,
and change permissions so that the apache user has write privileges on the directories and files within it.
The commands needed to do this are as follows:
cd mkdir repo svnadmin create repo chmod 777 repo cd repo chmod 777 conf chmod 666 conf/* chmod 777 dav chmod 777 db chmod 666 db/current chmod 666 db/fs-type chmod 666 db/uuid chmod 666 db/write-lock chmod 777 db/revprops chmod 777 db/revs chmod 777 db/transactions chmod 777 hooks chmod 666 hooks/* chmod 777 locks chmod 666 locks/*
For you and your team members to access the repository, you will need to establish usernames and passwords.
Create an initial username and password for access to the repository. (The -c flag means create.)
htpasswd -c /home/username/svn-users username
Create all additional usernames and passwords without the -c parameter.
htpasswd /home/username/svn-users othername
If you are going to develop on web5, then read this section. If you will develop on another machine, you completed all necessary configuration of your account in the previous section.
You have the choice between 2 text editors on web5: vi and nano. Nano is considered an easy-to-learn text editor. (See nano home page for information on how to use nano.) When you commit changes to a repository, the Subversion client will launch a text editor for you to enter a comment. When it does this, it will start the text editor specified with the environmental variable SVN_EDITOR.
If you want to use vi as your text editor, add the following line to ~/.bash_profile.
export SVN_EDITOR=vi
If you prefer to use nano, then add the following line to ~/.bash_profile.
export SVN_EDITOR=nano
To avoid submitting a comment through a text editor, you can alternatively provide a comment with the -m
as illustrated in the following example.
svn commit -m "fixed bugs"