💾 Archived View for g.nubecita.online › services › nntp-cookbook.org captured on 2023-07-22 at 16:25:48. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

This will create a non-moderated ("y") group. Moderated groups are created witn "m" flag.

+BEGIN_SRC shell

/usr/libexec/news/ctlinnd newgroup myusenet.news.notifications y admin

+END_SRC

After that check if your group were added with the command explained in Section [[*List groups][List groups]].

Check newsgroups and messages with:

: /usr/libexec/news/getlist

In some systems, =getlist= would not work and the port and host must be provided.

The default value of host is to use the =server= value in =inn.conf=, or to use the NNTPSERVER environment variable. The host configured in those values may not resolve to an IP. In this case, is preferable to change the =pathhost= and =server= values to the domain name of the server, or to add the server name to =/etc/hosts= Nevertheless, =getlist= can be executed with the following parameters to specify the server IP address and port:

: /usr/libexec/news/getlist -h 127.0.0.1 -p 119

The users and password are checked by =ckpasswd= as specified in =/etc/news/readers.conf=. Usually, the =ckpasswd= progra use the file =/var/lib/news/newsusers= as parameter. This file has a simple format. Each line use the following syntax: =USERNAME:HASHED-PASSWORD=.

The Apache =htpasswd= program can be used to generate and update the newsuser file.

+BEGIN_SRC shell

htpasswd -d /var/lib/newsusers USERNAME

+END_SRC

Ensure the =-d= parameter is specified, because it indicates to use the crypt encryption for passwords. Password is requested if not provided as parameter.

+name: before-save

+BEGIN_SRC emacs-lisp :results silent

(require 'ox-gemini)

(org-export-to-file 'gemini "nntp-cookbook.gmi")

+END_SRC

----------------------------------------------------------------------

+TITLE: NNTP/News Cookbook

+SUBTITLE:

+AUTHOR: Christian Gimenez

+DATE: 18 nov 2022

+EMAIL:

+DESCRIPTION:

+KEYWORDS:

+COLUMNS: %40ITEM(Task) %17Effort(Estimated Effort){:} %CLOCKSUM

+STARTUP: inlineimages hidestars content hideblocks entitiespretty

+STARTUP: indent fninline latexpreview

+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:{} -:t f:t *:t <:t

+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc

+OPTIONS: tex:imagemagick

+TODO: TODO(t!) CURRENT(c!) PAUSED(p!) | DONE(d!) CANCELED(C!@)

-- Export

+LANGUAGE: en

+LINK_UP:

+LINK_HOME:

+EXPORT_SELECT_TAGS: export

+EXPORT_EXCLUDE_TAGS: noexport

#+export_file_name: index

-- HTML Export

+INFOJS_OPT: view:info toc:t ftoc:t ltoc:t mouse:underline buttons:t path:libs/org-info.js

+HTML_LINK_UP: index.html

+HTML_LINK_HOME: index.html

+XSLT:

-- For ox-twbs or HTML Export

#+HTML_HEAD: <link href="libs/bootstrap.min.css" rel="stylesheet">

-- -- LaTeX-CSS

#+HTML_HEAD: <link href="css/style-org.css" rel="stylesheet">

#+HTML_HEAD: <script src="libs/jquery.min.js"></script>

#+HTML_HEAD: <script src="libs/bootstrap.min.js"></script>

-- LaTeX Export

#+LATEX_CLASS: article

+latex_compiler: xelatex

#+latex_class_options: [12pt, twoside]

+latex_header: \usepackage{csquotes}

#+latex_header: \usepackage[spanish]{babel}

#+latex_header: \usepackage[margin=2cm]{geometry}

#+latex_header: \usepackage{fontspec}

-- biblatex

+latex_header: \usepackage[backend=biber, style=alphabetic, backref=true]{biblatex}

+latex_header: \addbibresource{tangled/biblio.bib}

-- -- Tikz

#+LATEX_HEADER: \usepackage{tikz}

#+LATEX_HEADER: \usetikzlibrary{arrows.meta}

#+LATEX_HEADER: \usetikzlibrary{decorations}

#+LATEX_HEADER: \usetikzlibrary{decorations.pathmorphing}

#+LATEX_HEADER: \usetikzlibrary{shapes.geometric}

#+LATEX_HEADER: \usetikzlibrary{shapes.symbols}

#+LATEX_HEADER: \usetikzlibrary{positioning}

#+LATEX_HEADER: \usetikzlibrary{trees}

#+LATEX_HEADER_EXTRA:

-- Info Export

+TEXINFO_DIR_CATEGORY: A category

+TEXINFO_DIR_TITLE: NNTP/News Cookbook: (nntp-cookbook)

+TEXINFO_DIR_DESC: One line description.

+TEXINFO_PRINTED_TITLE: NNTP/News Cookbook

+TEXINFO_FILENAME: nntp-cookbook.info

Local Variables:

org-hide-emphasis-markers: t

org-use-sub-superscripts: "{}"

fill-column: 80

visual-line-fringe-indicators: t

ispell-local-dictionary: "british"

org-latex-default-figure-position: "tbp"

eval: (add-hook 'before-save-hook (lambda () (org-babel-ref-resolve "before-save")) nil t)

End: