[m-rev.] for review: update page on remote CVS

David Overton dmo at cs.mu.OZ.AU
Mon Mar 4 16:49:41 AEDT 2002


On Mon, Mar 04, 2002 at 04:21:40PM +1100, Fergus Henderson wrote:
> On 04-Mar-2002, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> > On 04-Mar-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > > On 04-Mar-2002, David Overton <dmo at cs.mu.OZ.AU> wrote:
> > > > -	<li> There are some checks that are done via questions.  In
> > > > -	particular, our CVS repository does checks for up-to-date
> > > > -	copyright messages on all files.  These checks don't work very
> > > > -	well using the CVS `pserver' as mentioned here -- when you check
> > > > -	in it will complain that it doesn't know how to interact with
> > > > -	you.  Contact us if this is a big problem -- we know some
> > > > -	workarounds.
> > > 
> > > They probably don't work well when using `ssh' without a pty either.
> > > So (a) this text should stay (just modified to not be specific to
> > > CVS `pserver') and (b) the suggestion about putting no-pty in the
> > > ~user/.ssh/authorized_keys file should probably be removed.
> > 
> > The check.pl script uses X to communicate with remote users, so
> > using no-pty and removing the text above is the right thing to do.
> 
> That only works if the remote user is using X,
> which is not necessarily the case.
> So I still think it no-pty should not be used
> and the text above should stay.
> 
> > +	<li> Set the CVS_RSH environment variable to be the name
> > +	of a shell script with the following contents:
> > +	<pre>
> > +		#!/bin/sh
> > +		exec ssh -X "$@"
> > +	</pre>
> 
> This is a good idea.

I would prefer to tell the user to set X11 forwarding in their ssh
config file.  How's this (relative diff)?

diff -u remote_cvs.html remote_cvs.html
--- remote_cvs.html	4 Mar 2002 04:13:07 -0000
+++ remote_cvs.html	4 Mar 2002 05:47:46 -0000
@@ -104,7 +104,7 @@
 			that file.  The key should be all on one line, and at
 			the start of the line you should add the string
 			<pre>
-	command="cvs server",no-port-forwarding,no-pty
+	command="cvs server",no-port-forwarding
 			</pre>
 			This prevents the user from doing anything with their
 			account except using the CVS server.
@@ -118,6 +118,8 @@
 	  Also there is a product called 
 	  <a href="http://www.wincvs.com/">WinCVS</a> that should
 	  work (although we haven't tried it ourselves).
+	  CVS and OpenSSH are also both included in
+	  <a href="http://cygwin.com/">Cygwin</a>.
 </ul>
 
 Then (once your account is set up):
@@ -132,6 +134,19 @@
 	  "setenv" to set the environment variable in the first place).
 
 	<li>  Set your CVS_RSH environment variable to "ssh".
+
+	<li> There are some checks that are done via questions.
+	In particular, our CVS repository does checks for up-to-date copyright
+	messages on all files.
+	For remote users this requires an X connection so you will probably want
+	to turn on X forwarding by adding the following to your
+	<tt>~/.ssh/config</tt> file:
+	<pre>
+	Host cvs.mercury.cs.mu.oz.au
+	ForwardX11 yes
+	</pre>
+	If you are not running an X server and you are having problems
+	committing changes because of this, please contact us.
 
 	<li> You can do "cvs co mercury" to check out the main mercury
 	  module. This can take a while over a slow connection, but you

-- 
David Overton      Computer Science and Software Engineering
PhD Student        The University of Melbourne   +61 3 8344 9159
Research Fellow    Monash University (Clayton)   +61 3 9905 5779
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list