70 lines
2.4 KiB
HTML
70 lines
2.4 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>unix.schottelius.org</title>
|
||
|
</HEAD>
|
||
|
|
||
|
<BODY>
|
||
|
<P><A HREF="http://nico.schotteli.us">Nico Schottelius</A>
|
||
|
<BR><A HREF="../index.html">unix.schottelius.org</A>
|
||
|
<BR><A HREF="index.html">cinit</A>
|
||
|
</P>
|
||
|
<HR>
|
||
|
<H1>cinit</H1>
|
||
|
<h3>using monotone</h3>
|
||
|
<P><A HREF="http://www.venge.net/monotone/">Monotone</a> is a cvs
|
||
|
successor. You have to retrieve the collection "info.clinux.cinit" from
|
||
|
"<B>monotone.schottelius.org</b>" (not unix.schottelius.org anymore!).
|
||
|
You can get the public server key from
|
||
|
<A HREF="../gpm/server-key.pub">here</A>.
|
||
|
<HR>
|
||
|
<!-- ##################################################### -->
|
||
|
<h3>Monotone - get (aka "pull")</h3>
|
||
|
<P>Here's a small manual howto get cinit via monotone:
|
||
|
<PRE>
|
||
|
|
||
|
# create a database
|
||
|
scice% monotone --db=cinit.db db init
|
||
|
|
||
|
# get the server key
|
||
|
scice% wget -q http://unix.schottelius.org/gpm/server-key.pub
|
||
|
|
||
|
# read the server key
|
||
|
scice% monotone --db=cinit.db read < server-key.pub
|
||
|
monotone: read 1 packet
|
||
|
|
||
|
# do an anonymous pull
|
||
|
scice% monotone --key="" --db=cinit.db pull monotone.schottelius.org info.clinux.cinit
|
||
|
monotone: warning: doing anonymous pull
|
||
|
monotone: rebuilding merkle trees for collection info.clinux.cinit
|
||
|
monotone: connecting to monotone.schottelius.org
|
||
|
monotone: [bytes in: 722110] [bytes out: 7405]
|
||
|
monotone: exchanged goodbyes and flushed output on fd 7 (peer monotone.schottelius.org), disconnecting
|
||
|
|
||
|
# extract source from the database to a directory
|
||
|
scice% monotone --db=cinit.db --branch=info.clinux.cinit checkout your-destination-directory
|
||
|
monotone: fetching heads of branch 'info.clinux.cinit'
|
||
|
</PRE>
|
||
|
<h3>How to change files (aka "push")</h3>
|
||
|
<P>I assume you've got a database initialised (see above).
|
||
|
<PRE>
|
||
|
# generate a key pair
|
||
|
scice% monotone -db=cinit.db genkey you@example.com
|
||
|
monotone: generating key-pair 'you@example.com'
|
||
|
Enter password:
|
||
|
Confirm password:
|
||
|
monotone: storing key-pair 'you@example.com' in database
|
||
|
|
||
|
# extract the key from the database
|
||
|
scice% monotone --db=cinit.db pubkey you@example.com > you@example.com.pubkey
|
||
|
</PRE>
|
||
|
Now send the key to me, so I can add it to the monotone server on
|
||
|
monotone.schottelius.org.
|
||
|
<B>Note:</B> This is only for people, who want to contribute to cinit,
|
||
|
you'll not need to do this, if you only want to get the sources!
|
||
|
|
||
|
<P>For more information visit monotone's homepage, it has excellent
|
||
|
documentation!</P>
|
||
|
</BODY>
|
||
|
</HTML>
|