1 <!doctype linuxdoc system>
4 The line above starts a comments section
7 A changelog is useful if you don't use cvs etc.
9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11 010200: Created this Template for big HOWTOs
12 070500: Continued writing, no release yet.
13 280500: Released. Added examples for diagrams
14 050600: Clarified intent, added acknowledgements and note on conventions, moved samples to the end, added table sample, added small section on style
15 190600: Updated and corrected copyright section
16 240700: Added Troubleshooting section, cleaned up Getting Help and Bits and Pieces, fixed typo
18 The line below ends the comments section.
25 <title>HOWTO-template for big HOWTOs <!-- insert your title here -->
26 <author>Stein Gjoen, <tt/sgjoen@nyx.net/ <!-- insert your name here -->
27 <date>v0.05, 24 July 2000 <!-- always have a version number and a date -->
28 <abstract> <!-- the abstract: a short and precise description -->
29 <nidx>template</nidx> <!-- add indexing keywords as you go along -->
30 <!-- nidx means the indexed word is not in output of main text, only in the index -->
31 This is a fully working template for big HOWTOs. The source contains
32 fully described slots to make a convenient framework for you to fill in
33 for making your own HOWTO, suggesting some names, conventions and contents
39 <!-- Table of contents -->
42 <!-- Begin the document -->
48 <nidx>template!introduction</nidx> <!-- here introduction is a sub entry of template, exclamationamrk is separator -->
49 <em>My comments to the reader is in this style (emphasized)</em>.
50 Example lines are in plain roman style.
51 <em>Note that extra comments and advice is found in comments
52 within the SGML source.</em> <!-- such as this comment -->
54 For various reasons this brand new release is codenamed
55 the <bf/release/ release.
57 New code names will appear as per industry standard guidelines
58 to emphasize the state-of-the-art-ness of this document.
61 This document was written when I read a feedback asking for a
62 template to fill in to make new HOWTOs. This template is made
63 by extracting the skeletal structure of the Multi Disk HOWTO
64 which is a rather large HOWTO.
66 <em>This Template is a suggestion and a starting point, a check list
67 and examples for authors; it is not a requirement to be followed
68 slavishly. Over time HOWTOs might also outgrow any template since
69 in the end the goal is to inform readers efficiently.</em>
71 Stating the background is a simple way to getting started
74 First of all we need a bit of legalese. Recent development shows it is
79 <em>Copyright is a source of much and continuous debate on the
80 LDP mailing list. For more in depth information please consult
81 the Manifesto at the </em>
82 <url url="http://www.LinuxDoc.org/"
86 The purpose of having a license is to allow appropriate distribution.
87 You can use any license that meets the Manifesto.
88 What follows is a boilerplate licence.
92 This HOWTO is copyrighted 2000 Stein Gjoen. <em>Replace with your name
93 when you use this skeleton for a new HOWTO</em>
95 Unless otherwise stated, Linux HOWTO documents are copyrighted by their
96 respective authors. Linux HOWTO documents may be reproduced and distributed
97 in whole or in part, in any medium physical or electronic, as long as
98 this copyright notice is retained on all copies. Commercial redistribution
99 is allowed and encouraged; however, the author would like to be notified of
100 any such distributions.
102 All translations, derivative works, or aggregate works incorporating
103 any Linux HOWTO documents must be covered under this copyright notice.
104 That is, you may not produce a derivative work from a HOWTO and impose
105 additional restrictions on its distribution. Exceptions to these rules
106 may be granted under certain conditions; please contact the Linux HOWTO
107 coordinator at the address given below.
109 In short, we wish to promote dissemination of this information through as
110 many channels as possible. However, we do wish to retain copyright on the
111 HOWTO documents, and would like to be notified of any plans to redistribute
114 If you have questions, please contact
115 at linux-howto@metalab.unc.edu via email.
120 Copyright (c) 2000 by John Doe (change to your name)
122 Please freely copy and distribute (sell or give away) this document in
123 any format. It's requested that corrections and/or comments be fowarded
124 to the document maintainer. You may create a derivative work and distribute
125 it provided that you:
129 Send your derivative work (in the most suitable format such as
130 sgml) to the LDP (Linux Documentation Project) or the like for posting
131 on the Internet. If not the LDP, then let the LDP know where it is
134 License the derivative work with this same license or use GPL.
135 Include a copyright notice and at least a pointer to the license used.
137 Give due credit to previous authors and major contributors.
141 If you're considering making a derived work other than a translation,
142 it's requested that you discuss your plans with the current maintainer.
149 Use the information in this document at your own risk. I disavow any
150 potential liability for the contents of this document. Use of the
151 concepts, examples, and/or other content of this document is entirely
154 All copyrights are owned by their owners, unless specifically noted
155 otherwise. Use of a term in this document should not be regarded as
156 affecting the validity of any trademark or service mark.
158 Naming of particular products or brands should not be seen as endorsements.
160 You are strongly recommended to take a backup of your system before
161 major installation and backups at regular intervals.
166 <nidx>(your index root)!news on</nidx>
167 <em>This is where you make a summary of what it news. When a HOWTO exceeds
168 20 pages it takes more than a casual read to find the updates. This is
169 where you help your readers with that, alerting them to specific and
172 This is the second release featuring more samples and an improved structure.
173 <!-- This is the first release. No news yet. -->
174 <!-- Note that you might wish to keep old news commented out for reference
175 and perhaps state news as latest and next to latest update. -->
177 <em>Tell people where the document home page is so the very newest
178 release could be found in case of problems with the main
179 <url url="http://www.linuxdoc.org/"
180 name="Linux Documentation Project">
184 The latest version number of this document can be gleaned from my
185 plan entry if you <!-- do "finger sgjoen@nox.nyx.net" -->
186 <url url="http://www.cs.indiana.edu/finger/nox.nyx.net/sgjoen"
187 name="finger"> my Nyx account.
189 <em>If you have the capacity it would be nice to make the HOWTO
190 available in a number of formats.</em>
192 Also, the latest version of the Template will be available on
193 my web space on Nyx in a number of formats:
196 <url url="http://www.nyx.net/˜sgjoen/template.html"
200 <url url="http://www.nyx.net/˜sgjoen/template.txt"
201 name="plain ASCII text">.
203 <!-- consider PostScript and perhaps also PDF formates
205 <url url="http://www.nyx.net/˜sgjoen/disk-US.ps.gz"
206 name="compressed postscript US letter format">.
209 <url url="http://www.nyx.net/˜sgjoen/disk-A4.ps.gz"
210 name="compressed postscript European A4 format">.
213 <url url="http://www.nyx.net/˜sgjoen/template.sgml"
217 <em>Note that paper sizes vary in the world, A4 and US letter differ
222 <em>It is always nice to acknowledge people who help you with inputs, it
223 is also regarded by many as important in the Linux world new economy</em>
225 In this version I have the pleasure of acknowledging
228 corff (at) ZEDAT.FU-Berlin.DE
229 dwood (at) plugged.net.au
230 lcl (at) spiretech.com
231 kgh12351 (at) nifty.ne.jp
236 <em>Scramble the addresses so email harvesters cannot get
237 addresses from your HOWTO and then spam people. That has
238 happened in the past.</em>
243 Not everyone speaks English, pointers to translations are nice.
244 Also your translators tend to give very important inputs.
246 <item><url url="http://linuxdoc.org/"
247 name="German Translation"> by <tt/someone (at) somewhere.de/
249 <item><url url="http://www.swe-doc.linux.nu"
250 name="Swedish Translation "> by <tt/someone (at) somewhere.se/
252 <item><url url="http://linuxdoc.org/"
253 name="French Translation"> by <tt/someone (at) somewhere.fr/
255 <item><url url="http://linuxdoc.org/"
256 name="Chinese Translation"> by <tt/someone (at) somewhere.cn/
258 <item><url url="http://linuxdoc.org/"
259 name="Italian Translation"> by <tt/someone (at) somewhere.it/
265 Also Somecompany is acknowledged for sending me documentation
266 on their gizmos as well as permission to quote from the material.
267 These quotes have been approved before appearing here and will
270 Any comments or suggestions can be mailed to my mail address on Nyx:
271 <htmlurl url="mailto:sgjoen@nyx.net/"
272 name="sgjoen@nyx.net">.
279 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
285 <em>A quick overview on how all parts fit together in the structure.
286 Here I use an example from my Multi Disk HOWTO.</em>
288 As this type of document is supposed to be as much for learning
289 as a technical reference document I have rearranged the structure
290 to this end. For the designer of a system it is more useful to
291 have the information presented in terms of the goals of this exercise
292 than from the point of view of the logical layer structure of the
293 devices themselves. Nevertheless this document would not be complete
294 without such a layer structure the computer field is so full of, so
295 I will include it here as an introduction to how it works.
297 <sect1>Logical structure
299 <nidx>disk!structure, I/O subsystem</nidx>
300 This is based on how each layer access each other, traditionally
301 with the application on top and the physical layer on the bottom.
302 It is quite useful to show the interrelationship between each of
303 the layers used in controlling drives.
305 ___________________________________________________________
306 |__ File structure ( /usr /tmp etc) __|
307 |__ File system (ext2fs, vfat etc) __|
308 |__ Volume management (AFS) __|
309 |__ RAID, concatenation (md) __|
310 |__ Device driver (SCSI, IDE etc) __|
311 |__ Controller (chip, card) __|
312 |__ Connection (cable, network) __|
313 |__ Drive (magnetic, optical etc) __|
314 -----------------------------------------------------------
318 In the above diagram both volume management and RAID and concatenation
319 are optional layers. The 3 lower layers are in hardware.
320 All parts are discussed at length later on in this document.
322 <sect1>Document structure
324 Most users start out with a given set of hardware and some plans on
325 what they wish to achieve and how big the system should be. This is
326 the point of view I will adopt in this document in presenting the
327 material, starting out with hardware, continuing with design constraints
328 before detailing the design strategy that I have found to work well.
329 I have used this both for my own personal computer at home, a multi
330 purpose server at work and found it worked quite well. In addition my
331 Japanese co-worker in this project have applied the same strategy on
332 a server in an academic setting with similar success.
334 Finally at the end I have detailed some configuration tables for use
335 in your own design. If you have any comments regarding this or notes
336 from your own design work I would like to hear from you so this
337 document can be upgraded.
341 <em>As you go beyond 50 pages or so there will be a lot of text that
342 experts and even the experienced do not need to read. Keeping in mind
343 that we wish to care for all kinds of people in the Linux world we
344 might have to make a reading plan. Again example follows from my
347 Although not the biggest HOWTO it is nevertheless rather big already
348 and I have been requested to make a reading plan to make it possible
349 to cut down on the volume
352 <tag/Expert/ (aka the elite). If you are familiar with Linux as well
353 as disk drive technologies you will find most of what you need in the
354 appendices. Additionally you are recommended to read the FAQ and the
355 <ref id="bits-n-pieces" name="Bits'n'pieces">
358 <tag/Experienced/ (aka Competent). If you are familiar with computers
359 in general you can go straight to the chapters on
360 <ref id="technologies" name="technologies">
361 and continue from there on.
363 <tag/Newbie/ (mostly harmless). You just have to read the whole thing.
364 Sorry. In addition you are also recommended to read all the other disk
369 <sect>Technologies <label id="technologies">
371 <nidx>(your index root)!technologies</nidx>
372 <em>Introduction of technology for the newbie with a few
373 references to detailled works. Remember that not everyone
374 has Internet access so you have to explain in sufficient
375 details so even the newbie can get by.</em>
380 <nidx>(your index root)!implementation</nidx>
381 <em>Now your readers should have a sufficient knowledge of what
382 this is about and now we come to the hands on of implementing
383 your clever scheme.</em>
388 <nidx>(your index root)!maintenance</nidx>
389 <em>Few systems and designs are maintenance free, here you explain
390 how to keep the system running.</em>
393 <sect>Advanced Issues
395 <nidx>(your index root)!advanced topics</nidx>
396 <em>You can get most things up and running in a quick and dirty
397 fashion, useful for testing and getting used to how things work.
398 For more serious use you would need to be a little more advanced.
399 This is the place to explain it all, if applicable.</em>
402 <sect>Troubleshooting <label id="troubleshooting">
404 <nidx>(your index root)!troubleshooting</nidx>
405 <em>Many problems can be solved by a simple structured approach,
406 analysing the symptoms, finding the cause and determining the
407 solution. The following is an exerpts from the Multi Disk HOWTO.</em>
409 <sect1>During Installation
411 <sect2>Locating Disks
414 <tag/Symptoms/Cannot find disk
415 <tag/Problem/How to find what drive letter corresponds to what disk/partition
416 <tag/Solution/Remember Linux does not use drive letters but device names. More
417 information can be found in section "Drive names".
421 <tag/Symptoms/Cannot partition disk
422 <tag/Problem/Most likely wrong input to the command line for <tt/fdisk/ or similar tool.
423 <tag/Solution/Remember to use <tt>/dev/hda</tt> rather than just <tt>hda</tt>. Also
424 do not use numbers behind <tt>hda</tt>, those indicate partitions.
431 <tag/Symptoms/Cannot format disk.
432 <tag/Problem/Strictly speaking you format partitions not disks.
433 <tag/Solution/Make sure you add the partition number after the device name
434 of the disk, for instance <tt>/dev/hda1</tt> to the command line.
438 <sect>Further Information
440 <nidx>(your index root)!information resources</nidx>
441 <em>A HOWTO cannot describe everything, some times the user
442 has to venture out on th enet to get more information or just
443 updates. Here is the place to tell where and how. Again examples
444 from my HOWTO, replace as needed.</em>
445 There is wealth of information one should go through when setting up a
446 major system, for instance for a news or general Internet service provider.
447 The FAQs in the following groups are useful:
451 <nidx>disk!information resources!news groups</nidx>
452 Some of the most interesting news groups are:
454 <item><url url="news:comp.arch.storage" name="Storage">.
455 <item><url url="news:comp.sys.ibm.pc.hardware.storage" name="PC storage">.
456 <item><url url="news:alt.filesystems.afs" name="AFS">.
457 <item><url url="news:comp.periphs.scsi" name="SCSI">.
458 <item><url url="news:comp.os.linux.setup" name="Linux setup">.
461 Most newsgroups have their own FAQ that are designed to answer most of your
462 questions, as the name Frequently Asked Questions indicate. Fresh versions
463 should be posted regularly to the relevant newsgroups. If you cannot find it
464 in your news spool you could go directly to the
465 <url url="ftp://rtfm.mit.edu"
466 name="FAQ main archive FTP site">. The WWW versions can be browsed at
467 <url url="http://www.cis.ohio-state.edu/hypertext/faq/usenet/FAQ-List.html"
468 name="FAQ main archive WWW site">.
470 Some FAQs have their own home site, of particular interest here are
472 <item><url url="http://www.paranoia.com/˜filipg/HTML/LINK/F_SCSI.html"
474 <item><url url="http://alumni.caltech.edu/˜rdv/comp_arch_storage/FAQ-1.html"
475 name="comp.arch.storage FAQ">.
481 <nidx>disk!information resources!mailing lists</nidx>
482 These are low noise channels mainly for developers. Think
483 twice before asking questions there as noise delays the development.
484 Some relevant lists are <tt/linux-raid/, <tt/linux-scsi/ and <tt/linux-ext2fs/.
485 Many of the most useful mailing lists run on the <tt>vger.rutgers.edu</tt> server
486 but this is notoriously overloaded, so try to find a mirror. There are some lists mirrored at
487 <url url="http://www.redhat.com"
488 name="The Redhat Home Page">.
489 Many lists are also accessible at
490 <url url="http://www.linuxhq.com/lnxlists"
492 and the rest of the web site is a gold mine of useful information.
494 If you want to find out more about the lists available you can send a message
495 with the line <tt/lists/ to the list server at vger.rutgers.edu (
496 <htmlurl url="mailto:majordomo@vger.rutgers.edu"
497 name="majordomo@vger.rutgers.edu">).
498 If you need help on how to use the mail server just send the line <tt/help/
500 Due to the popularity of this server it is likely it takes a bit to time before
501 you get a reply or even get messages after you send a <tt/subscribe/ command.
503 There is also a number of other majordomo list servers that can be of interest
504 such as the EATA driver list (
505 <htmlurl url="mailto:linux-eata@mail.uni-mainz.de"
506 name="linux-eata@mail.uni-mainz.de">)
507 and the Intelligent IO list
508 <htmlurl url="mailto:linux-i2o@dpt.com"
509 name="linux-i2o@dpt.com">.
511 Mailing lists are in a state of flux but you can find links to a number of
512 interesting lists from the
513 <url url="http://metalab.unc.edu/LDP/"
514 name="Linux Documentation Homepage">.
519 <nidx>disk!information resources!HOWTOs</nidx>
520 These are intended as the primary starting points to
521 get the background information as well as show you how to solve
523 Some relevant HOWTOs are <tt/Bootdisk/, <tt/Installation/, <tt/SCSI/ and <tt/UMSDOS/.
524 The main site for these is the
525 <url url="http://metalab.unc.edu/LDP/"
527 at Metalab (formerly known as Sunsite).
529 There is a a new HOWTO out that deals with setting up a
530 DPT RAID system, check out the
531 <url url="http://www.ram.org/computing/linux/dpt_raid.html"
532 name="DPT RAID HOWTO homepage">.
538 <nidx>disk!information resources!mini-HOWTOs</nidx>
539 These are the smaller free text relatives to the HOWTOs.
540 Some relevant mini-HOWTOs are
541 <tt/Backup-With-MSDOS/, <tt/Diskless/, <tt/LILO/, <tt/Large Disk/,
542 <tt/Linux+DOS+Win95+OS2/, <tt/Linux+OS2+DOS/, <tt/Linux+Win95/,
543 <tt/NFS-Root/, <tt/Win95+Win+Linux/, <tt/ZIP Drive/ .
544 You can find these at the same place as the HOWTOs, usually in a sub directory
545 called <tt/mini/. Note that these are scheduled to be converted into SGML and
546 become proper HOWTOs in the near future.
548 The old <tt/Linux Large IDE mini-HOWTO/ is no longer valid, instead read
549 <tt>/usr/src/linux/drivers/block/README.ide</tt> or
550 <tt>/usr/src/linux/Documentation/ide.txt</tt>.
552 <sect1>Local Resources
554 <nidx>disk!information resources!local</nidx>
555 In most distributions of Linux there is a document directory installed,
557 <htmlurl url="file:///usr/doc"
558 name="/usr/doc"> directory.
559 where most packages store their main documentation and README files etc.
560 Also you will here find the HOWTO archive (
561 <htmlurl url="file:///usr/doc/HOWTO"
562 name="/usr/doc/HOWTO">)
563 of ready formatted HOWTOs
564 and also the mini-HOWTO archive (
565 <url url="file:///usr/doc/HOWTO/mini"
566 name="/usr/doc/HOWTO/mini">)
567 of plain text documents.
569 Many of the configuration files mentioned earlier can be found in the
570 <htmlurl url="file:///etc"
572 directory. In particular you will want to work with the
573 <htmlurl url="file:///etc/fstab"
575 file that sets up the mounting of partitions
577 <htmlurl url="file:///etc/mdtab"
579 file that is used for the <tt/md/ system to set up RAID.
582 <url url="file:///usr/src/linux"
583 name="/usr/src/linux">
584 is, of course, the ultimate documentation. In other
585 words, <em>use the source, Luke</em>.
586 It should also be pointed out that the kernel comes not only with
587 source code which is even commented (well, partially at least)
588 but also an informative
589 <url url="file:///usr/src/linux/Documentation"
590 name="documentation directory">.
591 If you are about to ask any questions about the kernel you should
592 read this first, it will save you and many others a lot of time
593 and possibly embarrassment.
595 Also have a look in your system log file (
596 <htmlurl url="file:///var/log/messages"
597 name="/var/log/messages">)
598 to see what is going on and in particular how the booting went if
599 too much scrolled off your screen. Using <tt>tail -f /var/log/messages</tt>
600 in a separate window or screen will give you a continuous update of what is
601 going on in your system.
603 You can also take advantage of the
604 <htmlurl url="file:///proc"
606 file system that is a window into the inner workings of your system.
607 Use <tt/cat/ rather than <tt/more/ to view the files as they are
608 reported as being zero length. Reports are that <tt/less/ works well here.
613 <nidx>disk!information resources!WWW</nidx>
614 <nidx>disk!information resources!web pages</nidx>
615 There is a huge number of informative web pages out there and by their very
616 nature they change quickly so don't be too surprised if these links become
619 A good starting point is of course the
620 <url url="http://www.linuxdoc.org/"
621 name="Linux Documentation Project"> home page,
622 an information central for documentation, project pages and much, much more.
624 Please let me know if you have any other leads that can be of interest.
629 <nidx>(your index root)!assistance, obtaining</nidx>
630 <em>Your reader might still end up in a situation where extra help is
631 needed from someone else, perhaps on the net. In order to get fast and
632 efficient help it is best first to get some details on your system.
633 What details matter depends on type of problem. For disk problems you
634 need to know the disk controllers etc, for networking problems you
635 have to know what ethernet card is used and version of drivers etc.
636 Here is the place to suggest what details to have ready when asking
639 In the end you might find yourself unable to solve your problems and need
640 help from someone else. The most efficient way is either to ask someone
641 local or in your nearest Linux user group, search the web for the nearest
644 Another possibility is to ask on Usenet News in one of the many, many
645 newsgroups available. The problem is that these have such a high
646 volume and noise (called low signal-to-noise ratio) that your question
647 can easily fall through unanswered.
649 No matter where you ask it is important to ask well or you will not be
650 taken seriously. Saying just <it/my disk does not work/ is not going
651 to help you and instead the noise level is increased even further and if
652 you are lucky someone will ask you to clarify.
654 Instead describe your problems in some detail that
655 will enable people to help you. The problem could lie somewhere you did
656 not expect. Therefore you are advised to list up the following information
665 <item>Chip set (LX, BX etc)
666 <item>Bus (ISA, VESA, PCI etc)
667 <item>Expansion cards used (Disk controllers, video, IO etc)
672 <item>BIOS (On motherboard and possibly SCSI host adapters)
674 <item>Linux kernel version as well as possible modifications and patches
675 <item>Kernel parameters, if any
676 <item>Software that shows the error (with version number or date)
681 <item>Type of disk drives with manufacturer name, version and type
682 <item>Other relevant peripherals connected to the same busses
687 Remember that booting text is logged to <tt>/var/log/messages</tt> which can
688 answer most of the questions above. Obviously if the drives fail you might not
689 be able to get the log saved to disk but you can at least scroll back up the
690 screen using the <tt/SHIFT/ and <tt/PAGE UP/ keys. It may also be useful to
691 include part of this in your request for help but do not go overboard, keep
692 it <em/brief/ as a complete log file dumped to Usenet News is more than a
696 <sect>Concluding Remarks
698 <nidx>(your index root)!conclusion</nidx>
699 <em>Just summing up... Also a place for general recommendations.</em>
702 <sect>Questions and Answers
704 <nidx>(your index root)!FAQ</nidx>
705 <nidx>(your index root)!frequently asked questions</nidx>
706 <em>Check the newsgroups and try to determine some frequent
707 problems and cover them here. Again an example from my HOWTO.</em>
709 This is just a collection of what I believe are the most common
710 questions people might have. Give me more feedback and I will
711 turn this section into a proper FAQ.
715 <item>Q:How many physical disk drives (spindles) does a Linux system need?
717 A: Linux can run just fine on one drive (spindle). Having enough
718 RAM (around 32 MB, and up to 64 MB) to support swapping is a
719 better price/performance choice than getting a second disk.
720 (E)IDE disk is usually cheaper (but a little slower) than SCSI.
722 <item>Q: Are there any disadvantages in this scheme?
724 A: There is only a minor snag: if even a single partition overflows
725 the system might stop working properly. The severity depends of course
726 on what partition is affected. Still this is not hard to monitor, the
727 command <tt/df/ gives you a good overview of the situation. Also check
728 the swap partition(s) using <tt/free/ to make sure you are not about
729 to run out of virtual memory.
731 <item>Q: OK, so should I split the system into as many partitions
732 as possible for a single drive?
734 A: No, there are several disadvantages to that. First of all maintenance
735 becomes needlessly complex and you gain very little in this. In fact if your
736 partitions are too big you will seek across larger areas than needed.
737 This is a balance and dependent on the number of physical drives you have.
740 <em>(rest deleted.)</em>
742 <sect>Bits and Pieces <label id="bits-n-pieces">
744 <nidx>disk!miscellaneous</nidx>
745 <em>This is basically a section where I stuff all the bits I have not yet
746 decided where should go, yet that I feel is worth knowing about. It is
747 a kind of transient area.</em>
751 <nidx>(your index root)!examples</nidx>
752 <em>Example designs and sample configuration files and other
753 relevant details is always handy. Keep large samples at the
754 end to avoid breaking the flow of the HOWTO reading. Small
755 samples are useful within the main body of the HOWTO.</em>
758 <sect>Samples <label id="samples">
760 <em>This section gives some simple SGML examples you could copy.
761 Read the source to see how it was done.</em>
763 <!-- you can also have comments in the SGML source -->
767 <em>Lists appears many times, in a number of formats:</em>
780 <tag/Fruits/ such as apples, oranges, and more.
781 <tag/Nuts/ Don't eat too many; you are what you eat.
782 <tag/Vegetables/ Potatos are spelled with care.
788 <em>Links can be used within your documents
789 to refer to different sections and chapters or
790 to refer to documents external to yours.</em>
795 <ref id="samples" name="this">
796 link to jump to the top of this chapter. Note the
797 anchor at the section tag.
803 <url url="http://www.LinuxDoc.org/"
805 link to jump to the LDP site.
806 Note you can use http, ftp, news and other protocols
807 in the locator if required.
808 Note that the character ˜ has to be escaped, see the source
810 <!-- ˜ is the way of writing the tilde character -->
814 <em>Avoid diagrams if possible as this cannot be rendered in the
815 ascii outputs which are still needed by many around the world.</em>
818 <eps file="somegraphics.eps">
819 <img src="somegraphics.jpg">
820 <caption>Graphics Test Image</caption>
823 <!-- <img file="/usr/src/linux/logo.gif"> -->
826 <sect>Table Samples <label id="tblsamples">
828 <em>This section gives an example of writing a table.</em>
832 Line No.<colsep>Country <colsep>Capital <rowsep><hline>
833 1 <colsep>Norway <colsep>Oslo <rowsep>
834 2 <colsep>Japan <colsep>Tokyo <rowsep>
835 3 <colsep>Finland <colsep>Helsinki <rowsep>
837 <caption>Some capitals</caption>
841 <sect>Notes on Style <label id="style">
844 Not much here yet but I would like to suggest a few points.
849 <tag/Tags/ Try to use tags extensively
850 <tag/Types/ Try using functional tags such as em rather than it.
851 <tag/Files/ Try using functional links to files such as
852 <tt><htmlurl url="file:///usr/doc" name="/usr/doc"></tt>
853 rather than just /usr/doc.
854 <tag/Commands/ Try to refer to man pages including section number
855 <tt>df (1)</tt> rather than just df.