From owner-p4-projects@FreeBSD.ORG Sat Apr 11 22:06:49 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id F1EEC1065672; Sat, 11 Apr 2009 22:06:48 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B07CA106564A for ; Sat, 11 Apr 2009 22:06:48 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9D9098FC0C for ; Sat, 11 Apr 2009 22:06:48 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n3BM6m9L017519 for ; Sat, 11 Apr 2009 22:06:48 GMT (envelope-from rene@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n3BM6mIt017517 for perforce@freebsd.org; Sat, 11 Apr 2009 22:06:48 GMT (envelope-from rene@FreeBSD.org) Date: Sat, 11 Apr 2009 22:06:48 GMT Message-Id: <200904112206.n3BM6mIt017517@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rene@FreeBSD.org using -f From: Rene Ladan To: Perforce Change Reviews Cc: Subject: PERFORCE change 160510 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2009 22:06:50 -0000 http://perforce.freebsd.org/chv.cgi?CH=160510 Change 160510 by rene@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 --> - &os; en Solid State Devices + &os; en Solid State Apparaten @@ -270,7 +270,7 @@ 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 @@ 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 @@ - Partitioning your flash media device + Het flash-media-apparaat partitioneren - After booting with the kern and mfsroot floppies, choose - custom from the installation menu. In the custom - installation menu, choose partition. In the - partition menu, you should delete all existing partitions using the - d key. After deleting all existing partitions, - create a partition using the c 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 - 165. Now write this partition table to the disk - by pressing the w 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 q key to quit the partition menu. You will be - shown the boot manager menu once more - repeat the choice you made - earlier. + Kies nadat er met de floppies kern en mfsroot is opgestart + custom uit het installatiemenu. Kies + partition in het aangepaste + installatiemenu. In het partitiemenu dient u alle bestaande + partities te wissen met de toets d. Maak + nadat alle bestaande partities gewist zijn een partitie aan + met de toets c en accepteer de + standaardwaarde voor de grootte van de partitie. Zorg ervoor + dat het type van de partitie op 165 is + ingesteld wanneer daar naar wordt gevraagd. Schrijf nu deze + partitietabel naar schijf door op de toets w + 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 + q 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. - Creating filesystems on your flash memory device + De bestandssystemen op uw flash-geheugenapparaat + aanmaken - Exit the custom installation menu, and from the main - installation menu choose the fixit option. After - entering the fixit environment, enter the following command: + Verlaat het aangepaste installatiemenu, en kies van het + hoofdinstallatiemenu de optie fixit. Geef + na het binnengaan van de fixit-omgeving het volgende + commando: &prompt.root; disklabel -e /dev/ad0c - At this point you will have entered the vi editor under the - auspices of the disklabel command. Next, you need to add - an a: line at the end of the file. This - a: line should look like: + Op dit punt bent u de tekstverwerker vi binnengegaan onder + toezien van het commando disklabel. Vervolgens dient u een + regel met a: aan het einde van het + bestand toe te voegen. Deze regel dient er als volgt uit te + zien: a: 123456 0 4.2BSD 0 0 - Where 123456 is a number that is - exactly the same as the number in the existing c: - entry for size. Basically you are duplicating the existing - c: line as an a: line, making - sure that fstype is 4.2BSD. Save the file and - exit. + Hierbij is 123456 een getal dat + exact gelijk is aan het getal in de bestaande regel met + c: voor de grootte. In feite dupliceert u + de bestaande regel met c: als een regel met + a:, met daarbij 4.2BSD + als type van het bestandssysteem. Sla het bestand op en + verlaat de tekstverwerker. &prompt.root; disklabel -B -r /dev/ad0c &prompt.root; newfs /dev/ad0a - Placing your filesystem on the flash media + Uw bestandssysteem op het flash-medium plaatsen - Mount the newly prepared flash media: + Koppel het nieuw voorbereide flash-medium aan: &prompt.root; mount /dev/ad0a /flash - 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: + 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: &prompt.root; ifconfig xl0 192.168.0.10 netmask 255.255.255.0 &prompt.root; route add default 192.168.0.1 - 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: + 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: - ftp> get tarfile.tar "| tar xvf -" + ftp> get tar-bestand.tar "| tar xvf -" - If your tarfile is gzipped, you can accomplish this as - well: + Als uw tar-bestand met gzip is ingepakt, kunt u dit ook + voor elkaar krijgen: - ftp> get tarfile.tar "| zcat | tar xvf -" + ftp> get tar-bestand.tar "| zcat | tar xvf -" - After the contents of your tarred filesystem are on your flash - memory filesystem, you can unmount the flash memory and - reboot: + 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: &prompt.root; cd / &prompt.root; umount /flash &prompt.root; exit - 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. + 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. - System Strategies for Small and Read Only Environments + Systeemstragiën voor kleine en alleen-lezen + omgevingen. - In , it was pointed out that the - /var filesystem constructed by - /etc/rc.diskless2 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. + In werd erop gewezen dat het + bestandssysteem /var zoals geconstrueerd + door /etc/rc.diskless2 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. cron - In /etc/rc.diskless2 there is a variable - named var_dirs. This variable consists of a - space-delimited list of directories that will be created inside of - /var after it is mounted as a memory filesystem. - cron and cron/tabs are not - in that list, and without those directories, cron will complain. By - inserting cron, cron/tabs, and - perhaps even at, and at/jobs as - elements of that variable, you will facilitate the running of the - &man.cron.8; and &man.at.1; daemons. + In /etc/rc.diskless2 staat een + variabele genaamd var_dirs. Deze variabele + bestaat uit een met spaties afgebakende lijst van mappen die + binnen /var aangemaakt zullen worden nadat + het als een geheugenbestandssysteem is aangekoppeld. + cron en cron/tabs + staan niet in deze lijst, en zonder deze mappen zal cron klagen. + Door cron, cron/tabs, en + misschien zelfs at en + at/jobs als elementen van deze variabele toe + te voegen, wordt het makkelijker om de daemons &man.cron.8; en + &man.at.1; te draaien. - However, this still does not solve the problem of maintaining cron - tabs across reboots. When the system reboots, the - /var 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 / filesystem as - read-write and copy those cron tabs to somewhere safe, like - /etc/tabs, then add a line to the end of - /etc/rc.diskless2 that copies those crontabs into - /var/cron/tabs 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 /etc/rc.diskless2. + 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 + /var 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 + / als lezen-schrijven aan te koppelen en + die cron-tabellen naar een veilige plaats zoals + /etc/tabs te kopiëren en een regel aan + het einde van /etc/rc.diskless2 toe te + voegen die deze cron-tabellen naar + /var/cron/tabs 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 + etc/rc.diskless2 kopieert verandert. syslog - syslog.conf specifies the locations of - certain log files that exist in /var/log. These - files are not created by /etc/rc.diskless2 upon - system initialization. Therefore, somewhere in - /etc/rc.diskless2, after the section that creates - the directories in /var, you will need to add - something like this: + syslog.conf specificeert de plaats van + bepaalde logbestanden die in /var/log + bestaan. Deze bestanden worden niet door + /etc/rc.diskless2 tijdens de + systeeminitialisatie aangemaakt. Daarom dient u ergens na de + sectie die de mappen in /var aanmaakt in + /etc/rc.diskless2 iets als het volgende + toevoegen: &prompt.root; touch /var/log/security /var/log/maillog /var/log/cron /var/log/messages &prompt.root; chmod 0644 /var/log/* - You will also need to add the log directory to the list of - directories that /etc/rc.diskless2 - creates. + U moet ook de logmap toevoegen aan de lijst van mappen die + /etc/rc.diskless2 aanmaakt. - ports installation + ports-installatie - 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 . 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. + 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 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. - To make it possible to enter a ports directory and successfully - run make install, - 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. + Om het mogelijk te maken om een portsmap binnen te gaan en + succesvol make install + 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. - First, create a package database directory. This is normally in - /var/db/pkg, but we cannot place it there as it - will disappear every time the system is booted. + Maak als eerste een map aan voor de pakketdatabase. Dit is + normaliter /var/db/pkg, maar we kunnen het + daar niet plaatsen aangezien het telkens als het systeem wordt + opgestart zal verdwijnen. &prompt.root; mkdir /etc/pkg - Now, add a line to /etc/rc.diskless2 that - links the /etc/pkg directory to - /var/db/pkg. An example: + Voeg nu een regel aan /etc/rc.diskless2 + toe die de map /etc/pkg aan + /var/db/pkg koppelt. Een voorbeeld: &prompt.root; ln -s /etc/pkg /var/db/pkg - Now, any time that you mount your filesystems as read-write and - install a package, the make install will work, - and package information - will be written successfully to /etc/pkg (because - the filesystem will, at that time, be mounted read-write) which will - always be available to the operating system as - /var/db/pkg. + Nu zal telkens wanneer u uw bestandssystemen als + lezen-schrijven aankoppelt en een pakket installeert, + make install werken, + en zal de pakketinformatie succesvol naar + /etc/pkg worden geschreven (omdat het + bestandssysteem op dat moment als lezen-schrijven is aangekoppeld) + wat altijd als /var/db/pkg beschikbaar is + voor het besturingssysteem. Apache Web Server - Apache keeps pid files and logs in + Apache houdt pid-bestanden en logs in apache_install/logs. - Since this directory doubtless exists on a read-only filesystem, this - will not work. It is necessary to add a new directory to the - /etc/rc.diskless2 list of directories to create - in /var, to link - apache_install/logs to - /var/log/apache. It is also necessary to set - permissions and ownership on this new directory. + 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 + /var aangemaakt moeten worden toe te voegen + in /etc/rc.diskless2 en om + apache_install/logs + aan /var/log/apache te koppelen. Het is + ook nodig om de toestemmingen en eigenaarschappen van deze + nieuwe map in te stellen. - First, add the directory log/apache to the list - of directories to be created in - /etc/rc.diskless2. + Voeg eerst de map log/apache toe aan de + lijst van mappen die in /etc/rc.diskless2 + aangemaakt moeten worden. - Second, add these commands to - /etc/rc.diskless2 after the directory creation - section: + Voeg ten tweede deze commando's toe aan + /etc/rc.diskless2 na de sectie die mappen + aanmaakt: &prompt.root; chmod 0774 /var/log/apache &prompt.root; chown nobody:nobody /var/log/apache - Finally, remove the existing + Verwijder als laatste de bestaande map apache_install/logs - directory, and replace it with a link: + en vervang het door een koppeling: - &prompt.root; rm -rf (apache_install)/logs -&prompt.root; ln -s /var/log/apache (apache_install)/logs + &prompt.root; rm -rf (apache_installatie)/logs +&prompt.root; ln -s /var/log/apache (apache_installatie)/logs