Annotation of www/anoncvs.html, Revision 1.92
1.1 deraadt 1: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML Strict//EN">
2: <html>
3: <head>
1.49 ian 4: <title>OpenBSD AnonCVS</title>
5: <link rev=made href=mailto:www@openbsd.org>
6: <meta name="resource-type"
7: content="document">
8: <meta name="description"
9: content="How to get OpenBSD updates via Internet using Anonymous CVS">
10: <meta name="keywords"
11: content="openbsd,anoncvs,updates">
12: <meta name="distribution"
13: content="global">
14: <meta name="copyright"
15: content="This document copyright 1996-1998 by OpenBSD.">
1.1 deraadt 16: </head>
17:
1.14 downsj 18: <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#23238E">
1.1 deraadt 19:
1.58 pauls 20: <img alt="[OpenBSD]" height=30 width=141 SRC="images/smalltitle.gif">
1.14 downsj 21:
1.43 deraadt 22: <h3><font color=#0000e0>Anonymous CVS Access:</font></h3>
1.15 grr 23: <p>
24: Anonymous CVS is a method of keeping your local copy of the OpenBSD source
25: tree up to date with respect to changes made to current OpenBSD sources.
1.14 downsj 26: <p>
1.15 grr 27: The major advantage of Anonymous CVS over other source code update
28: techniques is that it works directly against a central source code
29: repository or mirror. This means that you have the full set of CVS
30: commands available to control merging and updating your changes with
31: other source changes and for performing diff's, change histories
32: and other queries against the central repository.
1.36 deraadt 33: <p>
34: You can use anoncvs to access our three main source repositories:
35: <strong>src</strong>, <strong>ports</strong>, and <strong>www</strong>.
36: <p>
1.43 deraadt 37: <h3><font color=#0000e0>CVS:</font></h3>
1.36 deraadt 38: <a href=why-cvs.html>
39: CVS is the source code control system used to manage the OpenBSD source tree.</a>
1.16 deraadt 40: It implements a central repository for all officially released source code
1.15 grr 41: and changes, while permitting developers to maintain local copies of the
42: source code with their working changes. Developers with "write access"
43: can commit changes directly to the OpenBSD source tree, while "Anonymous
44: CVS" users have "read access" and can keep their local copies of the source
45: up to date and issue queries against the central depository.
46: <p>
1.22 niklas 47: The major strength of CVS is that it has the ability to perform intelligent
1.15 grr 48: merges of changes to the central repository with changes that you make to
49: your local copy. This means that if you make a change to a module and
50: perform an update, your changes are not "blown away", rather CVS makes
51: best efforts to merge the changes made to the central sources with changes
52: you've made to your local copy.
53: <p>
54: In the event that the changes can't be completely merged, CVS provides a
55: "soft fallback", in terms of providing you with annotated changes to your
1.39 todd 56: local copy, preserving an unmodified copy of your version and continuing
1.15 grr 57: to update any other source modules you requested.
1.22 niklas 58: <p>
1.23 mickey 59: People who own an OpenBSD CD may have seen the CVS/ dirs on it.
1.22 niklas 60: Actually there is a reason, the CD has a checkout of the OpenBSD src/ module
1.23 mickey 61: usable to continue updating from. Using this tree will results in a much
62: faster initial CVS update than a fresh checkout of the full OpenBSD
63: source tree. There are two ways of using the CD:
64: <ul>
65: <li>copy the tree off it, (assuming the CD is mounted on /mnt):
1.22 niklas 66: <pre>
1.23 mickey 67: <b>#</b> cd /mnt; cp -Rp CVS Makefile bin distrib etc games gnu \
68: <b>></b> include kerberosIV lib libexec lkm regress sbin share \
69: <b>></b> sys usr.bin usr.sbin /usr/src
1.22 niklas 70: </pre>
1.23 mickey 71: <li>use a union mount with the CD below a writable directory.
1.22 niklas 72: <pre>
1.23 mickey 73: <b>#</b> mount -t union -o -b /mnt /usr/src
1.22 niklas 74: </pre>
1.23 mickey 75: </ul>
1.22 niklas 76: After this, /usr/src will be a nice checkout area where all cvs(1) commands
77: will work OK.
1.15 grr 78: <h4>CVS COMMAND SUMMARY</h4>
1.27 todd 79: <dt> cvs [cvs args] [cvs command] [cvs command args]
80: <dd> below is a listing of commonly used cvs commands.
1.15 grr 81: <dl>
82: <DT>add
83: <dd>Add a new file or directory to the repository.
84: <dt>get
85: <dd>Make a working directory of source files for editing.
86: <dt>commit
87: <dd>Apply changes to the source repository (write access)
88: <dt>diff
89: <dd>Show differences between local files and the source repository.
90: <dt>history
91: <dd>Show reports on cvs commands against the source repository.
92: <dt>log
93: <dd>Display CVS log information.
94: <dt>rdiff
95: <dd>Prepare a collection of diffs reflecting changes between release.
96: <dt>status
97: <dd>Show current status of files in the repository and local copies.
98: <dt>update
99: <DD>Bring your working directory up to date with the repository.
100: </dl>
1.1 deraadt 101: <p>
1.39 todd 102: To summarize, the real strength of using Anonymous CVS is that it is
1.15 grr 103: a "tolerant" source code control system - it <strong>respects</strong>
104: changes that you have made to your local sources and makes <strong>
105: "best efforts"</strong> to update your entire source tree, rather than
106: leaving you a list of arcane problems that have to be resolved before
107: continuing.
1.1 deraadt 108:
1.43 deraadt 109: <h3><font color=#0000e0>Using Anonymous CVS:</font></h3>
1.1 deraadt 110: <p>
111: The latest version of CVS is available at
1.47 pauls 112: <a href=http://download.cyclic.com/pub/>Cyclic</a>.
1.1 deraadt 113: Versions earlier than 1.6 are not recommended, and may not work.
114: If you already have OpenBSD installed, CVS is included.
115:
116: <p>
117: There are two levels of source tree access:
118:
119: <dl>
120: <dt><strong>Read-write access for developers:</strong>
121: <dd>Developers who need to commit changes to the source tree must have
122: an account on the OpenBSD machines. Getting this access will be a
123: natural result of working on the sources with other OpenBSD developers.
124: If someone does some good work and shows they can work with the team,
125: they will get an account.
126: </dl>
127:
128: <dl>
129: <dt><strong>Read-only access for everyone:</strong>
130: <dd>Anyone can access the read-only CVS repositories. These copies
131: of the read-write CVS repository are mirrored often. To use one,
132: set your <strong>CVSROOT</strong> environment variable to one of
133: the following values:
1.12 grr 134: <p>
135: <strong>Please see the note about using ssh vs. rsh below!</strong>
136: <p>
1.1 deraadt 137: <ul>
138: <p>
1.83 millert 139: <li><strong>CVSROOT=anoncvs@anoncvs1.usa.openbsd.org:/cvs</strong><br>
140: Host also known as <strong>anoncvs@anoncvs4.usa.openbsd.org</strong>.<br>
1.10 millert 141: located in California, western USA.<br>
1.46 millert 142: maintained by <a href=mailto:millert@openbsd.org>Todd Miller</a>.<br>
1.83 millert 143: protocols: pserver only.<br>
1.1 deraadt 144: updated every 4 hours.<br>
145: <p>
1.83 millert 146: <li><strong>CVSROOT=anoncvs@anoncvs.usa.openbsd.org:/cvs</strong><br>
147: Host also known as <strong>anoncvs3.usa.openbsd.org</strong>.<br>
1.1 deraadt 148: located at the University of Colorado, Boulder, western USA.<br>
149: maintained by <a href=mailto:Todd.Miller@cs.colorado.edu>Todd Miller</a>.<br>
1.71 millert 150: protocols: ssh, ssh port 2022, pserver.<br>
1.1 deraadt 151: updated every 6 hours.<br>
152: <p>
1.76 deraadt 153: <li><strong>CVSROOT=anoncvs@anoncvs5.usa.openbsd.org:/cvs</strong><br>
154: Host also known as <strong>squid.nas.nasa.gov</strong>.<br>
155: located at Ames Research Center, Moffett Field, California, USA.<br>
1.78 deraadt 156: maintained by <a href=mailto:allison@mail.arc.nasa.gov>Tyler Allison</a>.<br>
1.77 deraadt 157: protocols: ssh only.<br>
158: updated every 3 hours.<br>
1.84 beck 159: <li><strong>CVSROOT=anoncvs@mirror.arc.nasa.gov:/cvs</strong><br>
160: located at Ames Research Center, Moffett Field, California, USA.<br>
161: maintained by <a href=mailto:allison@mail.arc.nasa.gov>Tyler Allison</a>.<br>
162: protocols: ssh only.<br>
163: updated every 3 hours.<br>
1.76 deraadt 164: <p>
1.31 deraadt 165: <li><strong>CVSROOT=anoncvs@anoncvs6.usa.openbsd.org:/cvs</strong><br>
166: Host also known as <strong>openbsd.citi.umich.edu</strong>.<br>
167: located at the University of Michigan, central USA.<br>
168: maintained by <a href=mailto:rees@umich.edu>Jim Rees</a>.<br>
169: protocols: ssh, ssh port 2022.<br>
170: updated every 12 hours.<br>
171: <p>
1.24 deraadt 172: <li><strong>CVSROOT=anoncvs@anoncvs1.ca.openbsd.org:/cvs</strong><br>
1.40 beck 173: Host also known as <strong>anoncvs.ca.openbsd.org</strong>,
1.74 beck 174: <strong>openbsd.sunsite.ualberta.ca</strong><br>
1.24 deraadt 175: located in Edmonton, Alberta, Canada.<br>
1.80 beck 176: maintained by <A HREF="mailto:beck@ualberta.ca">Bob Beck</A><br>
1.53 beck 177: protocols: ssh, rsh, ssh port 2022, pserver<br>
1.45 beck 178: updated every 2 hours.<br>
1.24 deraadt 179: <p>
1.1 deraadt 180: <li><strong>CVSROOT=anoncvs@anoncvs.uk.openbsd.org:/cvs</strong><br>
181: Host also known as <strong>dumpty.wonderland.org</strong>.<br>
182: located in London, UK.<br>
183: maintained by <a href=mailto:peter@wonderland.org>Peter Galbavy</a>.<br>
184: protocols: rsh.<br>
185: updated every 12 hours.<br>
186: <p>
187: <li><strong>CVSROOT=anoncvs@anoncvs.tw.openbsd.org:/cvs</strong><br>
1.64 deraadt 188: Host also known as <strong>OpenBSD.csie.NCTU.edu.tw</strong>.<br>
1.1 deraadt 189: located in Taipei, Taiwan.<br>
1.63 deraadt 190: maintained by <a href=mailto:lkchu@OpenBSD.csie.NCTU.edu.tw>Liang-Kai Chu</a>.<br>
1.1 deraadt 191: protocols: rsh, ssh, ssh port 2022.<br>
192: updated every 12 hours.<br>
193: <p>
194: <li><strong>CVSROOT=anoncvs@anoncvs.no.openbsd.org:/cvs</strong><br>
1.64 deraadt 195: Host also known as <strong>cvs.inet.no</strong>.<br>
1.1 deraadt 196: located in Norway.<br>
1.64 deraadt 197: maintained by <a href=mailto:cvsadmin@inet.no>Michael Shuldman</a>.<br>
1.1 deraadt 198: protocols: rsh, ssh, ssh port 2022.<br>
199: updated every 4 hours.<br>
200: <p>
1.33 deraadt 201: <li><strong>CVSROOT=anoncvs@anoncvs.se.openbsd.org:/cvs</strong><br>
1.54 art 202: Host also known as <strong>anoncvs.stacken.kth.se</strong>.<br>
1.33 deraadt 203: located in Sweden.<br>
204: maintained by <a href=mailto:anoncvs@stacken.kth.se>Magnus Holmberg</a>.<br>
205: protocols: rsh, ssh, ssh port 2022.<br>
1.57 art 206: updated every 3 hours.<br>
1.68 wvdputte 207: <p>
208: <li><strong>CVSROOT=anoncvs@anoncvs.be.openbsd.org:/cvs</strong><br>
209: Host also known as <strong>badlands.rug.ac.be</strong>.<br>
210: located in Belgium.<br>
211: maintained by <a href=mailto:wvdputte@reptile.rug.ac.be>Wim Vandeputte</a>.<br>
212: protocols: ssh, ssh port 2022.<br>
213: updated every 3 hours.<br>
1.69 deraadt 214: <p>
215: <li><strong>CVSROOT=anoncvs@anoncvs.jp.openbsd.org:/cvs</strong><br>
216: Host also known as <strong>kankoromochi.econ.nagasaki-u.ac.jp</strong>.<br>
217: located at Nagasaki Univ. Faculty of Economics, JAPAN.<br>
218: maintained by <a href=mailto:sigh@net.nagasaki-u.ac.jp>SUZUKI Hitoshi</a>.<br>
1.79 deraadt 219: protocols: ssh, pserver.<br>
220: updated every 3 hours.<br>
1.73 deraadt 221: <li><strong>CVSROOT=anoncvs@anoncvs.cz.openbsd.org:/cvs</strong><br>
222: Host also known as <strong>com-os2.ms.mff.cuni.cz</strong>.<br>
223: located at Faculty Math & Physics, Charles University, Prague, Czech republic.<br>
224: maintained by <a href=mailto:galambos@com-os2.ms.mff.cuni.cz>Leo Galambos</a>.<br>
225: protocols: ssh, ssh port 2022.<br>
226: updated every 3 hours.<br>
1.84 beck 227: <li><strong>CVSROOT=anoncvs@anoncvs1.au.openbsd.org:/cvs</strong><br>
228: Host also known as <strong>anoncvs.au.openbsd.org</strong>,
229: <strong>anoncvs.openbsd.aba.net.au</strong><br>
230: located in Carlton, Victoria, Australia.<br>
231: maintained by <A HREF="mailto:mwp@aba.net.au">Micheal Paddon</A><br>
232: protocols: ssh<br>
233: updated every 4 hours.<br>
1.88 beck 234: <li><strong>CVSROOT=anoncvs@dolphin.mtmc.ru:/cvs</strong><br>
235: located in Moscow, Russia<br>
236: maintained by <A HREF="mailto:jc@mtmc.ru">John Chertihin</A><br>
237: protocols: rsh, ssh<br>
1.89 beck 238: updated every 24 hours (at 1 AM Moscow time)<br>
1.86 beck 239: <li><strong>CVSROOT :pserver:anoncvs@gloup.linuxfr.org:/cvs</strong><br>
1.87 beck 240: Host also known as <strong>gloup.linuxfr.org</strong><br>
241: located at University of Angers, FRANCE<br>
242: maintained by: <A HREF=mailto:seisen@linuxfr.org>Fabien Seisen</A><br>
243: protocols: pserver<br>
1.86 beck 244: updated every 24h ( at 2h GMT )<br>
1.80 beck 245: <li><strong>CVSROOT=anoncvs@exokernel.lcs.mit.edu:/cvs</strong><br>
246: located at M.I.T, Eastern USA.<br>
247: maintained by ????<br>
248: protocols: ssh, ???<br>
249: updated every ? hours.<br>
250: <li><strong>CVSROOT=anoncvs@xyzzy.gsnig.net:/cvs</strong><br>
251: Located in Goteborg, Sweden<br>
252: maintained by martin@openbsd.org<br>
253: protocols: ssh, ???<br>
254: updated every ? hours.<br>
255: <li><strong>CVSROOT=anoncvs@stl-isaas.ey.com:/cvs</strong><br>
1.90 beck 256: Located in St. Louis, MO, Eastern USA<br>
1.81 beck 257: maintained by <A HREF="mailto:aaron11@sprynet.com">Aaron Miller</A><br>
258: protocols: ssh, ssh port 2022, pserver<br>
259: updated every 3 hours.<br>
1.91 beck 260: <li><strong>CVSROOT=anoncvs@openbsd.groupbsd.org:/cvs</strong><br>
1.92 ! jason 261: Located in Hillsborough NC, Eastern USA<br>
! 262: maintained by <A HREF="mailto:jason@openbsd.org">Jason Wright</A><br>
1.91 beck 263: protocols: ssh<br>
264: updated every 4 hours.<br>
1.80 beck 265: <li><strong>CVSROOT=anoncvs@headend-vlan1-cm19.fibertel.com.ar:/cvs</strong><br>
266: Located in Buenos Aires, Argentina<br>
267: maintained by ????<br>
268: protocols: ssh?, ???<br>
269: updated every ? hours.<br>
1.73 deraadt 270: </ul>
1.84 beck 271:
272:
1.73 deraadt 273: <p>
1.80 beck 274: <EM>Note:</EM>, If your server is listed on here with inaccurate or
275: unknown information, please contact <A
1.85 espie 276: HREF="mailto:beck@openbsd.org"><tt>beck@openbsd.org</tt></A>
1.80 beck 277: <p>
1.1 deraadt 278: You may want to use `traceroute' to find out which server is nearest you.
1.11 michaels 279: Problems with a server should be reported to the <b>maintainer</b> of the
280: server in question.
1.1 deraadt 281: </dl>
282: <p>
283: <strong>IMPORTANT NOTE:</strong>
284: There are a few issues relating to cryptographic software that everyone
285: should be aware of:
286: <ul>
287: <li>The OpenBSD sources are from Canada.
1.9 deraadt 288: As
289: <a href=http://insight.mcmaster.ca/org/efc/pages/doc/crypto-export.html>
290: researched by a Canadian individual</a>
291: and as
292: <a href=http://axion.physics.ubc.ca/ECL.html>
293: described in the Export Control list of Canada</a>
294: is legal to export crypto software from Canada to the world.
1.1 deraadt 295: <p>
296: <li>However, if you are outside the USA or Canada, you should not
297: fetch the cryptographic sections of the OpenBSD sources from an
298: anoncvs server located in the USA. The files in question are...
299: <ul>
300: <li>src/kerberosIV/*
1.57 art 301: <li>src/lib/libdes/*
1.1 deraadt 302: <li>src/lib/libc/crypt/crypt.c
303: <li>src/lib/libc/crypt/morecrypt.c
1.36 deraadt 304: <li>src/sys/netinet
1.67 art 305: <li>src/usr.sbin/afs/src/rxkad/*
1.56 matthieu 306: <li>X11/xc/lib/Xdmcp/Wraphelp.c
1.1 deraadt 307: </ul>
308: Because of the USA ITAR munitions list,
309: crypto software may only be exported to Canada from the USA.
310: <p>
311: <li>The OpenBSD project is looking for more anoncvs servers -- read
312: on to find out how you can help.
313: </ul>
314:
315: <p>
316: A sample use of an anoncvs CVS server would be:
1.27 todd 317: <ul>
1.1 deraadt 318: <pre>
1.59 beck 319: % setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs
1.1 deraadt 320: % cd /tmp
321: % cvs get src/sys/arch/sparc
1.12 grr 322: [copies the files from the repository to your machine]
1.1 deraadt 323: % cvs log src/sys/arch/sparc/sparc/locore.s
1.12 grr 324: [shows the commit log for the chosen file ]
1.1 deraadt 325: % cvs diff -bc -r1.1 -r1.5 src/sys/arch/sparc/sparc/locore.s
1.12 grr 326: [shows the changes between revisions 1.1 and rev 1.5]
1.1 deraadt 327: </pre>
1.27 todd 328: </ul>
1.1 deraadt 329:
330: <p>
1.18 todd 331: <a name=pserver>In order to use a cvs ``pserver'' (a direct tcp connection instead of using ssh or rsh) you must login once:</a>
332: <pre>
333: [ *NOTE* You must be using cvs version 1.8 or higher to do this ]
1.59 beck 334: % setenv CVSROOT :pserver:anoncvs@anoncvs.ca.openbsd.org:/cvs
1.18 todd 335: % cvs login
1.59 beck 336: (Logging in to anoncvs@anoncvs1.ca.openbsd.org)
1.71 millert 337: CVS password: anoncvs
1.18 todd 338: [this writes a line to ~/.cvspass (filename over-ridden by CVS_PASSFILE).]
339: [An example line from my ~/.cvspass after typing 'blah' for the above ]
340: [password is: ]
341: [:pserver:anoncvs@anoncvs5.usa.openbsd.org:/cvs Au'yc ]
342: [...after logging in ONCE every other use of the above CVSROOT will work ]
343: % cvs -z9 get ksrc-i386 ksrc-common
344: [allows you to retrieve ONLY that necessary to rebuild an i386 kernel ]
345: [ -z9 allows gzip -9 compression, GOOD medicine for slow links ]
346: </pre>
347:
348: <p>
1.39 todd 349: Here is how someone using anoncvs regularly would update his
1.1 deraadt 350: source tree:
1.60 millert 351: <ul><li>First, start out by `get'-ing an initial tree:
1.27 todd 352:
1.1 deraadt 353: <pre>
1.59 beck 354: # setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs
1.1 deraadt 355: # cd /usr
356: # cvs -q get -PA src
357: </pre>
1.27 todd 358: </li>
1.37 todd 359:
1.27 todd 360: <li> Anytime afterwards, to `update' this tree:
1.1 deraadt 361: <pre>
1.41 deraadt 362: # cd /usr/src
363: # cvs -q up -PAd
1.1 deraadt 364: </pre>
1.27 todd 365:
1.39 todd 366: Everytime you ran this it would synchronize your /usr/src tree. It would
1.1 deraadt 367: not destroy any of your local changes, rather it would attempt to merge
368: changes in. If you use obj directories (not obj symbolic links) you may
369: wish to append "-I obj" to the cvs command line, this will keep cvs from
370: spitting out a warning about all the obj directories it is going to
371: encounter which are not in the repository.
1.72 millert 372:
373: <p>
374: <li> NOTE: if you are updating a source tree that you initially fetched
375: from a different server, or from a CD, you <strong>must</strong>
376: add the <em>-d $CVSROOT</em> options to cvs. You must also set the
377: <em>CVS_IGNORE_REMOTE_ROOT</em> environment variable.
378:
379: <pre>
380: # cd /usr/src
381: # cvs -d $CVSROOT -q up -PAd
382: </pre>
383:
1.27 todd 384: </li>
385: </ul>
386:
1.37 todd 387: <p>
388: To <a name=ports>use</a> <a href=ports.html>ports</a>, it is similar to src:
389: <ul><li>
390: <pre>
1.59 beck 391: # setenv CVSROOT anoncvs@anoncvs.ca.openbsd.org:/cvs
1.37 todd 392: # cd /usr
393: # cvs -q get -PA ports
1.38 deraadt 394: </pre>
1.37 todd 395: </li>
396: <li> Anytime afterwards, to `update' this tree:
397: <pre>
398: # cd /usr
399: # cvs -q up -PAd ports
400: </pre>
401: </li>
402: </p>
403: </ul>
404:
1.27 todd 405: In the above example, '-q' is optional, only intended to minimize
406: cvs's output. For those who like to see screenfulls of output, it
407: can be omitted.
1.1 deraadt 408:
409: <p>
1.12 grr 410: or to make a diff of a locally patched module (here cd.c) to include with
411: a bug report:
412: <pre>
413: # cd /usr
414: # cvs diff -u src/sys/scsi/cd.c > /tmp/patch
415: </pre>
1.37 todd 416: </p>
1.12 grr 417:
418: <p>
1.1 deraadt 419: The CVS man page (included with the CVS sources) has much more
420: information about how CVS can be used.
421:
422: <p>
1.12 grr 423: <strong>Warning:</strong>
424: When using cvs you should take care that your current directory is either
425: the root of the tree you're referencing or in a separate place such as /tmp.
426: Some commands such as "get" can create an arbitrary sub-tree in the current
427: directory, and a subsequent update will recursively flesh out this sub-tree.
428:
429: <p>
1.1 deraadt 430: The anoncvs service gives fledgling developers a chance to learn CVS
431: operation and get thoroughly involved in the development process
432: before getting "commit" access -- as a result of showing useful
433: skills and high quality results they will naturally later be given
434: developer access. As well, people providing patches can create
435: their "diff"s relative to the CVS tree, which will ease integration.
436:
437: <p>
1.15 grr 438: <strong>Anoncvs: rsh vs. ssh</strong>
1.12 grr 439: <br>
440: By default, the CVS client uses rsh to talk to the CVS server. Many
1.39 todd 441: of the CVS sites no longer support rsh for security reasons or a local
1.12 grr 442: problem like a firewall or imperfect protocol emulator such as slirp
443: may prevent you from using rsh.
444: The alternative is a to use a "secure shell" connection using
1.48 ryker 445: <a href=http://www.cs.hut.fi/ssh/>ssh</a>. This is a commercial product
1.12 grr 446: offered by <a href=http://www.ssh.fi>SSH Communications Security Ltd</a>,
447: however they make a free unix version available that can be easily
1.68 wvdputte 448: installed under OpenBSD. Make sure you read the LICENSING doc! If you have
449: installed the OpenBSD <A HREF="ports.html">ports tree</A> you can download,
450: compile, and install the free UNIX version just by changing directory into the
451: directory /usr/ports/security/ssh and typing <KBD>make install</KBD>.
452: If you installed "ports" from the OpenBSD 2.4 CD-ROM, you get ssh
453: version 1.2.26 and should eventually "cvs update ports" and rebuild it as above
1.49 ian 454: after you get ssh and anoncvs working, to get the latest version.
1.68 wvdputte 455: Alternately, you can manually download the latest 1.2.* Unix version from
456: <a href= "ftp://ftp.funet.fi/pub/unix/security/login/ssh/">
457: ftp://ftp.funet.fi/pub/unix/security/login/ssh/</a> or
458: <a href= "http://www.datafellows.com/f-secure/fnetsys.htm">
459: http://www.datafellows.com/f-secure/fnetsys.htm</a>,
460: compile, and install it yourself.
461:
462: <p>
463: The OpenBSD anoncvs repositries support the SSH1 protocol, not the SSH2 protocol
464: due to the use of a "strict non-commercial use licensing policy".
1.28 beck 465:
1.75 millert 466: <p>
467: Once ssh is installed, one sets the environment variable
1.28 beck 468: <strong>CVS_RSH</strong> to point to ssh (typically
469: <strong>/usr/local/bin/ssh</strong>). If your local site prevents you
470: from connecting out to port 22 (which ssh defaults to using) use port
471: 2022.
1.1 deraadt 472:
473: <p>
474: Do not be tempted to turn on compression since CVS already compresses.
475: Use something like the following in your <strong>$HOME/.ssh/config</strong>
1.10 millert 476: file. Note that not all anoncvs servers allow ssh connections on
1.21 millert 477: port 2022. Also note that most anoncvs servers no longer accept
478: the <strong>none</strong> cipher as it is disabled in recent
479: versions of ssh for security reasons.
1.1 deraadt 480: <pre>
1.59 beck 481: Host anoncvs.ca.openbsd.org
1.1 deraadt 482: Port 2022
483: </pre>
484:
485: <p>
486: CVS is a little noisy starting up; to quiet it a bit you may want to
487: do this:
488: <pre>
489: setenv CVS_CLIENT_PORT -1
490: </pre>
491:
492: <p>
1.8 deraadt 493: If you wish to change from one CVS server to another (say your normal one is
494: down, or for any other reason), the environment variable which will let you
495: do this is
496: <pre>
497: setenv CVS_IGNORE_REMOTE_ROOT
498: </pre>
1.72 millert 499: Note that you will also need to use the <strong>-d</strong> flag
500: as mentioned above.
1.8 deraadt 501:
1.65 matthieu 502: <p><strong>X11 Source tree</strong>
503: <br>
504: Anoncvs mirrors also carry the OpenBSD X11 source tree. You can adapt
505: the recipe above to update your X11 source tree from the second CD.
506: Either copy or use a union mount to get the X11 sources in /usr/X11:
507: <ul>
508: <li>copy the tree off it (assuming the 2nd CD is mounted on /mnt):
509: <pre>
510: <b>#</b> cd /mnt; cp -Rp X11 /usr
511: </pre>
512: <li>use a union mount with the CD below a writable directory.
513: <pre>
514: <b>#</b> mount -t union -o -b /mnt/X11 /usr/X11
515: </pre>
516: </ul>
517: After this, /usr/X11 will be ready to be used by cvs. You can for
518: example update it to -current source (assuming you've already set
519: the <b>CVSROOT</b> environment variable):
520: <pre>
521: <b>#</b> cd /usr/X11
522: <b>#</b> cvs -q update -PAd
523: </pre>
524:
525: <p><strong>Setting up a new anoncvs mirror</strong>
526: <br>
1.1 deraadt 527: If you wish to be a new anoncvs mirror site, please contact the anoncvs
528: <a href=mailto:deraadt@theos.com>maintainer</a>.
1.30 beck 529: Anoncvs mirrors require about 500MB of disk, and use up to 4MB of swap
1.1 deraadt 530: per anoncvs user (assuming the user does a large operation; while smaller
531: operations use fewer resources, anoncvs still makes much more of an
532: impact than ftp or sup). Such anoncvs machines should have excellent
533: network connectivity for the area they are expected to serve. A
534: <a href=anoncvs.shar>document</a>
535: which describes the setup of anoncvs servers is available.
536:
1.60 millert 537: <h3><font color=#0000e0>Final notes:</font></h3>
538: After upgrading your source tree, you should read the comments
539: at the top of <KBD>/usr/src/Makefile</KBD> before attemping
540: a build. Also, you should build a new kernel <strong>before</strong>
541: doing a <KBD>make build</KBD> if possible. In some cases it make be
542: necessary to rebuild and install the <KBD>config</KBD> utility before
543: you can build the kernel. If <KBD>config GENERIC</KBD> fails this
544: is probably the case.
545: <p>
546: It is important to note that upgrading from a release to the current tree
547: by rebuilding the sources can be rather difficult due to dependencies
548: that are often not obvious. Therefore, it is suggested that you first
549: install the latest snapshot before attemping a tree build from source.
1.1 deraadt 550:
551: <hr>
1.58 pauls 552: <a href=index.html><img height=24 width=24 src=back.gif border=0 alt=OpenBSD></a>
1.1 deraadt 553: <a href=mailto:www@openbsd.org>www@openbsd.org</a>
1.92 ! jason 554: <br><small>$OpenBSD: anoncvs.html,v 1.91 1999/09/17 16:18:08 beck Exp $</small>
1.1 deraadt 555:
556: </body>
557: </html>