#, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2018-12-08 14:45-0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Put one translator per line, in the form NAME , YEAR1, YEAR2 msgctxt "_" msgid "translator-credits" msgstr "" #. (itstool) path: info/title #: article.translate.xml:5 msgid "" "Remote Installation of the FreeBSD Operating System Without a Remote Console" msgstr "" #. (itstool) path: affiliation/address #: article.translate.xml:14 #, no-wrap msgid "\n" " danger@FreeBSD.org\n" " " msgstr "" #. (itstool) path: info/author #: article.translate.xml:8 msgid "" " Daniel Gerzo <_:address-1/> " msgstr "" #. (itstool) path: legalnotice/para #: article.translate.xml:21 msgid "FreeBSD is a registered trademark of the FreeBSD Foundation." msgstr "" #. (itstool) path: legalnotice/para #: article.translate.xml:23 msgid "" "Many of the designations used by manufacturers and sellers to distinguish " "their products are claimed as trademarks. Where those designations appear in " "this document, and the FreeBSD Project was aware of the trademark claim, the " "designations have been followed by the or the ® symbol." msgstr "" #. (itstool) path: info/copyright #: article.translate.xml:31 msgid "2008 The FreeBSD Documentation Project" msgstr "" #. (itstool) path: info/pubdate #. (itstool) path: info/releaseinfo #: article.translate.xml:36 article.translate.xml:38 msgid "" "$FreeBSD: head/en_US.ISO8859-1/articles/remote-install/article.xml 51348 " "2017-12-30 22:56:56Z eadler $" msgstr "" #. (itstool) path: abstract/para #: article.translate.xml:41 msgid "" "This article documents the remote installation of the FreeBSD operating " "system when the console of the remote system is unavailable. The main idea " "behind this article is the result of a collaboration with Martin Matuska " "mm@FreeBSD.org with valuable input provided by Paweł Jakub " "Dawidek pjd@FreeBSD.org." msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:50 msgid "Background" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:52 msgid "" "There are many server hosting providers in the world, but very few of them " "are officially supporting FreeBSD. They usually provide support for a " "Linux distribution to be " "installed on the servers they offer." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:57 msgid "" "In some cases, these companies will install your preferred Linux distribution if you request it. Using this " "option, we will attempt to install FreeBSD. In other cases, they may offer a " "rescue system which would be used in an emergency. It is possible to use " "this for our purposes as well." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:63 msgid "" "This article covers the basic installation and configuration steps required " "to bootstrap a remote installation of FreeBSD with RAID-1 and " "ZFS capabilities." msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:69 msgid "Introduction" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:71 msgid "" "This section will summarize the purpose of this article and better explain " "what is covered herein. The instructions included in this article will " "benefit those using services provided by colocation facilities not " "supporting FreeBSD." msgstr "" #. (itstool) path: step/para #: article.translate.xml:78 msgid "" "As we have mentioned in the Background " "section, many of the reputable server hosting companies provide some kind of " "rescue system, which is booted from their LAN and " "accessible over SSH. They usually provide this " "support in order to help their customers fix broken operating systems. As " "this article will explain, it is possible to install FreeBSD with the help " "of these rescue systems." msgstr "" #. (itstool) path: step/para #: article.translate.xml:92 msgid "" "The next section of this article will describe how to configure, and build " "minimalistic FreeBSD on the local machine. That version will eventually be " "running on the remote machine from a ramdisk, which will allow us to install " "a complete FreeBSD operating system from an FTP mirror " "using the sysinstall utility." msgstr "" #. (itstool) path: step/para #: article.translate.xml:102 msgid "" "The rest of this article will describe the installation procedure itself, as " "well as the configuration of the ZFS file system." msgstr "" #. (itstool) path: sect2/title #: article.translate.xml:109 msgid "Requirements" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:111 msgid "To continue successfully, you must:" msgstr "" #. (itstool) path: listitem/para #: article.translate.xml:115 msgid "" "Have a network accessible operating system with SSH access" msgstr "" #. (itstool) path: listitem/para #: article.translate.xml:120 msgid "Understand the FreeBSD installation process" msgstr "" #. (itstool) path: listitem/para #: article.translate.xml:124 msgid "" "Be familiar with the sysinstall8 utility" msgstr "" #. (itstool) path: listitem/para #: article.translate.xml:128 msgid "" "Have the FreeBSD installation ISO image or CD handy" msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:136 msgid "Preparation - mfsBSD" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:138 msgid "" "Before FreeBSD may be installed on the target system, it is necessary to " "build the minimal FreeBSD operating system image which will boot from the " "hard drive. This way the new system can be accessed from the network, and " "the rest of the installation can be done without remote access to the system " "console." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:144 msgid "" "The mfsBSD tool-set can be used to build a tiny " "FreeBSD image. As the name of mfsBSD suggests " "(mfs means memory file system), the resulting " "image runs entirely from a ramdisk. Thanks to this feature, the manipulation " "of hard drives will not be limited, therefore it will be possible to install " "a complete FreeBSD operating system. The mfsBSD " "home page includes pointers " "to the latest release of the toolset." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:154 msgid "" "Please note that the internals of mfsBSD and how " "it all fits together is beyond the scope of this article. The interested " "reader should consult the original documentation of mfsBSD for more details." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:160 msgid "" "Download and extract the latest mfsBSD release " "and change your working directory to the directory where the " "mfsBSD scripts will reside:" msgstr "" #. (itstool) path: sect1/screen #: article.translate.xml:165 #, no-wrap msgid "" "# fetch http://mfsbsd.vx.sk/release/mfsbsd-" "2.1.tar.gz\n" "# tar xvzf mfsbsd-2.1." "tar.gz\n" "# cd mfsbsd-2.1/" msgstr "" #. (itstool) path: sect2/title #: article.translate.xml:170 msgid "Configuration of mfsBSD" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:173 msgid "" "Before booting mfsBSD, a few important " "configuration options have to be set. The most important that we have to get " "right is, naturally, the network setup. The most suitable method to " "configure networking options depends on whether we know beforehand the type " "of the network interface we will use, and the network interface driver to be " "loaded for our hardware. We will see how mfsBSD " "can be configured in either case." msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:183 msgid "" "Another important thing to set is the root password. This can be done by editing conf/loader." "conf. Please see the included comments." msgstr "" #. (itstool) path: sect3/title #: article.translate.xml:188 msgid "The conf/interfaces.conf method" msgstr "" #. (itstool) path: sect3/para #: article.translate.xml:191 msgid "" "When the installed network interface card is unknown, it is possible to use " "the auto-detection features of mfsBSD. The " "startup scripts of mfsBSD can detect the correct " "driver to use, based on the MAC address of the interface, if we set the " "following options in conf/interfaces.conf:" msgstr "" #. (itstool) path: sect3/programlisting #: article.translate.xml:199 #, no-wrap msgid "" "mac_interfaces=\"ext1\"\n" "ifconfig_ext1_mac=\"00:00:00:00:00:00\"\n" "ifconfig_ext1=\"inet 192.168.0.2/24\"" msgstr "" #. (itstool) path: sect3/para #: article.translate.xml:203 msgid "" "Do not forget to add the defaultrouter information to " "conf/rc.conf:" msgstr "" #. (itstool) path: sect3/programlisting #: article.translate.xml:207 #, no-wrap msgid "defaultrouter=\"192.168.0.1\"" msgstr "" #. (itstool) path: sect3/title #: article.translate.xml:211 msgid "The conf/rc.conf Method" msgstr "" #. (itstool) path: sect3/para #: article.translate.xml:213 msgid "" "When the network interface driver is known, it is more convenient to use " "conf/rc.conf for networking options. The syntax of this " "file is the same as the one used in the standard " "rc.conf5 file of FreeBSD." msgstr "" #. (itstool) path: sect3/para #: article.translate.xml:219 msgid "" "For example, if you know that a re4 network interface is " "going to be available, you can set the following options in conf/" "rc.conf:" msgstr "" #. (itstool) path: sect3/programlisting #: article.translate.xml:224 #, no-wrap msgid "defaultrouter=\"192.168.0.1\"\n" "ifconfig_re0=\"inet 192.168.0.2/24\"" msgstr "" #. (itstool) path: sect2/title #: article.translate.xml:230 msgid "Building an mfsBSD Image" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:233 msgid "" "The process of building an mfsBSD image is pretty " "straightforward." msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:237 msgid "" "The first step is to mount the FreeBSD installation CD, " "or the installation ISO image to /cdrom. For the sake of example, in this article we will assume that you " "have downloaded the FreeBSD 10.1-RELEASE ISO. Mounting " "this ISO image to the /cdrom directory is easy with the " "mdconfig8 utility:" msgstr "" #. (itstool) path: sect2/screen #: article.translate.xml:246 #, no-wrap msgid "" "# mdconfig -a -t vnode -u 10 -f " "FreeBSD-10.1-RELEASE-amd64-disc1.iso\n" "# mount_cd9660 /dev/md10 /cdrom" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:249 msgid "" "Since the recent FreeBSD releases do not contain regular distribution sets, " "it is required to extract the FreeBSD distribution files from the " "distribution archives located on the ISO image:" msgstr "" #. (itstool) path: sect2/screen #: article.translate.xml:254 #, no-wrap msgid "" "# mkdir DIST\n" "# tar -xvf /cdrom/usr/freebsd-dist/base.txz -C " "DIST\n" "# tar -xvf /cdrom/usr/freebsd-dist/kernel.txz -C " "DIST" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:258 msgid "Next, build the bootable mfsBSD image:" msgstr "" #. (itstool) path: sect2/screen #: article.translate.xml:261 #, no-wrap msgid "" "# make BASE=DIST" msgstr "" #. (itstool) path: note/para #: article.translate.xml:264 msgid "" "The above make has to be run from the top level of the " "mfsBSD directory tree, for example ~/" "mfsbsd-2.1/." msgstr "" #. (itstool) path: sect2/title #: article.translate.xml:272 msgid "Booting mfsBSD" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:274 msgid "" "Now that the mfsBSD image is ready, it must be " "uploaded to the remote system running a live rescue system or pre-installed " "Linux distribution. The most " "suitable tool for this task is scp:" msgstr "" #. (itstool) path: sect2/screen #: article.translate.xml:280 #, no-wrap msgid "" "# scp disk.img root@192.168.0.2:." msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:282 msgid "" "To boot mfsBSD image properly, it must be placed " "on the first (bootable) device of the given machine. This may be " "accomplished using this example providing that sda is " "the first bootable disk device:" msgstr "" #. (itstool) path: sect2/screen #: article.translate.xml:288 #, no-wrap msgid "" "# dd if=/root/disk.img of=/dev/sda bs=1m" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:290 msgid "" "If all went well, the image should now be in the MBR of " "the first device and the machine can be rebooted. Watch for the machine to " "boot up properly with the ping8 tool. Once it has came " "back on-line, it should be possible to access it over " "ssh1 as user root with " "the configured password." msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:301 msgid "Installation of the FreeBSD Operating System" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:303 msgid "" "The mfsBSD has been successfully booted and it " "should be possible to log in through ssh1. This section will " "describe how to create and label slices, set up gmirror for RAID-1, and how to use sysinstall to install a minimal distribution of the FreeBSD operating " "system." msgstr "" #. (itstool) path: sect2/title #: article.translate.xml:311 msgid "Preparation of Hard Drives" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:313 msgid "" "The first task is to allocate disk space for FreeBSD, i.e.: to create slices " "and partitions. Obviously, the currently running system is fully loaded in " "system memory and therefore there will be no problems with manipulating hard " "drives. To complete this task, it is possible to use either " "sysinstall or fdisk8 in conjunction to " "bsdlabel8." msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:321 msgid "" "At the start, mark all system disks as empty. Repeat the following command " "for each hard drive:" msgstr "" #. (itstool) path: sect2/screen #: article.translate.xml:324 #, no-wrap msgid "" "# dd if=/dev/zero of=/dev/ad0 count=2" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:326 msgid "" "Next, create slices and label them with your preferred tool. While it is " "considered easier to use sysinstall, a powerful " "and also probably less buggy method will be to use standard text-based " "UNIX tools, such as " "fdisk8 and bsdlabel8, which will also be " "covered in this section. The former option is well documented in the Installing FreeBSD chapter of the FreeBSD Handbook. As " "it was mentioned in the introduction, this article will present how to set " "up a system with RAID-1 and ZFS capabilities. Our " "set up will consist of a small gmirror8 mirrored / (root), /usr and /var " "dataset, and the rest of the disk space will be allocated for a " "zpool8 mirrored ZFS file system. Please " "note, that the ZFS file system will be configured " "after the FreeBSD operating system is successfully installed and booted." msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:346 msgid "" "The following example will describe how to create slices and labels, " "initialize gmirror8 on each partition and how to create a " "UFS2 file system in each mirrored partition:" msgstr "" #. (itstool) path: sect2/screen #: article.translate.xml:351 #, no-wrap msgid "" "# fdisk -BI /dev/ad0 \n" "# fdisk -BI /dev/ad1\n" "# bsdlabel -wB /dev/ad0s1 \n" "# bsdlabel -wB /dev/ad1s1\n" "# bsdlabel -e /dev/ad0s1 \n" "# bsdlabel /dev/ad0s1 > /tmp/bsdlabel.txt " "&& bsdlabel -R /dev/ad1s1 /tmp/bsdlabel.txt \n" "# gmirror label root /dev/ad[01]s1a " "\n" "# gmirror label var /dev/ad[01]s1d\n" "# gmirror label usr /dev/ad[01]s1e\n" "# gmirror label -F swap /dev/ad[01]s1b \n" "# newfs /dev/mirror/root \n" "# newfs /dev/mirror/var\n" "# newfs /dev/mirror/usr" msgstr "" #. (itstool) path: callout/para #: article.translate.xml:367 msgid "" "Create a slice covering the entire disk and initialize the boot code " "contained in sector 0 of the given disk. Repeat this command for all hard " "drives in the system." msgstr "" #. (itstool) path: callout/para #: article.translate.xml:374 msgid "Write a standard label for each disk including the bootstrap code." msgstr "" #. (itstool) path: callout/para #: article.translate.xml:379 msgid "" "Now, manually edit the label of the given disk. Refer to the " "bsdlabel8 manual page in order to find out how to create " "partitions. Create partitions a for / (root) file system, b for swap, d for /var, e for /" "usr and finally f which will later be used for " "ZFS." msgstr "" #. (itstool) path: callout/para #: article.translate.xml:391 msgid "" "Import the recently created label for the second hard drive, so both hard " "drives will be labeled in the same way." msgstr "" #. (itstool) path: callout/para #: article.translate.xml:397 msgid "" "Initialize gmirror8 on each partition." msgstr "" #. (itstool) path: callout/para #: article.translate.xml:401 msgid "" "Note that is used for the swap partition. This instructs " "gmirror8 to assume that the device is in the consistent " "state after the power/system failure." msgstr "" #. (itstool) path: callout/para #: article.translate.xml:408 msgid "" "Create a UFS2 file system on each mirrored " "partition." msgstr "" #. (itstool) path: sect2/title #: article.translate.xml:415 msgid "System Installation" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:417 msgid "" "This is the most important part. This section will describe how to actually " "install the minimal distribution of FreeBSD on the hard drives that we have " "prepared in the previous section. To accomplish this goal, all file systems " "need to be mounted so sysinstall may write the " "contents of FreeBSD to the hard drives:" msgstr "" #. (itstool) path: sect2/screen #: article.translate.xml:424 #, no-wrap msgid "" "# mount /dev/mirror/root /mnt\n" "# mkdir /mnt/var /mnt/usr\n" "# mount /dev/mirror/var /mnt/var\n" "# mount /dev/mirror/usr /mnt/usr" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:429 msgid "" "When you are done, start sysinstall8. Select the " "Custom installation from the main menu. Select " "Options and press Enter. With " "the help of arrow keys, move the cursor on the Install Root item, press Space and change it to /mnt. Press Enter to submit your changes and exit the " "Options menu by pressing q." msgstr "" #. (itstool) path: warning/para #: article.translate.xml:441 msgid "" "Note that this step is very important and if skipped, " "sysinstall will be unable to install FreeBSD." msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:446 msgid "" "Go to the Distributions menu, move the cursor " "with the arrow keys to , and check it by pressing " "Space. This article uses the Minimal distribution in order " "to save network traffic, because the system itself will be installed over " "ftp. Exit this menu by choosing