USB Digit�lis f�nyk�pez�g�p HOGYAN

Dave Kelly

2002 �prilis

Verzi�t�rt�net
Verzi�: 2.02002.06.02�tdolgozta: tab
Docbook XML 4.1.2 form�tumra konvert�lva
Verzi�: 1.02002.04.13�tdolgozta: dek
Els� kiad�s

Tartalomjegyz�k
1. Licensz
1.1. Szerz�i jog
1.2. Magyar ford�t�s
1.3. C�l
1.4. A k�sz�l�kek k�re
1.5. Szakirodalom
2. El�felt�telek
3. El�k�sz�t�s
4. A szkriptek
4.1. Ha egyszer� felhaszn�l�k�nt jelentkezel be
4.2. Ha superuserk�nt jelentkezel be
4.3. Futtathat�v� t�tel
4.4. Mi t�rt�nik mialatt a szkript fut?
5. Tesztel�s �s finomhangol�s
5.1. NE ESS K�TS�GBE!
6. Hibaelh�r�t�s vagy a K�TS�GBEES�S!
7. Utols� sim�t�sok
A. A Mell�klet
A.1. 1. R�SZ
A.2. 2. R�SZ
B. B Mell�klet
C. C Mell�klet
D. Gnu Free Documentation License
D.1. PREAMBLE
D.2. APPLICABILITY AND DEFINITIONS
D.3. VERBATIM COPYING
D.4. COPYING IN QUANTITY
D.5. MODIFICATIONS
D.6. COMBINING DOCUMENTS
D.7. COLLECTIONS OF DOCUMENTS
D.8. AGGREGATION WITH INDEPENDENT WORKS
D.9. TRANSLATION
D.10. TERMINATION
D.11. FUTURE REVISIONS OF THIS LICENSE
D.12. How to use this License for your documents

Fejezet 1. Licensz


1.2. Magyar ford�t�s

A magyar ford�t�st Horv�th Albert k�sz�tette (2002.09.26). A lektor�l�st Varga Zsolt v�gezte el (2002.11.05). B�rmilyen ford�t�ssal kapcsolatos �szrev�telt a linuxhowto@sch.bme.hu c�mre k�ldjetek. A dokumentum legfrissebb v�ltozata megtal�lhat� a Magyar Linux Dokument�ci�s Projekt honlapj�n.


1.4. A k�sz�l�kek k�re

Ez az elj�r�s Linux kernel 2.4.8 verzi�j�val m�k�dik egy�tt. �n egy Sony P-50 Cybershot-tal teszteltem, 4 MB-os illetve 64 MB-os memory stick mem�riak�rty�val, valamint egy Olympus digit�lis g�p sz�m�ra k�sz�lt USB csatol�fel�let� smart card olvas�val. Olvastam, hogy ez az elj�r�s eg�szen a 2.2.19-es kernel verzi�ig visszamen�leg m�k�dik, de erre nincs garancia. Biztosan tudom, hogy az elj�r�s nem m�k�dik a r�gi 2.2.15.-�s kernel verzi�mon.

Ebben a dokumentumban tal�lhat� inform�ci�k azt �rj�k le, hogyan oldottam meg �n a saj�t probl�m�imat. M�s m�dszer is l�tezik, de az a kernel �jraford�t�s�t teheti sz�ks�gess�, amit �n nem szerettem volna megcsin�lni. Ez a dokumentum megadja sz�modra az ahhoz sz�ks�ges inform�ci�kat, hogy az USB-s adathordoz� akt�v legyen az ind�t�s ut�n.

A Linux egy fejl�d� �s �gyes technol�gia, �s ha net�n ez a dokumentum nem adna v�laszt valamely k�l�nleges k�rd�sedre, minden bizonnyal egy olyan kiindul�pontot ad, amin alapulva el tudod kezdeni a v�lasz keres�s�t. Ezen k�v�l arra is k�pess� tesz, hogy �j dolgokat fedezz fel a keres�s sor�n.

A k�vetkez� kivonat a "gphoto2 README"-b�l sz�rmazik, amely egy kis �ttekint�st adhat, hogy milyen m�s f�nyk�pez�g�pek m�k�dnek m�g egy�tt ezzel az elj�r�ssal. Nem tudom, hogy kinek mondjak k�sz�netet ez�rt, mivel egyetlen nevet sem tal�ltam. N�zd meg a "gphoto" hivatkoz�st a friss inform�ci�k�rt: http://www.gphoto.org

Vannak olyan g�pek, melyek az �.n. USB Mass Storage (USB nagy kapacit�s� t�r) protokollt haszn�lj�k. Ez egy olyan ny�lt protokoll, mely el�rhet�v� tesz b�rmilyen t�rol�eszk�zt, legyen az digit�lis kamera, vagy egy lemez, amely USB fel�leten csatlakozik a sz�m�t�g�pedhez. Mivel m�r l�teznek az ehhez sz�ks�ges meghajt�programok, nem sz�ks�ges hozz� tov�bbi szoftver, mint p�ld�ul a gphoto2.

Jelen pillanatban a k�vetkez� digit�lis f�nyk�pez�g�pek t�mogatj�k a Mass Storage protokollt:

  • Casio QV [2x00,3x00,8000]

  • Fuji FinePix S1 Pro, [1400,2400,4700]Zoom, 1300, 4500

  • HP PhotoSmart 315, 618, 912

  • Leica Digilux 4.3

  • Konica KD300Z

  • Kyocera Finecam s3

  • Minolta Dimage 7

  • Nikon Coolpix 995

  • Olympus C-100, C-200Z, C-700, C-860L, C-2040, C-3020Z, C-3040Z, C-4040Zoom, D-510, E-10

  • Pentax Optio 330

  • Sony DSC-F505(V), DSC P5, DSC-F707

Ism�tlem, ezek a g�pek nem m�k�dnek a gphoto2 alatt.

M�s g�pek az �.n. PTP protokollt, vagy az USB Imaging Devices elj�r�st t�mogatj�k, melyet a Kodak �s m�sok fejlesztettek ki. A gphoto2 m�g nem t�mogatja a PTP-t, a jPhoto viszont igen. �me egy r�vid lista azokr�l a g�pekr�l, melyek t�mogatj�k ezt a protokollt:

  • Kodak DC-4800, DX-3215, DX-3500, DX-3600, DX-3700, DX-3900, MC3 �s azok a f�nyk�pez�g�pek, amik a Kodak Easy Share™ rendszert t�mogatj�k.

  • Sony DSC-P5, DSC-F707 (mindk�t k�sz�l�k eset�n a felhaszn�l�nak kell megfelel�en konfigur�lni a f�nyk�pez�g�pet)

Ezek a g�pek nem t�mogatottak, am�g a gphoto2 meg nem val�s�tja PTP protokollt.


Fejezet 2. El�felt�telek

A rendszerem egy Athlon 900-as, 40 Gb merevlemezzel. Sem SCSI, sem USB eszk�z�m sincs. A kernelem SCSI �s USB eszk�zmeghajt�k n�lk�l lett ford�tva. A SCSI �s USB meghajt�kat modulk�nt ford�tottam. Mandrake 8.1.-et haszn�lok, 2.4.8_26mdk kernel verzi�val. Mivel a kernel szintj�n dolgozunk, ez a dokumentum b�rmely disztrib�ci�ra �rv�nyes kell, hogy legyen.

A dokumentum �r�sa sor�n a tov�bbi felt�telez�sekkel is �ltem:


Fejezet 3. El�k�sz�t�s

Enn�l a pontn�l n�h�ny n�h�ny d�nt�st kell meghoznod. L�tre kell hoznod egy csatlakoztat�si k�nyvt�rat, �s sz�ks�ged lesz egy n�vre is a k�nyvt�radhoz. �n a "camera" k�nyvt�rat haszn�lom �s a /mnt al� hozom l�tre. A k�nyvt�r neve (esetemben ez a camera) b�rmilyen �ltalad v�lasztott sz� lehet. A k�nyvt�r l�trehoz�s�hoz a k�vetkez�t kell be�rni:

[bash]$ mkdir -m 777 /mnt/camera

Szeretem, ha a k�peim egy k�nyvt�rban, illetve alk�nyvt�rban helyezkednek el, a k�pek t�mak�rei szerint Ez�rt l�trehoztam egy kepek k�nyvt�rat a home k�nyvt�ramban. A k�nyvt�r neve (esetemben ez a kepek) b�rmilyen �ltalad v�lasztott sz� lehet. A k�nyvt�r l�trehoz�s�shoz a k�vetkez�t kell be�rni:

[bash]$ mkdir -m 777 ~/kepek

L�sd A.1 -t a dokumentum v�g�n.

J�n a nagy d�nt�s! Mindezt "egyszer� felhaszn�l�k�nt" vagy "superuserk�nt/root"szeretn�d v�grehajtani?


Fejezet 4. A szkriptek

A k�vetkez� szkript rengeteg Linuxos h�rcsoport, sok HOGYAN �s k�zik�nyv oldal olvas�s�b�l j�tt l�tre. Nem �g�rem, hogy eredeti leszek, de bevallom, hogy ez egy �tirata annak, amit n�lam sokkal tapasztaltabbak mondtak nekem. Nagyon k�sz�n�m mindenkinek, akik v�laszoltak a k�rd�seimre a levelez�list�n, valamint azoknak akik szint�n �rtak a list�ra, ezeket az inform�ci�kat keresve .

Kezdj�k el! V�lasszuk ki kedvenc sz�vegszerkeszt�nket, adjunk a f�jlunknak egy nevet, majd g�pelj�k be a k�vetkez� szkriptet, att�l f�gg�en, hogy mezei felhaszn�l�k, vagy superuserek vagyunk.


4.1. Ha egyszer� felhaszn�l�k�nt jelentkezel be

A k�vetkez� szkriptet �rd be:

echo "K�rem adja meg a k�pek k�nyvt�r�nak nev�t!"
read DIRPATH
mkdir ~/kepek/$DIRPATH
su -c "/sbin/modprobe usb-storage; mount -t vfat /dev/sda1 /mnt/camera;
/etc/rc.d/init.d/usb start;
mv /mnt/camera/dcim/100msdcf/*.jpg ~/kepek/$DIRPATH;
umount /mnt/camera;
chown -R a_te_bejelentkezesi_neved ~/kepek/$DIRPATH"

4.2. Ha superuserk�nt jelentkezel be

Ha nem k�v�nod superuserk�nt haszn�lni ezt a szkriptet, l�sd 4.3 .

A k�vetkez� szkriptet �rd be:

echo "K�rem adja meg a k�pek k�nyvt�r�nak nev�t!"
read DIRPATH
mkdir kepek/$DIRPATH
/sbin/modprobe usb-storage
mount -t vfat /dev/sda1 /mnt/camera
/etc/rc.d/init.d/usb start
mv /mnt/camera/dcim/100msdcf/*.jpg kepek/$DIRPATH;
umount /mnt/camera
chown -R a_te_bejelentkezesi_neved kepek/$DIRPATH

4.4. Mi t�rt�nik mialatt a szkript fut?

Amikor a szkriptet futtatod, a k�p t�m�j�nak megfelel� k�nyvt�rat hoz l�tre a rendszer. DIRPATH feladata, hogy a k�pekr�l egy le�r�st adjon, melyet a prompt-n�l kell beg�pelned. Ha a szkript_file_n�v = getcamJ,(J azt a c�lt szolg�lja, hogy a k�peket .jpg kiterjeszt�ssel kapjuk meg) a parancsok egym�s ut�n a k�vetkez�k :

[bash]$ getcamJ
K�rem adjon meg egy k�nyvt�rat a k�pei sz�m�ra!
bash]$ valami
Password: 
[bash]$ root jelszavad

Ha superuser m�dban futtatod a szkriptet, akkor a k�vetkez� r�szben foglaltakra nincs sz�ks�ged. Ahhoz, hogy a k�vetkez�ket futtathasd, superusernek kell lenni. Enn�l fogva a 'su' parancsot kell haszn�lnod. A -c jelz� lehet�v� teszi, hogy v�grehajtsunk egy parancsot, majd visszat�rj�nk a jelenlegi munkak�nyvt�runkhoz. Az id�z�jel lehet�s�get biztos�t, hogy egyn�l t�bb parancsot hajtsunk v�gre. A pontosvessz� pedig azt teszi lehet�v�, hogy egy parancsot k�zvetlen�l az utols� parancs ut�n hajthassunk v�gre.

/sbin/modprobe usb-storage: modprobe telep�teni fogja az USB mass storage modult minden egy�b sz�ks�ges modullal �s meghajt�val egy�tt, bele�rtve az SCSI eszk�zmeghajt�t is. Gy�z�dj meg r�la, hogy a /dev k�nyvt�r tartalmazza a k�vetkez� bejegyz�seket. sda0, sda1, sda2, sda3, sda4, sdb0, sdb1, sdb2, sdb3, sdb4. �ll�tsd be az sda1-t a megfelel� eszk�zh�z, ha csatolva van m�s SCSI eszk�z�d is, mint pl. sdb1.

Csatlakoztasd az SCSI eszk�zt: mount -t vfat /dev/sda1 /mnt/camera

Ind�tsd el az USB-t: /etc/rc.d/init.d/usb start

T�ltsd �t a k�peidet a kamer�r�l a merevlemezre. Az mv parancs le is fogja t�r�lni a k�peidet a f�nyk�pez�g�pr�l : mv /mnt/camera/dcim/100msdcf/*.jpg kepek/$DIRPATH;

Csatold le az SCSI eszk�zt: umount /mnt/camera

Majd: chown -R a_te bejelentkez�si_neved kepek/$DIRPATH. Ha valamit superuserk�nt (su) vagy gy�k�rk�nt hajtasz v�gre, akkor a gy�k�r fogja birtokolni azokat a f�jlokat/k�peket. Ha valamilyen m�veletet szeretn�l ezekkel a f�jlokkal/k�pekkel v�gezni, permission denied hiba�zenetet kaphatsz. A fenti utas�t�s lehet�v� teszi, hogy a felhaszn�l� ezen hib�k n�lk�l dolgozhasson. Tov�bbi inform�ci�khoz olvasd el a k�zik�nyv oldalakat.

Rendszeremben sem az USB sem a SCSI nincs beford�tva a kernelbe. Mindezeket modulk�nt ford�tottam. Ez a szkript azt felt�telezi, hogy neked is hasonl� rendszered van. Ha nem, akkor n�h�ny v�ltoztat�sra lesz sz�ks�ged. K�rlek olvasd el a k�zik�nyv oldalakat �s HOGYANokat. Vagy tedd fel k�rd�sedet egy Linuxszal foglalkoz� levelez�list�n.


Fejezet 5. Tesztel�s �s finomhangol�s

Rendben, telep�tett�nk mindent, �s k�szen �llunk egy kis felfedez�t�r�ra. K�sz�ts n�h�ny k�l�nb�z� form�tum� egyszer� k�pet. Az �n g�pem 4 f�l�t tud: TIFF, GIF, JPEG, �s MPEG, valamint k�sz�t minden k�pr�l egy el�n�zeti k�pet is. A Sony P-50 t�pus� g�pem 4 k�l�nb�z� alk�nyvt�rban t�rolja �ket: 100msdcf, imcif100, thm, �s moml0001. Ezek 2 k�nyvt�rban vannak, n�v szerint dcim, �s mssony. Ellen�rizd, hogy a g�ped hogyan nevezi el a k�nyvt�rakat. Ezt a k�vetkez�k�ppen teheted meg:


Fejezet 6. Hibaelh�r�t�s vagy a K�TS�GBEES�S!

Ha semmi sem ment rendben, keress�k meg a hib�t. N�zd meg a g�pedet, �s ellen�rizd, hogy megvannak-e m�g rajta a k�pek. Ha igen, ne is olvasd tov�bb ezt a bekezd�st. Ha nem, valahol csak lenni�k kell, ez�rt ellen�rizd �jra. Ha m�gsincsenek, �s nem tal�ltad meg �ket, akkor k�sz�ts m�g n�h�ny fot�t. Kapcsold ki a g�pedet, majd csatlakoztasd a sz�m�t�g�phez, �s ind�tsd �jra.

Ellen�rizz�k, hogy a /mnt/camera meg van-e, melyet az mv parancs csatolt le. Ha nincs meg, hozd �jra l�tre. El�fordul, hogy a csatlakoztat�si pont m�sk�ppen m�dosul. Azt is megfigyeltem a rendszeremen, hogy n�ha a /dev alatt tal�lhat� SCSI eszk�z (sda1) elt�nik. Ellen�rizd ezt is, �s sz�ks�g eset�n p�told.

T�r�ld ki az �sszes sort a szriptedb�l, melyek hiba�zenetet produk�ltak , majd futtasd �jra a szkriptet az �j k�nyvt�rnevekkel, �s n�zd meg, hogy m�k�dik-e. Hogy k�nnyeben kit�r�lhesd a f�jlokat �s k�nyvt�rakat, lehet, hogy az su --t kell haszn�lnod, ha user m�dban vagy. Ha v�gezt�l el, ne felejts vissza�llni a r�gi felhaszn�l�ra. L�sd C F�ggel�k a dokumentum v�g�n.

G�peld be a k�vetkez�t:

[bash]$ dmesg

�s a k�vetkez�ket kell l�tnod valahol:

hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: USB device 2 (vend/prod 0x54c/0x10) is not claimed by any active driver. (The 
0x54c/0x10 will be different for different vendors.)

Ha ezt l�tod, akkor az USB nagy kapcit�s� t�rol�t felismerte a rendszer.

Most kapcsold be a f�nyk�pez�g�pet, �s futtasd le a szkriptet (a m�dos�tottat). Ennek eredm�nyek�ppen valami hasonl�t kell l�tnod, miut�n �jra futtatod a dmesg parancsot:

[bash]$ dmesg

SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Sony Model: Sony DSC Rev: 3.22
Type: Direct-Access ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 126848 512-byte hdwr sectors (65 MB)
sda: Write Protect is off
/dev/scsi/host0/bus0/target0/lun0: p1
usb-uhci.c: interrupt, status 3, frame# 1628

Most ind�ts el a k�vetkez� parancsot, majd olvassd el a B F�ggel�k.

[bash]$ lsmod

Ha az lsmod parancs futtat�sakor kapott inform�ci�k hasonl�ak mint a B F�ggel�k,�s a dmesg a fennt eml�tett inform�ci�kat szolg�ltatja, �s m�g mindig nincsenek k�peid, akkor nem tudom hogy hol a hiba. Sajnos az egyetlen amit tan�csolni tudok, hogy, menj v�gig az eg�sz elj�r�son �jra. Most azonban haszn�ld az �tir�ny�t�st >f�jln�v az eredm�nyek r�gz�t�s�hez. Majd k�ld el a k�t levelez�lista valamelyik�re:

mes�ld el, hogy mit csin�lt�l eddig, �s k�rj seg�ts�get. Mindent �rj bele, amire csak gondolsz, mert min�l t�bb inform�ci�juk van ann�l jobb, �s ugyenekkor �rj nekem is egy e-mailt. C�mem: daveekelly@earthlink.net.


Fejezet 7. Utols� sim�t�sok

Miut�n minden m�k�dik, �s �gy m�k�dik, ahogyan azt te szeretn�d, ha akarod, megteheted m�g a k�vetkez�ket is. Mint eml�tettem ez nem k�telez�. A v�grehajthat� szkriptet futtathatod tov�bbra is abban a k�nyvt�rban, ahol meg�rtad, a pont perjel opci�val (./) vagy telep�theted a futtathat� alkalmaz�sokat tartalmaz� k�nyvt�rak egyik�be. �n a /usr/sbin k�nyvt�rat javaslom. Ehhez a k�vetkez� parancsot kell v�grehajtani:

[bash]$ install file_n�v /usr/sbin

F�ggel�k A. A Mell�klet

A.1. 1. R�SZ

A k�peimet a k�vetkez�k�ppen rendeztem el. Egy els�dleges k�nyvt�r kepek, �s egy alk�nyvt�r, mely a tartalm�t �rja le smkbot.

kepek/smkbot:
dsc00117.jpg dsc00120.jpg dsc00123.jpg dsc00126.jpg dsc00129.jpg 
dsc00118.jpg dsc00121.jpg dsc00124.jpg dsc00127.jpg dsc00130.jpg 
dsc00119.jpg dsc00122.jpg dsc00125.jpg dsc00128.jpg dsc00131.jpg

A.2. 2. R�SZ

A szkript m�dos�tott verzi�j�val a k�peid t�bb k�l�nb�z� alk�nyvt�rban lesznek sz�tsz�rva. De jelen pillanatban, �ppen ez az, amit szerett�nk volna el�rni.

kepek/trash:
camera

kepek/trash/camera:
dcim mssony

kepek/trash/camera/dcim:
100msdcf

kepek/trash/camera/dcim/100msdcf:
dsc00357.jpg dsc00360.jpg dsc00363.jpg txt00365.gif
dsc00358.jpg dsc00361.jpg dsc00364.jpg txt00365.thm
dsc00359.jpg dsc00362.jpg dsc00366.jpg

kepek/trash/camera/mssony:
imcif100

kepek/trash/camera/mssony/imcif100:
dsc00364.jpg dsc00366.tif

F�ggel�k B. B Mell�klet

Amit itt l�tni szeretn�nk, az az usb-storage sz� a Used by oszlop alatt :

Module       Size      Used by
nls_iso8859-12880  0   (autoclean)
nls_cp437 4400  0   (autoclean)
sd_mod11792  0   (autoclean)
vfat 9968  0   (autoclean)
fat 32192  0  (autoclean) [vfat]
usb-storage 52528 0
scsi_mod 91072 2 [sd_mod usb-storage]
ppp_deflate 42208 0  (autoclean)
bsd_comp  4576  0  (autoclean)
ppp_async 6672  0  (autoclean)
ppp_generic 19616  0  (autoclean) [ppp_deflate bsd_comp ppp_async]
slhc 5136  0  (autoclean) [ppp_generic]
parport_pc  20240 1  (autoclean)
lp 5808  0  (autoclean)
parport  24768  1 (autoclean) [parport_pc lp]
es1371 26768  1
soundcore 4208  4 [es1371]
ac97_codec  9312  0  [es1371]
gameport  1856  0  [es1371]
af_packet  12560  0 (autoclean)
ip_vs 62000  0  (autoclean)
usb-uhci  21232  0  (unused)
usbcore  50752  1 [usb-storage usb-uhci]
rtc 5600  0  (autoclean)

F�ggel�k C. C Mell�klet

Mikor el�rkezel oda, hogy let�rl�d ezeket a teszt k�nyvt�rakat, a k�vetkez� parancsot haszn�ld: L�GY NAGYON NAGYON �VATOS:

[bash]$ rm -Rf kepek/teszt_k�nyvt�r

A v�zzel egy�tt ki�ntheted a gyereket is a k�db�l, a teszt_k�nyvt�r -nak ugyanannak kell lennie, mint amit a $DIRPATH -nak be�rt�l a szkriptedben. (Nem ker�l semmibe egy kezd� sz�m�ra, ha el�sz�r valahol m�shol l�trehoz egy k�nyvt�r strukt�r�t, �tm�solja a k�peket ide, �s kipr�b�lja a fenti parancsot, miel�tt olyan helyen hajtan� v�gre, ahol helyre�ll�thatatlan k�rokat okoz). Ism�tlem, olvasd el a k�zik�nyv oldalakat.


F�ggel�k D. Gnu Free Documentation License

Version 1.1, March 2000

Copyright (C) 2000 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.


D.2. APPLICABILITY AND DEFINITIONS

This License applies to any manual or other work that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. The "Document", below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as "you".

A "Modified Version" of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language.

A "Secondary Section" is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document's overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (For example, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them.

The "Invariant Sections" are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License.

The "Cover Texts" are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License.

A "Transparent" copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, whose contents can be viewed and edited directly and straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup has been designed to thwart or discourage subsequent modification by readers is not Transparent. A copy that is not "Transparent" is called "Opaque".

Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML designed for human modification. Opaque formats include PostScript, PDF, proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML produced by some word processors for output purposes only.

The "Title Page" means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, "Title Page" means the text near the most prominent appearance of the work's title, preceding the beginning of the body of the text.


D.4. COPYING IN QUANTITY

If you publish printed copies of the Document numbering more than 100, and the Document's license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects.

If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages.

If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a publicly-accessible computer-network location containing a complete Transparent copy of the Document, free of added material, which the general network-using public has access to download anonymously at no charge using public-standard network protocols. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public.

It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document.


D.5. MODIFICATIONS

You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version:

  1. Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission.

  2. List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has less than five).

  3. State on the Title page the name of the publisher of the Modified Version, as the publisher.

  4. Preserve all the copyright notices of the Document.

  5. Add an appropriate copyright notice for your modifications adjacent to the other copyright notices.

  6. Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below.

  7. Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice.

  8. Include an unaltered copy of this License.

  9. Preserve the section entitled "History", and its title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section entitled "History" in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence.

  10. Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the "History" section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission.

  11. In any section entitled "Acknowledgements" or "Dedications", preserve the section's title, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein.

  12. Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles.

  13. Delete any section entitled "Endorsements". Such a section may not be included in the Modified Version.

  14. Do not retitle any existing section as "Endorsements" or to conflict in title with any Invariant Section.

If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version's license notice. These titles must be distinct from any other section titles.

You may add a section entitled "Endorsements", provided it contains nothing but endorsements of your Modified Version by various parties--for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard.

You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one.

The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version.


D.11. FUTURE REVISIONS OF THIS LICENSE

The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See http://www.gnu.org/copyleft/.

Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License "or any later version" applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation.