Reticulum/docs/source/gettingstartedfast.rst

78 lines
2.7 KiB
ReStructuredText
Raw Normal View History

2021-05-16 11:18:21 -06:00
********************
Getting Started Fast
********************
The best way to get started with the Reticulum Network Stack depends on what
you want to do. This guide will outline sensible starting paths for different
scenarios.
Try Using a Reticulum-based Program
=============================================
If you simply want to try using a program built with Reticulum, you can take
a look at `Nomad Network <https://github.com/markqvist/nomadnet>`_, which
provides a basic encrypted communications suite built completely on Reticulum.
2021-05-17 12:01:53 -06:00
.. image:: screenshots/nomadnet3.png
:target: _images/nomadnet3.png
`Nomad Network <https://github.com/markqvist/nomadnet>`_ is a user-facing client
in the development for the messaging and information-sharing protocol
`LXMF <https://github.com/markqvist/lxmf>`_, another project built with Reticulum.
2021-05-16 11:18:21 -06:00
Develop a Program with Reticulum
===========================================
If you want to develop programs that use Reticulum, the easiest way to get
2021-05-20 08:06:12 -06:00
started is to install the latest release of Reticulum via pip:
2021-05-16 11:18:21 -06:00
.. code::
pip3 install rns
The above command will install Reticulum and dependencies, and you will be
ready to import and use RNS in your own programs. The next step will most
2021-05-16 13:58:11 -06:00
likely be to look at some :ref:`Example Programs<examples-main>`.
2021-05-16 11:18:21 -06:00
2021-05-16 13:58:11 -06:00
Further information can be found in the :ref:`API Reference<api-main>`.
2021-05-16 11:18:21 -06:00
Participate in Reticulum Development
==============================================
If you want to participate in the development of Reticulum and associated
utilities, you'll want to get the latest source from GitHub. In that case,
don't use pip, but try this recipe:
.. code::
# Install dependencies
pip3 install cryptography pyserial
# Clone repository
git clone https://github.com/markqvist/Reticulum.git
# Move into Reticulum folder and symlink library to examples folder
cd Reticulum
ln -s ../RNS ./Examples/
# Run an example
python3 Examples/Echo.py -s
# Unless you've manually created a config file, Reticulum will do so now,
# and immediately exit. Make any necessary changes to the file:
nano ~/.reticulum/config
# ... and launch the example again.
python3 Examples/Echo.py -s
# You can now repeat the process on another computer,
# and run the same example with -h to get command line options.
python3 Examples/Echo.py -h
# Run the example in client mode to "ping" the server.
# Replace the hash below with the actual destination hash of your server.
python3 Examples/Echo.py 3e12fc71692f8ec47bc5
# Have a look at another example
python3 Examples/Filetransfer.py -h
When you have experimented with the basic examples, it's time to go read the
2021-05-16 13:58:11 -06:00
:ref:`Understanding Reticulum<understanding-main>` chapter.