PERFORCE change 160510 for review
Rene Ladan
rene at FreeBSD.org
Sat Apr 11 15:06:50 PDT 2009
http://perforce.freebsd.org/chv.cgi?CH=160510
Change 160510 by rene at rene_self on 2009/04/11 22:05:54
Finish draft translation of solid-state article.
Unchecked, based on cvs 1.16
Affected files ...
.. //depot/projects/docproj_nl/nl_NL.ISO8859-1/articles/solid-state/article.sgml#11 edit
Differences ...
==== //depot/projects/docproj_nl/nl_NL.ISO8859-1/articles/solid-state/article.sgml#11 (text+ko) ====
@@ -30,7 +30,7 @@
$FreeBSD: $
%SOURCE% en_US.ISO8859-1/articles/solid-state/article.sgml
- %SRCID% 1.14
+ %SRCID% 1.16
-->
<!DOCTYPE article PUBLIC "-//FreeBSD//DTD DocBook V4.1-Based Extension//EN" [
@@ -41,7 +41,7 @@
<article lang="nl">
<articleinfo>
- <title>&os; en Solid State Devices</title>
+ <title>&os; en Solid State Apparaten</title>
<authorgroup>
<author>
@@ -270,7 +270,7 @@
<para>Zelfs een kleine installatie van &os; die normale
installatieprocedures gebruikt kan echter een systeem produceren
met een omvang van meer dan 200 MB. Omdat de meeste mensen
- kleinere flashgeheugenapparaten zullen gebruiken (128 MB wordt als
+ kleinere flash-geheugenapparaten zullen gebruiken (128 MB wordt als
redelijk groot gezien - 32 of zelfs 16 MB is gebruikelijk) is een
installatie dat de normale mechanismen gebruikt niet
mogelijk er is simpelweg niet genoeg schijfruimte voor zelfs
@@ -279,9 +279,9 @@
<para>De gemakkelijkste manier om over deze beperking heen te komen
is om &os; met conventionele middelen naar een normale harde
schijf te installeren. Kleedt, nadat de installatie voltooid is,
- het besturingssysteem uit tot een grootte die op uw flashmedium
+ het besturingssysteem uit tot een grootte die op uw flash-medium
past, en pak vervolgens het gehele bestandssysteem in. De volgende
- stappen leiden u door het proces heen van een normaal flashgeheugen
+ stappen leiden u door het proces heen van een normaal flash-geheugen
voorbereiden op uw ingepakte bestandssysteem. Omdat er geen normale
installatie wordt uitgevoerd, moeten bewerkingen zoals partitioneren,
labelen, het aanmaken van bestandssystemen, etc. met de hand
@@ -290,231 +290,255 @@
<procedure>
<step>
- <title>Partitioning your flash media device</title>
+ <title>Het flash-media-apparaat partitioneren</title>
- <para>After booting with the kern and mfsroot floppies, choose
- <literal>custom</literal> from the installation menu. In the custom
- installation menu, choose <literal>partition</literal>. In the
- partition menu, you should delete all existing partitions using the
- <keycap>d</keycap> key. After deleting all existing partitions,
- create a partition using the <keycap>c</keycap> key and accept the
- default value for the size of the partition. When asked for the
- type of the partition, make sure the value is set to
- <literal>165</literal>. Now write this partition table to the disk
- by pressing the <keycap>w</keycap> key (this is a hidden option on
- this screen). If you are using an ATA compatible compact
- flash card, you should choose the FreeBSD Boot Manager. Now press
- the <keycap>q</keycap> key to quit the partition menu. You will be
- shown the boot manager menu once more - repeat the choice you made
- earlier.</para>
+ <para>Kies nadat er met de floppies kern en mfsroot is opgestart
+ <literal>custom</literal> uit het installatiemenu. Kies
+ <literal>partition</literal> in het aangepaste
+ installatiemenu. In het partitiemenu dient u alle bestaande
+ partities te wissen met de toets <keycap>d</keycap>. Maak
+ nadat alle bestaande partities gewist zijn een partitie aan
+ met de toets <keycap>c</keycap> en accepteer de
+ standaardwaarde voor de grootte van de partitie. Zorg ervoor
+ dat het type van de partitie op <literal>165</literal> is
+ ingesteld wanneer daar naar wordt gevraagd. Schrijf nu deze
+ partitietabel naar schijf door op de toets <keycap>w</keycap>
+ te drukken (dit is een verborgen optie op dit scherm). Wanneer
+ u een ATA-compatibele flash-kaart gebruikt, dient u de
+ opstartbeheerder van &os; te gebruiken. Druk nu op de toets
+ <keycap>q</keycap> om het partitiemenu te verlaten. Het menu
+ van de opstartbeheerder wordt nog een keer aan u getoond -
+ herhaal de keuze die u eerder heeft gemaakt.</para>
</step>
<step>
- <title>Creating filesystems on your flash memory device</title>
+ <title>De bestandssystemen op uw flash-geheugenapparaat
+ aanmaken</title>
- <para>Exit the custom installation menu, and from the main
- installation menu choose the <literal>fixit</literal> option. After
- entering the fixit environment, enter the following command:</para>
+ <para>Verlaat het aangepaste installatiemenu, en kies van het
+ hoofdinstallatiemenu de optie <literal>fixit</literal>. Geef
+ na het binnengaan van de fixit-omgeving het volgende
+ commando:</para>
<screen>&prompt.root; <userinput>disklabel -e /dev/ad0c</userinput></screen>
- <para>At this point you will have entered the vi editor under the
- auspices of the disklabel command. Next, you need to add
- an <literal>a:</literal> line at the end of the file. This
- <literal>a:</literal> line should look like:</para>
+ <para>Op dit punt bent u de tekstverwerker vi binnengegaan onder
+ toezien van het commando disklabel. Vervolgens dient u een
+ regel met <literal>a:</literal> aan het einde van het
+ bestand toe te voegen. Deze regel dient er als volgt uit te
+ zien:</para>
<programlisting>a: <replaceable>123456</replaceable> 0 4.2BSD 0 0</programlisting>
- <para>Where <replaceable>123456</replaceable> is a number that is
- exactly the same as the number in the existing <literal>c:</literal>
- entry for size. Basically you are duplicating the existing
- <literal>c:</literal> line as an <literal>a:</literal> line, making
- sure that fstype is <literal>4.2BSD</literal>. Save the file and
- exit.</para>
+ <para>Hierbij is <replaceable>123456</replaceable> een getal dat
+ exact gelijk is aan het getal in de bestaande regel met
+ <literal>c:</literal> voor de grootte. In feite dupliceert u
+ de bestaande regel met <literal>c:</literal> als een regel met
+ <literal>a:</literal>, met daarbij <literal>4.2BSD</literal>
+ als type van het bestandssysteem. Sla het bestand op en
+ verlaat de tekstverwerker.</para>
<screen>&prompt.root; <userinput>disklabel -B -r /dev/ad0c</userinput>
&prompt.root; <userinput>newfs /dev/ad0a</userinput></screen>
</step>
<step>
- <title>Placing your filesystem on the flash media</title>
+ <title>Uw bestandssysteem op het flash-medium plaatsen</title>
- <para>Mount the newly prepared flash media:</para>
+ <para>Koppel het nieuw voorbereide flash-medium aan:</para>
<screen>&prompt.root; <userinput>mount /dev/ad0a /flash</userinput></screen>
- <para>Bring this machine up on the network so we may transfer our tar
- file and explode it onto our flash media filesystem. One example of
- how to do this is:</para>
+ <para>Activeer deze machine in het netwerk zodat we ons
+ tar-bestand kunnen overzenden en het op het bestandssysteem
+ van het flash-medium kunnen uitpakken. Een manier om dit te
+ doen is:</para>
<screen>&prompt.root; <userinput>ifconfig xl0 192.168.0.10 netmask 255.255.255.0</userinput>
&prompt.root; <userinput>route add default 192.168.0.1</userinput></screen>
- <para>Now that the machine is on the network, transfer your tar file.
- You may be faced with a bit of a dilemma at this point - if your
- flash memory part is 128 megabytes, for instance, and your tar file
- is larger than 64 megabytes, you cannot have your tar file on the
- flash media at the same time as you explode it - you will run out of
- space. One solution to this problem, if you are using FTP, is to
- untar the file while it is transferred over FTP. If you perform
- your transfer in this manner, you will never have the tar file and
- the tar contents on your disk at the same time:</para>
+ <para>Nu de machine op het netwerk is, kan het tar-bestand
+ worden overgezonden. U kunt nu tegen een dilemma aanlopen -
+ als bijvoorbeeld uw flash-geheugen 128 MB groot is, en uw
+ tar-bestand groter is dan 64 MB, kan uw tar-bestand niet op
+ het zelfde moment op het flash-medium staan als dan wanneer u
+ het uitpakt - u zult schijfruimte tekort komen. Een oplossing
+ voor dit probleem is, wanneer u FTP gebruikt, om het bestand
+ uitpakt terwijl u het over FTP verzendt. Als u de overdracht
+ op deze manier aanpakt, zult u nooit het tar-bestand en de
+ inhoud ervan op hetzelfde moment op uw schijf hebben:</para>
- <screen><prompt>ftp></prompt> <userinput>get tarfile.tar "| tar xvf -"</userinput></screen>
+ <screen><prompt>ftp></prompt> <userinput>get tar-bestand.tar "| tar xvf -"</userinput></screen>
- <para>If your tarfile is gzipped, you can accomplish this as
- well:</para>
+ <para>Als uw tar-bestand met gzip is ingepakt, kunt u dit ook
+ voor elkaar krijgen:</para>
- <screen><prompt>ftp></prompt> <userinput>get tarfile.tar "| zcat | tar xvf -"</userinput></screen>
+ <screen><prompt>ftp></prompt> <userinput>get tar-bestand.tar "| zcat | tar xvf -"</userinput></screen>
- <para>After the contents of your tarred filesystem are on your flash
- memory filesystem, you can unmount the flash memory and
- reboot:</para>
+ <para>Nadat de inhoud van uw ge-tar-de bestandssysteem op het
+ bestandsysteem van uw flash-geheugen staan, kunt u het
+ flash-geheugen afkoppelen en opnieuw opstarten:</para>
<screen>&prompt.root; <userinput>cd /</userinput>
&prompt.root; <userinput>umount /flash</userinput>
&prompt.root; <userinput>exit</userinput></screen>
- <para>Assuming that you configured your filesystem correctly when it
- was built on the normal hard disk (with your filesystems mounted
- read-only, and with the necessary options compiled into the kernel)
- you should now be successfully booting your FreeBSD embedded
- system.</para>
+ <para>Aangemomen dat u uw bestandssysteem correct heeft
+ geconfigureerd toen het gebouwd werd op de normale harde
+ schijf (met uw bestandssystemen als alleen-lezen aangekoppeld
+ en met de nodige opties in de kernel gecompileerd) zou u nu
+ succesvol uw embedded &os;-systeem moeten kunnen
+ opstarten.</para>
</step>
</procedure>
</sect1>
<sect1 id="strategies">
- <title>System Strategies for Small and Read Only Environments</title>
+ <title>Systeemstragiën voor kleine en alleen-lezen
+ omgevingen.</title>
- <para>In <xref linkend="ro-fs">, it was pointed out that the
- <filename>/var</filename> filesystem constructed by
- <filename>/etc/rc.diskless2</filename> and the presence of a read-only
- root filesystem causes problems with many common software packages used
- with FreeBSD. In this article, suggestions for successfully running
- cron, syslog, ports installations, and the Apache web server will be
- provided.</para>
+ <para>In <xref linkend="ro-fs"> werd erop gewezen dat het
+ bestandssysteem <filename>/var</filename> zoals geconstrueerd
+ door <filename>/etc/rc.diskless2</filename> en de aanwezigheid van
+ een hoofdbestandssysteem dat alleen gelezen kan worden problemen
+ veroorzaakt met veel alledaagse softwarepakketten die door &os;
+ gebruikt worden. In dit artikel zullen suggesties voor het
+ succesvol draaien van cron, syslog, ports-installaties en de
+ webserver Apache worden gegeven.</para>
<sect2>
<title>cron</title>
- <para>In <filename>/etc/rc.diskless2</filename> there is a variable
- named <literal>var_dirs</literal>. This variable consists of a
- space-delimited list of directories that will be created inside of
- <filename>/var</filename> after it is mounted as a memory filesystem.
- <filename>cron</filename> and <filename>cron/tabs</filename> are not
- in that list, and without those directories, cron will complain. By
- inserting <literal>cron</literal>, <literal>cron/tabs</literal>, and
- perhaps even <literal>at</literal>, and <literal>at/jobs</literal> as
- elements of that variable, you will facilitate the running of the
- &man.cron.8; and &man.at.1; daemons.</para>
+ <para>In <filename>/etc/rc.diskless2</filename> staat een
+ variabele genaamd <literal>var_dirs</literal>. Deze variabele
+ bestaat uit een met spaties afgebakende lijst van mappen die
+ binnen <filename>/var</filename> aangemaakt zullen worden nadat
+ het als een geheugenbestandssysteem is aangekoppeld.
+ <filename>cron</filename> en <filename>cron/tabs</filename>
+ staan niet in deze lijst, en zonder deze mappen zal cron klagen.
+ Door <literal>cron</literal>, <literal>cron/tabs</literal>, en
+ misschien zelfs <literal>at</literal> en
+ <literal>at/jobs</literal> als elementen van deze variabele toe
+ te voegen, wordt het makkelijker om de daemons &man.cron.8; en
+ &man.at.1; te draaien.</para>
- <para>However, this still does not solve the problem of maintaining cron
- tabs across reboots. When the system reboots, the
- <filename>/var</filename> filesystem that is in memory will disappear
- and any cron tabs you may have had in it will also disappear.
- Therefore, one solution would be to create cron tabs for the users
- that need them, mount your <filename>/</filename> filesystem as
- read-write and copy those cron tabs to somewhere safe, like
- <filename>/etc/tabs</filename>, then add a line to the end of
- <filename>/etc/rc.diskless2</filename> that copies those crontabs into
- <filename>/var/cron/tabs</filename> after that directory has been
- created during system initialization. You may also need to add a line
- that changes modes and permissions on the directories you create and
- the files you copy with <filename>/etc/rc.diskless2</filename>.</para>
+ <para>Dit lost echter nog steeds niet het probleem van het
+ behouden van cron-tabellen na het opnieuw opstarten op. Wanneer
+ het systeem opnieuw opstart, zal het bestandssysteem
+ <filename>/var</filename> dat in het geheugen staat verdwijnen
+ en zullen alle cron-tabellen die er in stonden ook verdwijnen.
+ Daarom is een oplossing hiervoor het aanmaken van cron-tabellen
+ voor de gebruikers die ze nodig hebben, uw bestandssysteem
+ <filename>/</filename> als lezen-schrijven aan te koppelen en
+ die cron-tabellen naar een veilige plaats zoals
+ <filename>/etc/tabs</filename> te kopiëren en een regel aan
+ het einde van <filename>/etc/rc.diskless2</filename> toe te
+ voegen die deze cron-tabellen naar
+ <filename>/var/cron/tabs</filename> kopieert nadat die map is
+ aangemaakt tijdens de syseeminitialisatie. U moet misschien ook
+ een regel toevoegen die de modi en toestemmingen van de mappen
+ die u aanmaakt en de bestanden die u met
+ <filename>etc/rc.diskless2</filename> kopieert verandert.</para>
</sect2>
<sect2>
<title>syslog</title>
- <para><filename>syslog.conf</filename> specifies the locations of
- certain log files that exist in <filename>/var/log</filename>. These
- files are not created by <filename>/etc/rc.diskless2</filename> upon
- system initialization. Therefore, somewhere in
- <filename>/etc/rc.diskless2</filename>, after the section that creates
- the directories in <filename>/var</filename>, you will need to add
- something like this:</para>
+ <para><filename>syslog.conf</filename> specificeert de plaats van
+ bepaalde logbestanden die in <filename>/var/log</filename>
+ bestaan. Deze bestanden worden niet door
+ <filename>/etc/rc.diskless2</filename> tijdens de
+ systeeminitialisatie aangemaakt. Daarom dient u ergens na de
+ sectie die de mappen in <filename>/var</filename> aanmaakt in
+ <filename>/etc/rc.diskless2</filename> iets als het volgende
+ toevoegen:</para>
<screen>&prompt.root; <userinput>touch /var/log/security /var/log/maillog /var/log/cron /var/log/messages</userinput>
&prompt.root; <userinput>chmod 0644 /var/log/*</userinput></screen>
- <para>You will also need to add the log directory to the list of
- directories that <filename>/etc/rc.diskless2</filename>
- creates.</para>
+ <para>U moet ook de logmap toevoegen aan de lijst van mappen die
+ <filename>/etc/rc.diskless2</filename> aanmaakt.</para>
</sect2>
<sect2>
- <title>ports installation</title>
+ <title>ports-installatie</title>
- <para>Before discussing the changes necessary to successfully use the
- ports tree, a reminder is necessary regarding the read-only nature of
- your filesystems on the flash media. Since they are read-only, you
- will need to temporarily mount them read-write using the mount syntax
- shown in <xref linkend="ro-fs">. You should always remount those
- filesystems read-only when you are done with any maintenance -
- unnecessary writes to the flash media could considerably shorten its
- lifespan.</para>
+ <para>Voordat de veranderingen die nodig zijn om succesvol de
+ portsboom te gebuiken besproken worden, is een herinnering ten
+ aanzien van de alleen-lezen-natuur van uw bestandssystemen op
+ het flash-medium op zijn plaats. Aangezien ze alleen-lezen zijn,
+ dient u ze tijdelijk als lezen-schrijven aan te koppelen waarbij
+ de koppelsyntaxis zoals getoond in <xref linkend="ro-fs"> wordt
+ gebruikt. U dient deze bestandssystemen altijd als alleen-lezen
+ te herkoppelen als u klaar bent met enig onderhoud - onnodige
+ schrijfacties naar het flash-medium kunnen de levensduur ervan
+ aanzienlijk verkorten.</para>
- <para>To make it possible to enter a ports directory and successfully
- run <command>make</command> <maketarget>install</maketarget>,
- we must create a packages directory on
- a non-memory filesystem that will keep track of our packages across
- reboots. Because it is necessary to mount your filesystems as
- read-write for the installation of a package anyway, it is sensible to
- assume that an area on the flash media can also be used for package
- information to be written to.</para>
+ <para>Om het mogelijk te maken om een portsmap binnen te gaan en
+ succesvol <command>make</command> <maketarget>install</maketarget>
+ uit te voeren, moeten we een pakketmap op een bestandssysteem
+ aanmaken dat niet geheugengebaseerd is en dat onze pakketten
+ tussen herstarts bijhoudt. Omdat het toch nodig is om uw
+ bestandssystemen als lezen-schrijven te koppelen voor het
+ installeren van een pakket, is het zinnig om aan te nemen dat
+ een gebied op het flash-medium ook gebruikt kan worden om
+ pakketinformatie naar te schrijven.</para>
- <para>First, create a package database directory. This is normally in
- <filename>/var/db/pkg</filename>, but we cannot place it there as it
- will disappear every time the system is booted.</para>
+ <para>Maak als eerste een map aan voor de pakketdatabase. Dit is
+ normaliter <filename>/var/db/pkg</filename>, maar we kunnen het
+ daar niet plaatsen aangezien het telkens als het systeem wordt
+ opgestart zal verdwijnen.</para>
<screen>&prompt.root; <userinput>mkdir /etc/pkg</userinput></screen>
- <para>Now, add a line to <filename>/etc/rc.diskless2</filename> that
- links the <filename>/etc/pkg</filename> directory to
- <filename>/var/db/pkg</filename>. An example:</para>
+ <para>Voeg nu een regel aan <filename>/etc/rc.diskless2</filename>
+ toe die de map <filename>/etc/pkg</filename> aan
+ <filename>/var/db/pkg</filename> koppelt. Een voorbeeld:</para>
<screen>&prompt.root; <userinput>ln -s /etc/pkg /var/db/pkg</userinput></screen>
- <para>Now, any time that you mount your filesystems as read-write and
- install a package, the <command>make</command> <maketarget>install</maketarget> will work,
- and package information
- will be written successfully to <filename>/etc/pkg</filename> (because
- the filesystem will, at that time, be mounted read-write) which will
- always be available to the operating system as
- <filename>/var/db/pkg</filename>.</para>
+ <para>Nu zal telkens wanneer u uw bestandssystemen als
+ lezen-schrijven aankoppelt en een pakket installeert,
+ <command>make</command> <maketarget>install</maketarget> werken,
+ en zal de pakketinformatie succesvol naar
+ <filename>/etc/pkg</filename> worden geschreven (omdat het
+ bestandssysteem op dat moment als lezen-schrijven is aangekoppeld)
+ wat altijd als <filename>/var/db/pkg</filename> beschikbaar is
+ voor het besturingssysteem.</para>
</sect2>
<sect2>
<title>Apache Web Server</title>
- <para>Apache keeps pid files and logs in
+ <para>Apache houdt pid-bestanden en logs in
<filename><replaceable>apache_install</replaceable>/logs</filename>.
- Since this directory doubtless exists on a read-only filesystem, this
- will not work. It is necessary to add a new directory to the
- <filename>/etc/rc.diskless2</filename> list of directories to create
- in <filename>/var</filename>, to link
- <filename><replaceable>apache_install</replaceable>/logs</filename> to
- <filename>/var/log/apache</filename>. It is also necessary to set
- permissions and ownership on this new directory.</para>
+ Aangezien deze map ongetwijfeld op een bestandssysteem staat dat
+ alleen gelezen kan worden, zal dit niet werken. Het is nodig om
+ een nieuwe map aan de lijst van mappen die in
+ <filename>/var</filename> aangemaakt moeten worden toe te voegen
+ in <filename>/etc/rc.diskless2</filename> en om
+ <filename><replaceable>apache_install</replaceable>/logs</filename>
+ aan <filename>/var/log/apache</filename> te koppelen. Het is
+ ook nodig om de toestemmingen en eigenaarschappen van deze
+ nieuwe map in te stellen.</para>
- <para>First, add the directory <literal>log/apache</literal> to the list
- of directories to be created in
- <filename>/etc/rc.diskless2</filename>.</para>
+ <para>Voeg eerst de map <literal>log/apache</literal> toe aan de
+ lijst van mappen die in <filename>/etc/rc.diskless2</filename>
+ aangemaakt moeten worden.</para>
- <para>Second, add these commands to
- <filename>/etc/rc.diskless2</filename> after the directory creation
- section:</para>
+ <para>Voeg ten tweede deze commando's toe aan
+ <filename>/etc/rc.diskless2</filename> na de sectie die mappen
+ aanmaakt:</para>
<screen>&prompt.root; <userinput>chmod 0774 /var/log/apache</userinput>
&prompt.root; <userinput>chown nobody:nobody /var/log/apache</userinput></screen>
- <para>Finally, remove the existing
+ <para>Verwijder als laatste de bestaande map
<filename><replaceable>apache_install</replaceable>/logs</filename>
- directory, and replace it with a link:</para>
+ en vervang het door een koppeling:</para>
- <screen>&prompt.root; <userinput>rm -rf (apache_install)/logs</userinput>
-&prompt.root; <userinput>ln -s /var/log/apache (apache_install)/logs</userinput></screen>
+ <screen>&prompt.root; <userinput>rm -rf (apache_installatie)/logs</userinput>
+&prompt.root; <userinput>ln -s /var/log/apache (apache_installatie)/logs</userinput></screen>
</sect2>
</sect1>
</article>
More information about the p4-projects
mailing list