Input

book: Create a structured PDF document with headings, chapters, etc.
webpage: Specifies that the HTML sources are unstructured (plain web pages.) A page break is inserted between each file or URL in the output.
continuous: Specifies that the HTML sources are unstructured (plain web pages.) No page breaks are inserted between each file or URL in the output.
Title of the document for the front page.
Extract the first heading of the document and use it as title. If checked the title field has no effect.
The title image or HTML page. These file has to be an attachments!
Specify document version to be displayed on the title page.
Intellectual property owner of this document.
Copyright notice for this document.
Information about who and when modified the document are applied at the end.

Output

Specifies the output format.
Grayscale document  Title page
Compression :   JPEG big images 

Pagina

 
User defined page size 
Choose one of the predefined standard sizes or select user defined.
Specifies the page size using a standard name or in points (no suffix or ##x##pt), inches (##x##in), centimeters (##x##cm), or millimeters (##x##mm).
Set the target browser width in pixels (400-1200). This determines the page scaling of images.
   2-Sided   Landscape
   
   
   
Specifies the margin size using points (no suffix or ##x##pt), inches (##x##in), centimeters (##x##cm), or millimeters (##x##mm). Keep empty for default value.
Left
Middle
Right
Sets the page header to use on body pages.
Left
Middle
Right
Sets the page footer to use on body pages.

Indice

Sets the number of levels in the table-of-contents. Empty for unlimited levels.
   Numbered headings Check to number all of the headings in the document.
Sets the title for the table-of-contents. Empty for default title.
Left
Middle
Right
Sets the page header to use on table-of-contents pages.
Left
Middle
Right
Sets the page footer to use on table-of-contents pages.

Colors

Enter the HTML color for the body (background).
Enter the image file for the body (background). These file has to be an attachments!
Enter the HTML color for the text.
Sets the color of links.
Enables generation of links in PDF files.

Fonts

Set the default size of text.
Set the spacing between lines of text.
Choose the default typeface (font) of text.
Choose the default typeface (font) of headings.
Set the size of header and footer text.
Choose the font for header and footer text.
Change the encoding of the text in document.
Check to embed font in the output file.

PDF

Controls the initial viewing mode for the document.
Document: Displays only the docuemnt pages.
Outline: Display the table-of-contents outline as well as the document pages.
Full-screen: Displays pages on the whole screen; this mode is used primarily for presentations.
Controls the initial layout of document pages on the screen.
Single: Displays a single page at a time.
One column: Displays a single column of pages at a time.
Two column left/right: Display two columns of pages at a time; the first page is displayed in the left or right column as selected.
Choose the initial page that will be shown.

Security

Check to number all of the headings in the document.
 Versione stampabile   Modify
 Copy   Annotate
Specifies the document permissions.
Specifies the user password to restrict viewing permissions on this PDF document. Empty for no encryption.
Specifies the owner password to control who can change document permissions etc. If this field is left blank, a random 32-character password is generated so that no one can change the document.

Expert

Specify language to use for date and time format.
Shrink code blocks on page.
Show line numbers for code blocks.
Make spaces visable by dots (·) instead of white spaces.
Make line breaks visable by a extra character (¶) at the end.
Enable this feature if you searching for problems or intent to report a bug report

About

Version 2.4.2 (MoinMoin 1.9.7)


MoinMoin - Generate PDF document using HTMLDOC

This action script generate PDF documents from a Wiki site using
the HTMLDOC (http://www.htmldoc.org) software packages which has
to be preinstalled first.

Copy this script in your's MoinMoin action script plugin directory.

Thanks goes to Pascal Bauermeister who initiated the implementaion.
Lot of things changes since then but the idear using HTMLDOC is the
main concept of this implementation.

Please visit the homepage for further informations:
http://moinmo.in/ActionMarket/PdfAction

@copyright: (C) 2006 Pascal Bauermeister
@copyright: (C) 2006-2010 Raphael Bossek <raphael.bossek@solutions4linux.de>
@license: GNU GPL, see COPYING for details

       

Italiano English
Modifica History Actions

BackupOLSRAirOS

Introduzione

Verrà brevemente spiegato un metodo molto semplice per effettuare il backup della configurazione OLSR di tutti gli apparati in una rete come quella Ninux.org

Requisiti

1) Storage raggiungibile da tutti i nodi dove salvare tutti i files di configurazione

2) Server da dove eseguire lo script e raggiungibile da tutti nodi

3) Un file iphosts.bkc contenente tutti gli ip dei devices da raggiungere

4) Accesso ssh con chiave pubblica al dispositivo (funziona anche senza ma bisogna inserire la password ad ogni devices!!)

Creazione del file iphosts.bck

Chiaramente il percorso del file va specificato nello script. In questa guida lo considereremo nella stessa cartella dove risiederà lo script.

Il comando per generare il file è il seguente:

Nemesys:~# touch iphosts.bck && echo -e "192.168.105.102 \n192.168.105.103" > iphosts.bck

in questo caso nel file verranno inseriti gli ip 192.168.105.102 e 192.168.105.103

Generazione delle chiavi

Ora passiamo alla generazione delle chiavi per l'accesso al dispositivo senza password:

Nemesys:~# ssh-keygen -t rsa

L'output dovrebbe essere come quello sotto:

Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
/root/.ssh/id_rsa already exists.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
ed:87:f5:ec:d1:63:b0:d7:98:b3:94:ae:cb:7d:7d:d7 root@Nemesys
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|                 |
|                 |
|         .       |
|        S . ..   |
|         . o oo=.|
|          o ..X+=|
|           o =o+E|
|            +o=.o|
+-----------------+

Verifichiamo la presenza delle chiavi appena generate con il comando:

Nemesys:~# ls -al .ssh/
total 32K
drwx------  2 root root 4.0K Apr 28 01:48 .
drwxr-xr-x 11 root root 4.0K Apr 28 02:34 ..
-rw-r--r--  1 root root  736 Apr 14 00:35 authorized_keys
-rw-------  1 root root  736 Apr 14 00:33 id_dsa
-rw-------  1 root root 1.7K Apr 28 02:36 id_rsa
-rw-r--r--  1 root root  394 Apr 28 02:36 id_rsa.pub
-rw-r--r--  1 root root 4.2K Apr 28 01:55 known_hosts

A questo punto dobbiamo copiare la nostra chiave pubblica in tutti i dispositivi di cui vogliamo effettare il backup con il comando:

Nemesys:~# scp .ssh/id_rsa.pub root@192.168.105.102:/etc/dropbear/authorized_keys

The authenticity of host '192.168.105.102 (192.168.105.102)' can't be established
RSA key fingerprint is ad:be:ea:ed:03:1f:74:2c:00:78:a6:e2:79:28:9d:49.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.105.102' (RSA) to the list of known hosts.

Enter passphrase for key '/root/.ssh/id_dsa': <INSERIRE LA PASSWORD INSERITA AL MOMENTO DELLA GENERAZIONE DELLE CHIAVI>
root@192.168.105.102's password: <INSERIRE LA PASSWORD DEL DISPOSITIVO>
id_rsa.pub                                 100%  394     0.4KB/s   00:00

Ora verifichiamo che tutto sia andato a buon fine semplicemente elencando il file di una cartella direttamente con ssh attraverso il comando:

Nemesys:~# ssh admin@192.168.105.102 ls /etc/

il risultato dovrebbe essere l'elenco dei files della cartella /etc/ del dispositivo 192.168.105.102

Script

Ora che l'accesso al dispositivo è garantito e che il file è stato generato con tutti gli ip dei dispositivi passiamo allo script:

Nemesys:~# vi AirOSOlsrdbck.sh

e inseriamo:

 #!/bin/sh
DATE=date +%d-%m-%y
DIR="/home/backup/OLSR"
mkdir -p $DIR/$DATE
echo "I files verranno salvati in $DIR/$DATE"
for ip in cat iphosts.bck; do
if ping -c 1 -w 5 $ip &>/dev/null
then
scp root@$ip:/etc/olsrd.conf $DIR/$DATE/$ip
sleep 5
fi
done

Al primo avvio verranno create le cartelle /home/backup/OLSR/<data> in cui per ogni dispositivo verrà creato un file con nome l'ip del dispositivo. Inoltre le variabili $DATE e $DATA possono essere modificate per poter personalizzare la posizione del backup.

Non dimentichiamoci infine di dare i permessi di esecuzione allo script con il comando:

Nemesys:~# chmod +x  AirOSOlsrdbck.sh

Per avviarlo :

Nemesys:~# ./AirOSOlsrdbck.sh

Bye Bye! ;-)