From: Sergey Matveev Date: Thu, 3 Oct 2019 12:42:42 +0000 (+0300) Subject: POSIX tells that $ character is default shell prompt X-Git-Tag: v5.0.0^2~20 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=f0543ac21660f253fd86493fc7943d079e74c008;p=nncp.git POSIX tells that $ character is default shell prompt --- diff --git a/doc/bundles.texi b/doc/bundles.texi index e5235bc..8330cdf 100644 --- a/doc/bundles.texi +++ b/doc/bundles.texi @@ -18,11 +18,11 @@ sequentially streamed for recording and digested back. @item They do not require intermediate storage before recording on either CD-ROM or tape drive. @verbatim -% nncp-bundle -tx SOMENODE | cdrecord -tao - # record directly to CD -% nncp-bundle -tx SOMENODE | dd of=/dev/sa0 bs=10240 # record directly to tape +$ nncp-bundle -tx SOMENODE | cdrecord -tao - # record directly to CD +$ nncp-bundle -tx SOMENODE | dd of=/dev/sa0 bs=10240 # record directly to tape -% dd if=/dev/cd0 bs=2048 | nncp-bundle -rx # read directly from CD -% dd if=/dev/sa0 bs=10240 | nncp-bundle -rx # read directly from tape +$ dd if=/dev/cd0 bs=2048 | nncp-bundle -rx # read directly from CD +$ dd if=/dev/sa0 bs=10240 | nncp-bundle -rx # read directly from tape @end verbatim @item They do not require filesystem existence to deal with, simplifying @@ -30,9 +30,9 @@ administration when operating in heterogeneous systems with varying filesystems. No @command{mount}/@command{umount}, @command{zpool import}/@command{zpool export} and struggling with file permissions. @verbatim -% nncp-bundle -tx SOMENODE | dd of=/dev/da0 bs=1M # record directly to +$ nncp-bundle -tx SOMENODE | dd of=/dev/da0 bs=1M # record directly to # hard/flash drive -% dd if=/dev/da0 bs=1M | nncp-bundle -rx # read directly from drive +$ dd if=/dev/da0 bs=1M | nncp-bundle -rx # read directly from drive @end verbatim @item This is the fastest way to record outbound packets for offline diff --git a/doc/cmds.texi b/doc/cmds.texi index b61492f..b2d11b4 100644 --- a/doc/cmds.texi +++ b/doc/cmds.texi @@ -44,9 +44,9 @@ Nearly all commands have the following common options: @section nncp-bundle @verbatim -% nncp-bundle [options] -tx [-delete] NODE [NODE ...] > ... -% nncp-bundle [options] -rx -delete [-dryrun] [NODE ...] < ... -% nncp-bundle [options] -rx [-check] [-dryrun] [NODE ...] < ... +$ nncp-bundle [options] -tx [-delete] NODE [NODE ...] > ... +$ nncp-bundle [options] -rx -delete [-dryrun] [NODE ...] < ... +$ nncp-bundle [options] -rx [-check] [-dryrun] [NODE ...] < ... @end verbatim With @option{-tx} option, this command creates @ref{Bundles, bundle} of @@ -79,8 +79,8 @@ packets integrity will be checked and they will be deleted from the spool if everything is good. So it is advisable to recheck your streams: @verbatim -% nncp-bundle -tx ALICE BOB WHATEVER | cdrecord -tao - -% dd if=/dev/cd0 bs=2048 | nncp-bundle -rx -delete +$ nncp-bundle -tx ALICE BOB WHATEVER | cdrecord -tao - +$ dd if=/dev/cd0 bs=2048 | nncp-bundle -rx -delete @end verbatim @option{-dryrun} option prevents any writes to the spool. This is @@ -91,7 +91,7 @@ their integrity. @section nncp-call @verbatim -% nncp-call [options] +$ nncp-call [options] [-onlinedeadline INT] [-maxonlinetime INT] [-rx|-tx] @@ -125,7 +125,7 @@ You can specify what packets your want to download, by specifying @section nncp-caller @verbatim -% nncp-caller [options] [NODE ...] +$ nncp-caller [options] [NODE ...] @end verbatim Croned daemon that calls remote nodes from time to time, according to @@ -156,8 +156,8 @@ notification. @section nncp-cfgenc @verbatim -% nncp-cfgmin [options] [-s INT] [-t INT] [-p INT] cfg.yaml > cfg.yaml.eblob -% nncp-cfgmin [options] -d cfg.yaml.eblob > cfg.yaml +$ nncp-cfgmin [options] [-s INT] [-t INT] [-p INT] cfg.yaml > cfg.yaml.eblob +$ nncp-cfgmin [options] -d cfg.yaml.eblob > cfg.yaml @end verbatim This command allows you to encrypt provided @file{cfg.yaml} file with @@ -184,7 +184,7 @@ if passphrase can not decrypt @file{eblob}. @option{-dump} options parses @file{eblob} and prints parameters used during its creation. For example: @verbatim -% nncp-cfgenc -dump /usr/local/etc/nncp.yaml.eblob +$ nncp-cfgenc -dump /usr/local/etc/nncp.yaml.eblob Strengthening function: Balloon with BLAKE2b-256 Memory space cost: 1048576 bytes Number of rounds: 16 @@ -196,7 +196,7 @@ Blob size: 2494 @section nncp-cfgmin @verbatim -% nncp-cfgmin [options] > stripped.yaml +$ nncp-cfgmin [options] > stripped.yaml @end verbatim Print out stripped configuration version: only path to @ref{Spool, @@ -208,7 +208,7 @@ neighbours, without private keys involving. @section nncp-cfgnew @verbatim -% nncp-cfgnew [options] > new.yaml +$ nncp-cfgnew [options] > new.yaml @end verbatim Generate new node configuration: private keys, example configuration @@ -222,7 +222,7 @@ operating system. @section nncp-check @verbatim -% nncp-check [options] +$ nncp-check [options] @end verbatim Perform @ref{Spool, spool} directory integrity check. Read all files @@ -234,7 +234,7 @@ not used often in practice, if ever. @section nncp-daemon @verbatim -% nncp-daemon [options] [-maxconn INT] [-bind ADDR] [-inetd] +$ nncp-daemon [options] [-maxconn INT] [-bind ADDR] [-inetd] @end verbatim Start listening TCP daemon, wait for incoming connections and run @@ -257,7 +257,7 @@ uucp stream tcp6 nowait nncpuser /usr/local/bin/nncp-daemon nncp-daemon -inetd @section nncp-exec @verbatim -% nncp-exec [options] NODE HANDLE [ARG0 ARG1 ...] +$ nncp-exec [options] NODE HANDLE [ARG0 ARG1 ...] @end verbatim Send execution command to @option{NODE} for specified @option{HANDLE}. @@ -290,7 +290,7 @@ echo My message | @section nncp-file @verbatim -% nncp-file [options] [-chunked INT] SRC NODE:[DST] +$ nncp-file [options] [-chunked INT] SRC NODE:[DST] @end verbatim Send @file{SRC} file to remote @option{NODE}. @file{DST} specifies @@ -328,7 +328,7 @@ file receiving. @section nncp-freq @verbatim -% nncp-freq [options] NODE:SRC [DST] +$ nncp-freq [options] NODE:SRC [DST] @end verbatim Send file request to @option{NODE}, asking it to send its @file{SRC} @@ -344,7 +344,7 @@ queuing. @section nncp-log @verbatim -% nncp-log [options] +$ nncp-log [options] @end verbatim Parse @ref{Log, log} file and print out its records in human-readable form. @@ -353,9 +353,9 @@ Parse @ref{Log, log} file and print out its records in human-readable form. @section nncp-pkt @verbatim -% nncp-pkt [options] < pkt -% nncp-pkt [options] [-decompress] -dump < pkt > payload -% nncp-pkt -overheads +$ nncp-pkt [options] < pkt +$ nncp-pkt [options] [-decompress] -dump < pkt > payload +$ nncp-pkt -overheads @end verbatim Low level packet parser. Normally it should not be used, but can help in @@ -394,8 +394,8 @@ packets). @section nncp-reass @verbatim -% nncp-reass [options] [-dryrun] [-keep] [-dump] [-stdout] FILE.nncp.meta -% nncp-reass [options] [-dryrun] [-keep] {-all | -node NODE} +$ nncp-reass [options] [-dryrun] [-keep] [-dump] [-stdout] FILE.nncp.meta +$ nncp-reass [options] [-dryrun] [-keep] {-all | -node NODE} @end verbatim Reassemble @ref{Chunked, chunked file} after @ref{nncp-toss, tossing}. @@ -453,12 +453,12 @@ Checksums: @section nncp-rm @verbatim -% nncp-rm [options] -tmp -% nncp-rm [options] -lock -% nncp-rm [options] -node NODE -part -% nncp-rm [options] -node NODE -seen -% nncp-rm [options] -node NODE [-rx] [-tx] -% nncp-rm [options] -node NODE -pkt PKT +$ nncp-rm [options] -tmp +$ nncp-rm [options] -lock +$ nncp-rm [options] -node NODE -part +$ nncp-rm [options] -node NODE -seen +$ nncp-rm [options] -node NODE [-rx] [-tx] +$ nncp-rm [options] -node NODE -pkt PKT @end verbatim This command is aimed to delete various files from your spool directory: @@ -483,7 +483,7 @@ ones. If @option{-seen} option is specified, then delete only @section nncp-stat @verbatim -% nncp-stat [options] [-node NODE] +$ nncp-stat [options] [-node NODE] @end verbatim Print current @ref{Spool, spool} statistics about unsent and unprocessed @@ -495,7 +495,7 @@ size) are in inbound (Rx) and outbound (Tx) queues. @section nncp-toss @verbatim -% nncp-toss [options] +$ nncp-toss [options] [-node NODE] [-dryrun] [-cycle INT] @@ -531,7 +531,7 @@ options allow to disable any kind of packet types processing. @section nncp-xfer @verbatim -% nncp-xfer [options] [-node NODE] [-mkdir] [-keep] [-rx|-tx] DIR +$ nncp-xfer [options] [-node NODE] [-mkdir] [-keep] [-rx|-tx] DIR @end verbatim Search for directory in @file{DIR} containing inbound packets for us and diff --git a/doc/integration.texi b/doc/integration.texi index cad1b94..4f7758e 100644 --- a/doc/integration.texi +++ b/doc/integration.texi @@ -143,15 +143,15 @@ supports them too. After installing @command{rss2email}, create configuration file: @verbatim -% r2e new rss-robot@address.com +$ r2e new rss-robot@address.com @end verbatim and add feeds you want to retrieve: @verbatim -% r2e add https://git.cypherpunks.ru/cgit.cgi/nncp.git/atom/?h=master +$ r2e add https://git.cypherpunks.ru/cgit.cgi/nncp.git/atom/?h=master @end verbatim and run the process: @verbatim -% r2e run +$ r2e run @end verbatim @node WARCs @@ -160,7 +160,7 @@ and run the process: Simple HTML web page can be downloaded very easily for sending and viewing it offline after: @verbatim -% wget http://www.example.com/page.html +$ wget http://www.example.com/page.html @end verbatim But most web pages contain links to images, CSS and JavaScript files, @@ -169,7 +169,7 @@ required for complete rendering. documents parsing and understanding page dependencies. You can download the whole page with dependencies the following way: @verbatim -% wget \ +$ wget \ --page-requisites \ --convert-links \ --adjust-extension \ @@ -183,7 +183,7 @@ that will create @file{www.example.com} directory with all files necessary to view @file{page.html} web page. You can create single file compressed tarball with that directory and send it to remote node: @verbatim -% tar cf - www.example.com | xz -9 | +$ tar cf - www.example.com | xz -9 | nncp-file - remote.node:www.example.com-page.tar.xz @end verbatim @@ -191,7 +191,7 @@ But there are multi-paged articles, there are the whole interesting sites you want to get in a single package. You can mirror the whole web site by utilizing @command{wget}'s recursive feature: @verbatim -% wget \ +$ wget \ --recursive \ --timestamping \ -l inf \ @@ -206,7 +206,7 @@ There is a standard for creating @strong{WARC}. Fortunately again, @command{wget} supports it as an output format. @verbatim -% wget \ +$ wget \ --warc-file www.example_com-$(date '+%Y%M%d%H%m%S') \ --no-warc-compression \ --no-warc-keep-log \ @@ -224,7 +224,7 @@ allowing to view that WARC files. However you can extract files from that archive using @url{https://pypi.python.org/pypi/Warcat, warcat} utility, producing usual directory hierarchy: @verbatim -% python3 -m warcat extract \ +$ python3 -m warcat extract \ www.example_com-XXX.warc \ --output-dir www.example.com-XXX \ --progress @@ -255,12 +255,12 @@ Also you can prepare @url{http://aria2.github.io/manual/en/html/aria2c.html#files, input file} with the jobs you want to download: @verbatim -% cat jobs +$ cat jobs http://www.nncpgo.org/download/nncp-0.11.tar.xz out=nncp.txz http://www.nncpgo.org/download/nncp-0.11.tar.xz.sig out=nncp.txz.sig -% aria2c \ +$ aria2c \ --on-download-complete aria2-downloaded.sh \ --input-file jobs @end verbatim @@ -295,11 +295,11 @@ Now you can queue that node to send you some website's page, file or BitTorrents: @verbatim -% echo http://www.nncpgo.org/Postfix.html | +$ echo http://www.nncpgo.org/Postfix.html | nncp-exec remote.node warcer postfix-whole-page -% echo http://www.nncpgo.org/Postfix.html | +$ echo http://www.nncpgo.org/Postfix.html | nncp-exec remote.node wgeter postfix-html-page -% echo \ +$ echo \ http://www.nncpgo.org/download/nncp-0.11.tar.xz http://www.nncpgo.org/download/nncp-0.11.tar.xz.sig | nncp-exec remote.node aria2c @@ -315,30 +315,30 @@ everything you need. Use it to create bundles containing all required blobs/trees/commits and tags: @verbatim -% git bundle create repo-initial.bundle master --tags --branches -% git tag -f last-bundle -% nncp-file repo-initial.bundle remote.node:repo-$(date % '+%Y%M%d%H%m%S').bundle +$ git bundle create repo-initial.bundle master --tags --branches +$ git tag -f last-bundle +$ nncp-file repo-initial.bundle remote.node:repo-$(date % '+%Y%M%d%H%m%S').bundle @end verbatim Do usual working with the Git: commit, add, branch, checkout, etc. When you decide to queue your changes for sending, create diff-ed bundle and transfer them: @verbatim -% git bundle create repo-$(date '+%Y%M%d%H%m%S').bundle last-bundle..master +$ git bundle create repo-$(date '+%Y%M%d%H%m%S').bundle last-bundle..master or maybe -% git bundle create repo-$(date '+%Y%M%d').bundle --since=10.days master +$ git bundle create repo-$(date '+%Y%M%d').bundle --since=10.days master @end verbatim Received bundle on remote machine acts like usual remote: @verbatim -% git clone -b master repo-XXX.bundle +$ git clone -b master repo-XXX.bundle @end verbatim overwrite @file{repo.bundle} file with newer bundles you retrieve and fetch all required branches and commits: @verbatim -% git pull # assuming that origin remote points to repo.bundle -% git fetch repo.bundle master:localRef -% git ls-remote repo.bundle +$ git pull # assuming that origin remote points to repo.bundle +$ git fetch repo.bundle master:localRef +$ git ls-remote repo.bundle @end verbatim Bundles are also useful when cloning huge repositories (like Linux has). @@ -365,7 +365,7 @@ and @emph{YouTube}. When you multimedia becomes an ordinary file, you can transfer it easily. @verbatim -% youtube-dl \ +$ youtube-dl \ --exec 'nncp-file {} remote.node:' \ 'https://www.youtube.com/watch?list=PLd2Cw8x5CytxPAEBwzilrhQUHt_UN10FJ' @end verbatim diff --git a/doc/integrity.texi b/doc/integrity.texi index cd9da44..4d75b35 100644 --- a/doc/integrity.texi +++ b/doc/integrity.texi @@ -20,8 +20,8 @@ uid NNCP releases @item @verbatim -% gpg --auto-key-locate dane --locate-keys releases at nncpgo dot org -% gpg --auto-key-locate wkd --locate-keys releases at nncpgo dot org +$ gpg --auto-key-locate dane --locate-keys releases at nncpgo dot org +$ gpg --auto-key-locate wkd --locate-keys releases at nncpgo dot org @end verbatim @item @@ -31,5 +31,5 @@ uid NNCP releases Then you could verify tarballs signature: @verbatim -% gpg --verify nncp-3.1.tar.xz.sig nncp-3.1.tar.xz +$ gpg --verify nncp-3.1.tar.xz.sig nncp-3.1.tar.xz @end verbatim diff --git a/doc/platforms.texi b/doc/platforms.texi index a162de2..595b7d0 100644 --- a/doc/platforms.texi +++ b/doc/platforms.texi @@ -7,12 +7,12 @@ Look @ref{Integrity, here} for finding public keys for tarball authentication. @verbatim -% wget http://www.nncpgo.org/download/nncp-3.1.tar.xz -% wget http://www.nncpgo.org/download/nncp-3.1.tar.xz.sig -% gpg --verify nncp-3.1.tar.xz.sig nncp-3.1.tar.xz -% xz -d nncp-3.1.tar.xz -% tar xf nncp-3.1.tar -% make -C nncp-3.1 all +$ wget http://www.nncpgo.org/download/nncp-3.1.tar.xz +$ wget http://www.nncpgo.org/download/nncp-3.1.tar.xz.sig +$ gpg --verify nncp-3.1.tar.xz.sig nncp-3.1.tar.xz +$ xz -d nncp-3.1.tar.xz +$ tar xf nncp-3.1.tar +$ make -C nncp-3.1 all @end verbatim There is @command{install} target respecting @env{DESTDIR}. It will @@ -40,11 +40,11 @@ follow @ref{General, general} installation instructions @verbatim # apt-get install golang-1.6 -% wget http://www.nncpgo.org/download/nncp-3.1.tar.xz -% wget http://www.nncpgo.org/download/nncp-3.1.tar.xz.sig -% gpg --verify nncp-3.1.tar.xz.sig nncp-3.1.tar.xz -% tar xf nncp-3.1.tar.xz -% PATH=/usr/lib/go-1.6/bin:$PATH make -C nncp-3.1 all +$ wget http://www.nncpgo.org/download/nncp-3.1.tar.xz +$ wget http://www.nncpgo.org/download/nncp-3.1.tar.xz.sig +$ gpg --verify nncp-3.1.tar.xz.sig nncp-3.1.tar.xz +$ tar xf nncp-3.1.tar.xz +$ PATH=/usr/lib/go-1.6/bin:$PATH make -C nncp-3.1 all # make -C nncp-3.1 install PREFIX=/usr @end verbatim diff --git a/doc/sources.texi b/doc/sources.texi index 38de61a..c048885 100644 --- a/doc/sources.texi +++ b/doc/sources.texi @@ -11,10 +11,10 @@ You can obtain it by cloning @url{http://git-scm.com/, Git} and fetching dependent libraries source code as git submodules: @verbatim -% git clone git://git.cypherpunks.ru/nncp.git nncp -% cd nncp -% git checkout develop -% git submodule update --init +$ git clone git://git.cypherpunks.ru/nncp.git nncp +$ cd nncp +$ git checkout develop +$ git submodule update --init @end verbatim Also there is mirror of dependent libraries for safety if their native diff --git a/doc/usecases.ru.texi b/doc/usecases.ru.texi index 69c747c..7b6423c 100644 --- a/doc/usecases.ru.texi +++ b/doc/usecases.ru.texi @@ -80,8 +80,8 @@ IMAP4, как правило, нет). У вас легковесный, сжа Команды: @verbatim -% nncp-file file_i_want_to_send bob: -% nncp-file another_file bob:movie.avi +$ nncp-file file_i_want_to_send bob: +$ nncp-file another_file bob:movie.avi @end verbatim добавят в очередь отправки два файла для узла @emph{bob}. @@ -106,9 +106,9 @@ NNCP поддерживает @ref{Niceness, приоритезацию траф опцию: @verbatim -% nncp-file -nice FLASH myfile node:dst -% nncp-xfer -nice PRIORITY /mnt/shared -% nncp-call -nice NORMAL bob +$ nncp-file -nice FLASH myfile node:dst +$ nncp-xfer -nice PRIORITY /mnt/shared +$ nncp-call -nice NORMAL bob [...] @end verbatim @@ -119,8 +119,8 @@ NNCP поддерживает @ref{Niceness, приоритезацию траф Вы также можете использовать CD-ROM и ленточные накопители: @verbatim -% nncp-bundle -tx bob | cdrecord -tao - -% nncp-bundle -tx bob | dd of=/dev/sa0 bs=10240 +$ nncp-bundle -tx bob | cdrecord -tao - +$ nncp-bundle -tx bob | dd of=/dev/sa0 bs=10240 @end verbatim @node UsecaseNoLinkRU @@ -136,7 +136,7 @@ NNCP поддерживает @ref{Niceness, приоритезацию траф запустите @ref{nncp-xfer}: @verbatim -% nncp-xfer -node bob /media/usbstick +$ nncp-xfer -node bob /media/usbstick @end verbatim чтобы скопировать все исходящие пакеты относящиеся к @emph{bob}. @@ -149,14 +149,14 @@ NNCP поддерживает @ref{Niceness, приоритезацию траф @option{-node} опцию, чтобы скопировать все доступные исходящие пакеты. @verbatim -% nncp-xfer /media/usbstick +$ nncp-xfer /media/usbstick @end verbatim Размонтируйте и передайте накопитель Бобу и Алисе. Когда они вставят накопитель в свои компьютеры, то выполнят точно такую же команду: @verbatim -% nncp-xfer /media/usbstick +$ nncp-xfer /media/usbstick @end verbatim чтобы найти все пакеты относящиеся к их узлу и локально скопируют для @@ -176,8 +176,8 @@ NNCP поддерживает @ref{Niceness, приоритезацию траф зашифрованных пакетов}, которые вы можете принять. @verbatim -% nncp-bundle -tx alice bob eve ... | команда для отправки широковещательной рассылки -% команда для приёма широковещательной рассылки | nncp-bundle -rx +$ nncp-bundle -tx alice bob eve ... | команда для отправки широковещательной рассылки +$ команда для приёма широковещательной рассылки | nncp-bundle -rx @end verbatim Встроенная возможность определять дубляжи пакетов позволит вам @@ -244,13 +244,13 @@ NNCP поддерживает @ref{Niceness, приоритезацию траф транспорт с свойством совершенной прямой секретности. @verbatim -% nncp-daemon -bind [::]:5400 +$ nncp-daemon -bind [::]:5400 @end verbatim запустит TCP демон, который будет слушать входящие соединения на всех интерфейсах. @verbatim -% nncp-call bob +$ nncp-call bob @end verbatim попытается подключиться к известному TCP-адресу узла @emph{bob} (взятого из конфигурационного файла), послать все связанные с ним исходящие diff --git a/doc/usecases.texi b/doc/usecases.texi index 1c0a750..3626964 100644 --- a/doc/usecases.texi +++ b/doc/usecases.texi @@ -78,8 +78,8 @@ daemon}. The command: @verbatim -% nncp-file file_i_want_to_send bob: -% nncp-file another_file bob:movie.avi +$ nncp-file file_i_want_to_send bob: +$ nncp-file another_file bob:movie.avi @end verbatim will queue two files for sending to @emph{bob} node. Fire and forget! @@ -101,9 +101,9 @@ niceness level, that will guarantee that it will be processed earlier or later than the other ones. Nearly all commands has corresponding option: @verbatim -% nncp-file -nice FLASH myfile node:dst -% nncp-xfer -nice PRIORITY /mnt/shared -% nncp-call -nice NORMAL bob +$ nncp-file -nice FLASH myfile node:dst +$ nncp-xfer -nice PRIORITY /mnt/shared +$ nncp-call -nice NORMAL bob [...] @end verbatim @@ -114,8 +114,8 @@ storages. You can also use CD-ROM and tape drives: @verbatim -% nncp-bundle -tx bob | cdrecord -tao - -% nncp-bundle -tx bob | dd of=/dev/sa0 bs=10240 +$ nncp-bundle -tx bob | cdrecord -tao - +$ nncp-bundle -tx bob | dd of=/dev/sa0 bs=10240 @end verbatim @node UsecaseNoLink @@ -129,7 +129,7 @@ Assume that you send two files to @emph{bob} node. Insert USB storage device (SD is preferable!), mount it and run @ref{nncp-xfer}: @verbatim -% nncp-xfer -node bob /media/usbstick +$ nncp-xfer -node bob /media/usbstick @end verbatim to copy all outbound packets related to @emph{bob}. Use @option{-mkdir} @@ -141,14 +141,14 @@ If you use single storage device to transfer data both to @emph{bob} and outgoing packets. @verbatim -% nncp-xfer /media/usbstick +$ nncp-xfer /media/usbstick @end verbatim Unmount it and transfer storage to Bob and Alice. When they will insert it in their computers, they will use exactly the same command: @verbatim -% nncp-xfer /media/usbstick +$ nncp-xfer /media/usbstick @end verbatim to find all packets related to their node and copy them locally for @@ -166,8 +166,8 @@ You can use @ref{Bundles, bundles} and stream them above. They are just a sequence of @ref{Encrypted, encrypted packets} you can catch on. @verbatim -% nncp-bundle -tx alice bob eve ... | command to send broadcast -% command to receive broadcast | nncp-bundle -rx +$ nncp-bundle -tx alice bob eve ... | command to send broadcast +$ command to receive broadcast | nncp-bundle -rx @end verbatim With built-in packet duplicates detection ability, you can retransmit @@ -230,13 +230,13 @@ in the very first packet) secure transport with forward secrecy property. @verbatim -% nncp-daemon -bind [::]:5400 +$ nncp-daemon -bind [::]:5400 @end verbatim will start TCP daemon listening on all interfaces for incoming connections. @verbatim -% nncp-call bob +$ nncp-call bob @end verbatim will try to connect to @emph{bob}'s node known TCP addresses (taken from configuration file) and send all related outbound packets and retrieve