diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-23 12:07:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-23 12:07:52 +0000 |
commit | 1bbe97fc3dcf3436e5e07e715c03901e1f18e4b6 (patch) | |
tree | ecdc16d3c012aa0b52f9826c41e2a9c37ee09031 /doc/gnunet-c-tutorial.tex | |
parent | c77d4e5c69ac54ffddf5bd60c18bcb0504389311 (diff) | |
download | gnunet-1bbe97fc3dcf3436e5e07e715c03901e1f18e4b6.tar.gz gnunet-1bbe97fc3dcf3436e5e07e715c03901e1f18e4b6.zip |
-update doc
Diffstat (limited to 'doc/gnunet-c-tutorial.tex')
-rw-r--r-- | doc/gnunet-c-tutorial.tex | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/doc/gnunet-c-tutorial.tex b/doc/gnunet-c-tutorial.tex index 83a740c99..ee24b0ae4 100644 --- a/doc/gnunet-c-tutorial.tex +++ b/doc/gnunet-c-tutorial.tex | |||
@@ -270,25 +270,29 @@ SERVERS = # prevent bootstrapping | |||
270 | \subsection{Start a peer} | 270 | \subsection{Start a peer} |
271 | Each GNUnet instance (called peer) has an identity (\textit{peer ID}) based on a | 271 | Each GNUnet instance (called peer) has an identity (\textit{peer ID}) based on a |
272 | cryptographic public private key pair. The peer ID is the printable hash of the | 272 | cryptographic public private key pair. The peer ID is the printable hash of the |
273 | public key. So before starting the peer, you may want to just generate the peer's private | 273 | public key. |
274 | key using the command | 274 | |
275 | GNUnet services are controlled by a master service the so called \textit{Automatic Restart Manager} (ARM). | ||
276 | ARM starts, stops and even restarts services automatically or on demand when a client connects. | ||
277 | You interact with the ARM service using the \lstinline|gnunet-arm| tool. | ||
278 | GNUnet can then be started with \lstinline|gnunet-arm -s| and stopped with | ||
279 | \lstinline|gnunet-arm -e|. An additional service not automatically started | ||
280 | can be started using \lstinline|gnunet-arm -i <service name>| and stopped | ||
281 | using \lstinline|gnunet-arm -k <servicename>|. | ||
282 | |||
283 | Once you have started your peer, you can use many other GNUnet commands | ||
284 | to interact with it. For example, you can run: | ||
275 | \lstset{language=bash} | 285 | \lstset{language=bash} |
276 | \begin{lstlisting} | 286 | \begin{lstlisting} |
277 | $ gnunet-peerinfo -c ~/peer1.conf -s | 287 | $ gnunet-peerinfo -s |
278 | \end{lstlisting} | 288 | \end{lstlisting} |
289 | to obtain the public key of your peer. | ||
279 | You should see an output containing the peer ID similar to: | 290 | You should see an output containing the peer ID similar to: |
280 | \lstset{language=bash} | 291 | \lstset{language=bash} |
281 | \begin{lstlisting} | 292 | \begin{lstlisting} |
282 | I am peer `0PA02UVRKQTS2C .. JL5Q78F6H0B1ACPV1CJI59MEQUMQCC5G'. | 293 | I am peer `0PA02UVRKQTS2C .. JL5Q78F6H0B1ACPV1CJI59MEQUMQCC5G'. |
283 | \end{lstlisting} | 294 | \end{lstlisting} |
284 | 295 | ||
285 | GNUnet services are controlled by a master service the so called \textit{Automatic Restart Manager} (ARM). | ||
286 | ARM starts, stops and even restarts services automatically or on demand when a client connects. | ||
287 | You interact with the ARM service using the \lstinline|gnunet-arm| tool. | ||
288 | GNUnet can then be started with \lstinline|gnunet-arm -s| and stopped with | ||
289 | \lstinline|gnunet-arm -e|. An additional service not automatically started | ||
290 | can be started using \lstinline|gnunet-arm -i <service name>| and stopped | ||
291 | using \lstinline|gnunet-arm -k <servicename>|. | ||
292 | 296 | ||
293 | \subsection{Monitor a peer} | 297 | \subsection{Monitor a peer} |
294 | In this section, we will monitor the behaviour of our peer's DHT service with respect to a | 298 | In this section, we will monitor the behaviour of our peer's DHT service with respect to a |