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

KVM

Questa è una guida che spiega come installare KVM su una macchina di Hetzner utilizzando LVM per le partizioni delle macchine virtuali.

Partizionare la macchina

Lanciare in rescue system e lanciare l'utility di hetzner installimages. L'utility ti chiederà di modificare un file di configurazione. La nostra modifica è questa:

PART swap swap 1G                                                                                                                                      
PART /boot ext3 300M                                                                                                                                   
PART / ext4 200G                                                                                                                                       
PART /data ext3 all                                                                                                                                   

Installiamo la macchina (nel nostro caso ubuntu 11.10) ed entriamo in ssh. Quindi smontiamo /data (che è sulla partizione raid /dev/md3) e ci creiamo dei logical volume con LVM (vedi LVM ). Ricordiamoci di modificare /etc/fstab per commentare la linea in cui monta /data, altrimenti la macchina non riparte!!! Noi abbiamo creato /dev/beers/ale , /dev/beers/lambic , /dev/beers/guinness etc etc. di 400 GB l'uno.

Interfaccia di rete

Le macchine di hetzner nascono con un eth0 con settato l'ip della macchina "host" (nel nostro caso 176.9.66.117). In più abbiamo una /29 (176.9.211.208/29). Abbiamo anche una /64 ipv6 (2a01:4f8:150:8461::/64). Ci troviamo il gateway sapendo che le subnet ipv6 di hetzner sono /59. Quindi il nostro gateway sara il primo ip disponibile della relativa /59. Nel nostro caso 2a01:4f8:150:8460::1.

Modifichiamo /etc/network/interfaces aggiungendo sotto alla sezione di eth0, questa interfaccia di bridge:

auto br0
iface br0 inet static
        address         176.9.66.117
        broadcast       176.9.66.127
        netmask         255.255.255.224
        gateway         176.9.66.97

        bridge_ports    eth0
        bridge_stp      on
        bridge_maxwait  5

iface br0 inet6 static
        address         2a01:4f8:150:8461::1
        netmask         59
        gateway         2a01:4f8:150:8460::1

IP presi

host   176.9.211.209
ale (orazio) 176.9.211.210
claudyuss (corona) 176.9.211.211
hispanico (guinness) 176.9.211.212

Interfaccie di rete (ipv6)

da http://linux-attitude.fr/post/proxy-ndp-ipv6.

Sfruttando la /64 assegnataci da heizner abbiamo impostato un proxy ndp sull host. In praticamente è equivalente a un proxy arp ipv4.

sysctl -w net.ipv6.conf.all.proxy_ndp=1
ip -6 neigh add proxy 2a01:XXX:8461::212 dev eth0

questo comando dice alla macchina "redirigire" il 212 attraverso eth0. La eth0 è l'interfaccia verso fuori, mentre br0 è il bridge collegato alle macchine virtuali. 2a01:XXX:8461::212 è l'indirizzo di una macchina host.

aggiungendo n righe per ogni macchina su /etc/network/intefaces si risolve

Creare la propria macchina

Installare il pacchetto qemu-kvm e python-vm-builder Ognuno di noi ha una partizione LVM in /dev/beers/XXXX (corona, guinness, ale etc). Questo è un esempio per tirare su la macchina "ale" (ip 176.9.211.210).

mkdir -p /var/lib/libvirt/images/ale/mytemplates/libvirt
cp /etc/vmbuilder/libvirt/* /var/lib/libvirt/images/ale/mytemplates/libvirt/
vi /var/lib/libvirt/images/ale/vmbuilder.partition

modificarlo tipo:

root 395000
swap 5000

Creare un file che viene eseguito al primo avvio della macchina virtuale:

vi /var/lib/libvirt/images/ale/boot.sh

scrivendoci dentro:

echo "start on stopped rc RUNLEVEL=[2345]" >  /etc/init/ttyS0.conf
echo "stop on runlevel [!2345]" >> /etc/init/ttyS0.conf
echo "respawn"  >> /etc/init/ttyS0.conf
echo "exec /sbin/getty -L 115200 ttyS0 xterm" >>  /etc/init/ttyS0.conf
start ttyS0

dare questi comandi cambiando opportunamente i parametri:

cd /var/lib/libvirt/images/ale/

IP=176.9.211.210 HOSTNAME=ale VMNAME=ale LVMGROUP=beers LVMVOL=ale USER=orazio PASSWORD=acab123 GATEWAY=176.9.211.209 MASK=255.255.255.248 NET=176.9.211.208 BROADCAST=176.9.211.215 DNS=8.8.4.4 UBUNTU=oneiric 

vmbuilder kvm ubuntu --suite=${UBUNTU} --flavour=virtual --arch=amd64 --mirror=http://de.archive.ubuntu.com/ubuntu -o --libvirt=qemu:///system --ip=$IP --gw=$GATEWAY --mask=$MASK --net=$NET --bcast=$BROADCAST --dns=$DNS  --part=vmbuilder.partition --raw=/dev/mapper/${LVMGROUP}-${LVMVOL} --templates=mytemplates --user=$USER --name=$USER --pass=$PASSWORD --addpkg=vim-nox --addpkg=unattended-upgrades --addpkg=acpid --addpkg=avahi-daemon --addpkg=openssh-server --mem=3000 --hostname=$HOSTNAME --bridge=br0  --firstboot=/var/lib/libvirt/images/${VMNAME}/boot.sh

editiamo il file xml con le impostazioni della macchina virtuale

virsh edit ale

aggiungendo la parte per avere la console seriale (dentro il blocco xml "devices"):

[...]
<serial type="pty">
    <source path="/dev/pts/4"/>
    <target port="1"/>
</serial>

ricarichiamo le impostazioni e facciamo partire la macchina lanciando il comando "virsh" e scrivendo sulla shell di virsh "start ale".

Se tutto va bene possiamo ora connetterci alla macchina virtuale via ssh e via console.

Per provare la connessione via console, sempre dalla shell virsh scriviamo "console ale".

Usare KVM

Eseguendo il comando "virsh" abbiamo la shell virsh. Da lì possiamo dare una serie di comandi:

Per avviare/fermare una macchina

start nomemacchina

stop nomemacchina

Per vedere le macchine attive:

list

Per entrare in console nella macchina

console nomemacchina

Per far partire le macchine virtuali (vm) quando si avvia la macchina host:

autostart nomemacchina

guida marco

http://wiki.netgroup.uniroma2.it/doku.php?id=virtual_machine_creation_with_kvm_on_ubuntu_server_11.04