aboutsummaryrefslogtreecommitdiff
path: root/doc/gnunet-c-tutorial.tex
diff options
context:
space:
mode:
authorMarkus Teich <teichm@fs.tum.de>2014-04-10 12:35:20 +0000
committerMarkus Teich <teichm@fs.tum.de>2014-04-10 12:35:20 +0000
commit667ccc74e7b8dc6806a29f4ef2de26dc9da633c7 (patch)
tree2c54e3cab88aa1a64f0ffb4338ed28b2b71cad24 /doc/gnunet-c-tutorial.tex
parent41a4a0f9c55049dd2d5c70a835531b4be50cc713 (diff)
downloadgnunet-667ccc74e7b8dc6806a29f4ef2de26dc9da633c7.tar.gz
gnunet-667ccc74e7b8dc6806a29f4ef2de26dc9da633c7.zip
updated tutorial, please check and rebuild the pdf if you have latex installed.
(i don't)
Diffstat (limited to 'doc/gnunet-c-tutorial.tex')
-rw-r--r--doc/gnunet-c-tutorial.tex27
1 files changed, 10 insertions, 17 deletions
diff --git a/doc/gnunet-c-tutorial.tex b/doc/gnunet-c-tutorial.tex
index 1142630cc..ceb4344e1 100644
--- a/doc/gnunet-c-tutorial.tex
+++ b/doc/gnunet-c-tutorial.tex
@@ -146,27 +146,20 @@ to enable verbose logging by adding
146 146
147\lstset{language=bash} 147\lstset{language=bash}
148\begin{lstlisting} 148\begin{lstlisting}
149$ ./configure --prefix=$HOME --enable-logging 149$ ./configure --prefix=$PREFIX --enable-logging
150$ make 150$ make
151$ make install 151$ make install
152\end{lstlisting} 152\end{lstlisting}
153 153
154After installing GNUnet you have to set the \lstinline|GNUNET_PREFIX| 154After installing GNUnet you have to add your GNUnet installation to your path
155environmental variable used by GNUnet to detect it's installation 155environmental variable. In addition you have to create the \lstinline|.gnunet|
156directory and add your GNUnet installation to your path environmental 156directory in your home directory where GNUnet stores it's data and an empty
157variable. This configuration is only valid for the current shell 157GNUnet configuration file:
158session, so you should add \lstinline|export GNUNET_PREFIX=$HOME| to
159your \lstinline|.bash_rc| or \lstinline|.profile| to be sure the
160environment variable is always set. In addition you have to create the
161\lstinline|.gnunet| directory in your home directory where GNUnet
162stores it's data and an empty GNUnet configuration file:
163 158
164\lstset{language=bash} 159\lstset{language=bash}
165\begin{lstlisting} 160\begin{lstlisting}
166$ export GNUNET_PREFIX=$HOME 161$ export PATH=$PATH:$PREFIX/bin
167$ export PATH=$PATH:$GNUNET_PREFIX/bin 162$ echo export PATH=$PREFIX/bin:\textbackslash$PATH >> ~/.bashrc
168$ echo export GNUNET_PREFIX=$HOME >> ~/.bashrc
169$ echo export PATH=$GNUNET_PREFIX/bin:$PATH >> ~/.bashrc
170$ mkdir ~/.gnunet/ 163$ mkdir ~/.gnunet/
171$ touch ~/.gnunet/gnunet.conf 164$ touch ~/.gnunet/gnunet.conf
172\end{lstlisting} 165\end{lstlisting}
@@ -179,7 +172,7 @@ binaries and run GNUnet's self check.
179\begin{lstlisting} 172\begin{lstlisting}
180$ which gnunet-arm 173$ which gnunet-arm
181\end{lstlisting} 174\end{lstlisting}
182should return \lstinline|$GNUNET_PREFIX/bin/gnunet-arm|. It should be 175should return \lstinline|$PREFIX/bin/gnunet-arm|. It should be
183located in your GNUnet installation and the output should not be 176located in your GNUnet installation and the output should not be
184empty. If you see an output like: 177empty. If you see an output like:
185\begin{lstlisting} 178\begin{lstlisting}
@@ -336,7 +329,7 @@ configuration file:
336% 329%
337\lstset{language=bash} 330\lstset{language=bash}
338\begin{lstlisting} 331\begin{lstlisting}
339$ cat $GNUNET_PREFIX/share/gnunet/config.d/*.conf > peer2.conf 332$ cat $PREFIX/share/gnunet/config.d/*.conf > peer2.conf
340\end{lstlisting} 333\end{lstlisting}
341Now you have to edit {\tt peer2.conf} and change: 334Now you have to edit {\tt peer2.conf} and change:
342\begin{itemize} 335\begin{itemize}
@@ -515,7 +508,7 @@ obtained as follows:
515$ svn checkout https://gnunet.org/svn/gnunet-ext/ 508$ svn checkout https://gnunet.org/svn/gnunet-ext/
516$ cd gnunet-ext/ 509$ cd gnunet-ext/
517$ ./bootstrap 510$ ./bootstrap
518$ ./configure --prefix=$HOME --with-gnunet=$GNUNET_PREFIX 511$ ./configure --prefix=$PREFIX --with-gnunet=$PREFIX
519$ make 512$ make
520$ make install 513$ make install
521$ make check 514$ make check