| |
How do I edit pages in a group with the "CVS Authoring" option? John Reekie, 4 Aug 1999 Last updated: 20 Dec 2002
First, bear in mind that CVS authoring is generally
useful for software projects, in which case we assume
that you know the basics of CVS and can use SSH.
For further information about CVS, see the
GSRC CVS FAQ
- If you are a group administrator check that
your group has cvs authoring turned on by going
to your group pages and then clicking on the
Admin link and then Configure Group
link and verifying that CVS Module
and CVS Checkin are selected.
If these two choices are not selected, then
select them and hit the Change Group Configuration
button at the bottom. This will send email to
webmaster, who will then set up your cvs repository
and send email back to you. While you are waiting,
you can proceed with the steps below.
- If you don't yet have a CVS account on
gigasource.eecs.berkeley.edu, get one.
You can
request a CVS account.
- If ssh and cvs are not yet installed, then
install the SSH client and CVS
- Make sure that CVS_RSH is set to use ssh.
To check under Windows, start up a Bash shell
(Start->Programs->Cygnus Solutions->Cygwin Bash Shell)
and type
echo $CVS_RSH. If it is not set, then
set it using Start->Settings->Control Panel->System->Advanced->Environment Variables
CVS_RSH should be added and set to ssh.
You may want to check that your path has been set
to include Cygwin, which is located at c:\cygwin\bin
To check under Unix, start a shell and type echo $CVS_RSH.
If CVS_RSH is not set, then edit your shell startup files to
set it automatically. If you run C-shell (csh), or some variant
like tcsh, edit ~/.cshrc and add
setenv CVS_RSH ssh
If you run the Bourne shell (sh) or some variant like bash,
edit ~/.profile and add
CVS_RSH=ssh
export CVS_RSH
- Create a file in your home directory called
.cvsrc that contains:
update -P -d
This is necessary so that when you run
cvs update, then the -P
and -d flags are automatically appended.
cvs update -P -d will prune any directories
that contain no files and create any new directories
that someone else has checked in.
If you do not create a ~/.cvsrc file,
then you will need to run
cvs update -P -d instead of cvs update
- Once you have received email stating that your cvs account is setup, log
on to the cvs server with
ssh gigasource:
ssh gigasource.eecs.berkeley.edu
If your gigasource login is different from your local login then you should
-l <i>username</i>:
ssh -l username gigascale.eecs.berkeley.edu
Once successfully logged in change your password with the passwd
command to something more reasonable
ptolemy@maury 67% ssh gigasource
ptolemy@gigasource's password:
Last login: Fri Aug 27 17:50:34 1999 from maury.eecs.berke^M
No mail.
$ passwd
passwd: Changing password for ptolemy
Enter login password:
New password:
Re-enter new password:
passwd (SYSTEM): passwd successfully changed for ptolemy
$ exit
Connection to gigasource closed.
ptolemy@maury 68%
- If your group is called
foo, then check out the foo (for example)
module from CVS with:
cvs -d :ext:gigasource.eecs.berkeley.edu:/home/cvs co foo
- The CVS repository for each workgroup has
a
web subdirectory that contains the website.
There may also be adjacent directories that contain software
projects.
To change the website,
cd into the foo/web directory
and edit a file
- Commit your changes with
cvs commit -m "message about your change" fileyouedited
You will then be prompted for your password, and
the change will be committed.
- Go to a page in that workspace. You will see an "CVS Update"
link in the toolbar at the bottom of the page.
Click on it.
- Press on the "Go back" link and make sure that the
pages are what you expect.
| |