#, 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:4 msgid "" "FreeBSD Quickstart Guide for Linux Users" msgstr "" #. (itstool) path: authorgroup/author #: article.translate.xml:7 msgid "" "JohnFerrell" msgstr "" #. (itstool) path: info/copyright #: article.translate.xml:10 msgid "2008 The FreeBSD Documentation Project" msgstr "" #. (itstool) path: info/pubdate #. (itstool) path: info/releaseinfo #: article.translate.xml:15 article.translate.xml:17 msgid "" "$FreeBSD: head/en_US.ISO8859-1/articles/linux-users/article.xml 52142 2018-" "08-16 16:43:18Z bcr $" msgstr "" #. (itstool) path: legalnotice/para #: article.translate.xml:20 msgid "FreeBSD is a registered trademark of the FreeBSD Foundation." msgstr "" #. (itstool) path: legalnotice/para #: article.translate.xml:22 msgid "Linux is a registered trademark of Linus Torvalds." msgstr "" #. (itstool) path: legalnotice/para #: article.translate.xml:24 msgid "" "Intel, Celeron, Centrino, Core, EtherExpress, i386, i486, Itanium, Pentium, " "and Xeon are trademarks or registered trademarks of Intel Corporation or its " "subsidiaries in the United States and other countries." msgstr "" #. (itstool) path: legalnotice/para #: article.translate.xml:28 msgid "" "Red Hat, RPM, are trademarks or registered trademarks of Red Hat, Inc. in " "the United States and other countries." msgstr "" #. (itstool) path: legalnotice/para #: article.translate.xml:31 msgid "" "UNIX is a registered trademark of The Open Group in the United States and " "other countries." msgstr "" #. (itstool) path: legalnotice/para #: article.translate.xml:33 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: abstract/para #: article.translate.xml:42 msgid "" "This document is intended to quickly familiarize intermediate to advanced " "Linux users with the basics of " "FreeBSD." msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:49 msgid "Introduction" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:51 msgid "" "This document highlights some of the technical differences between FreeBSD " "and Linux so that intermediate " "to advanced Linux users can " "quickly familiarize themselves with the basics of FreeBSD." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:56 msgid "" "This document assumes that FreeBSD is already installed. Refer to the Installing FreeBSD chapter of the FreeBSD Handbook for help " "with the installation process." msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:63 msgid "Default Shell" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:65 msgid "" "Linux users are often surprised " "to find that Bash is not the default shell in " "FreeBSD. In fact, Bash is not included in the " "default installation. Instead, FreeBSD uses " "tcsh1 as the default root shell, and the Bourne shell-compatible sh1 as the default user " "shell. sh1 is very similar to Bash " "but with a much smaller feature-set. Generally shell scripts written for " "sh1 will run in Bash, but the reverse " "is not always true." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:77 msgid "" "However, Bash and other shells are available for " "installation using the FreeBSD Packages and Ports Collection." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:81 msgid "" "After installing another shell, use chsh1 to change a user's " "default shell. It is recommended that the root user's default shell remain unchanged since " "shells which are not included in the base distribution are installed to " "/usr/local/bin. In the event of a problem, the file " "system where /usr/local/bin is located may not be " "mounted. In this case, root " "would not have access to its default shell, preventing root from logging in and fixing the problem." msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:93 msgid "Packages and Ports: Adding Software in FreeBSD" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:95 msgid "" "FreeBSD provides two methods for installing applications: binary packages " "and compiled ports. Each method has its own benefits:" msgstr "" #. (itstool) path: itemizedlist/title #: article.translate.xml:100 msgid "Binary Packages" msgstr "" #. (itstool) path: listitem/simpara #: article.translate.xml:103 msgid "Faster installation as compared to compiling large applications." msgstr "" #. (itstool) path: listitem/simpara #: article.translate.xml:108 msgid "Does not require an understanding of how to compile software." msgstr "" #. (itstool) path: listitem/simpara #: article.translate.xml:113 msgid "No need to install a compiler." msgstr "" #. (itstool) path: itemizedlist/title #. (itstool) path: sect2/title #: article.translate.xml:118 article.translate.xml:158 msgid "Ports" msgstr "" #. (itstool) path: listitem/simpara #: article.translate.xml:121 msgid "Ability to customize installation options." msgstr "" #. (itstool) path: listitem/simpara #: article.translate.xml:125 msgid "Custom patches can be applied." msgstr "" #. (itstool) path: para/buildtarget #: article.translate.xml:134 msgid "package" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:129 msgid "" "If an application installation does not require any customization, " "installing the package is sufficient. Compile the port instead whenever an " "application requires customization of the default options. If needed, a " "custom package can be compiled from ports using make <_:" "buildtarget-1/>." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:136 msgid "" "A complete list of all available ports and packages can be found here." msgstr "" #. (itstool) path: sect2/title #: article.translate.xml:140 msgid "Packages" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:142 msgid "" "Packages are pre-compiled applications, the FreeBSD equivalents of " ".deb files on Debian/Ubuntu based systems and " ".rpm files on Red Hat/Fedora based systems. Packages " "are installed using pkg. For example, the following " "command installs Apache 2.4:" msgstr "" #. (itstool) path: sect2/screen #: article.translate.xml:150 #, no-wrap msgid "" "# pkg install apache24" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:152 msgid "" "For more information on packages refer to section 5.4 of the FreeBSD " "Handbook: Using pkgng for Binary Package Management." "" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:160 msgid "" "The FreeBSD Ports Collection is a framework of Makefiles and patches specifically customized for installing applications " "from source on FreeBSD. When installing a port, the system will fetch the " "source code, apply any required patches, compile the code, and install the " "application and any required dependencies." msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:167 msgid "" "The Ports Collection, sometimes referred to as the ports tree, can be " "installed to /usr/ports using " "portsnap8. Detailed instructions for installing the Ports " "Collection can be found in section 5.5 of the " "FreeBSD Handbook." msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:173 msgid "" "To compile a port, change to the port's directory and start the build " "process. The following example installs Apache 2.4 from the Ports Collection:" msgstr "" #. (itstool) path: sect2/screen #: article.translate.xml:178 #, no-wrap msgid "" "# cd /usr/ports/www/apache24\n" "# make install clean" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:181 msgid "" "A benefit of using ports to install software is the ability to customize the " "installation options. This example specifies that the mod_ldap module should also be installed:" msgstr "" #. (itstool) path: sect2/screen #: article.translate.xml:186 #, no-wrap msgid "" "# cd /usr/ports/www/apache24\n" "# make WITH_LDAP=\"YES\" install clean" msgstr "" #. (itstool) path: sect2/para #: article.translate.xml:189 msgid "" "Refer to Using the Ports Collection for more " "information." msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:195 msgid "System Startup" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:197 msgid "" "Many Linux distributions use the " "SysV init system, whereas FreeBSD uses the traditional BSD-style " "init8. Under the BSD-style init8, there are no run-" "levels and /etc/inittab does not exist. Instead, " "startup is controlled by rc8 scripts. At system " "boot, /etc/rc reads /etc/rc.conf " "and /etc/defaults/rc.conf to determine which services " "are to be started. The specified services are then started by running the " "corresponding service initialization scripts located in /etc/rc.d/" " and /usr/local/etc/rc.d/. These scripts are " "similar to the scripts located in /etc/init.d/ on " "Linux systems." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:213 msgid "" "The scripts found in /etc/rc.d/ are for applications " "that are part of the base system, such as " "cron8, sshd8, and " "syslog3. The scripts in /usr/local/etc/rc.d/ are " "for user-installed applications such as Apache " "and Squid." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:221 msgid "" "Since FreeBSD is developed as a complete operating system, user-installed " "applications are not considered to be part of the base system." " User-installed applications are generally installed using Packages or Ports. In order to keep them separate from the " "base system, user-installed applications are installed under /usr/" "local/. Therefore, user-installed binaries reside in /" "usr/local/bin/, configuration files are in /usr/local/" "etc/, and so on." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:232 msgid "" "Services are enabled by adding an entry for the service in /etc/rc." "conf . The system defaults are found in /etc/defaults/" "rc.conf and these default settings are overridden by settings in " "/etc/rc.conf. Refer to rc." "conf5 for more " "information about the available entries. When installing additional " "applications, review the application's install message to determine how to " "enable any associated services." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:242 msgid "" "The following entries in /etc/rc.conf enable " "sshd8, enable Apache 2.4, and specify " "that Apache should be started with SSL." msgstr "" #. (itstool) path: sect1/programlisting #: article.translate.xml:248 #, no-wrap msgid "" "# enable SSHD\n" "sshd_enable=\"YES\"\n" "# enable Apache with SSL\n" "apache24_enable=\"YES\"\n" "apache24_flags=\"-DSSL\"" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:254 msgid "" "Once a service has been enabled in /etc/rc.conf, it can " "be started without rebooting the system:" msgstr "" #. (itstool) path: sect1/screen #: article.translate.xml:258 #, no-wrap msgid "" "# service sshd start\n" "# service apache24 " "start" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:261 msgid "" "If a service has not been enabled, it can be started from the command line " "using :" msgstr "" #. (itstool) path: sect1/screen #: article.translate.xml:264 #, no-wrap msgid "" "# service sshd " "onestart" msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:268 msgid "Network Configuration" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:270 msgid "" "Instead of a generic ethX identifier that Linux uses to identify a network interface, " "FreeBSD uses the driver name followed by a number. The following output from " "ifconfig8 shows two Intel Pro 1000 network interfaces (em0 and " "em1):" msgstr "" #. (itstool) path: sect1/screen #: article.translate.xml:277 #, no-wrap msgid "" "% ifconfig\n" "em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500\n" " options=b<RXCSUM,TXCSUM,VLAN_MTU>\n" " inet 10.10.10.100 netmask 0xffffff00 broadcast 10.10.10.255\n" " ether 00:50:56:a7:70:b2\n" " media: Ethernet autoselect (1000baseTX <full-duplex>)\n" " status: active\n" "em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500\n" " options=b<RXCSUM,TXCSUM,VLAN_MTU>\n" " inet 192.168.10.222 netmask 0xffffff00 broadcast 192.168.10.255\n" " ether 00:50:56:a7:03:2b\n" " media: Ethernet autoselect (1000baseTX <full-duplex>)\n" " status: active" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:291 msgid "" "An IP address can be assigned to an interface using " "ifconfig8. To remain persistent across reboots, the " "IP configuration must be included in /etc/rc." "conf. The following /etc/rc.conf entries " "specify the hostname, IP address, and default gateway:" msgstr "" #. (itstool) path: sect1/programlisting #: article.translate.xml:298 #, no-wrap msgid "" "hostname=\"server1.example.com\"\n" "ifconfig_em0=\"inet 10.10.10.100 netmask 255.255.255.0\"\n" "defaultrouter=\"10.10.10.1\"" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:302 msgid "" "Use the following entries to instead configure an interface for " "DHCP:" msgstr "" #. (itstool) path: sect1/programlisting #: article.translate.xml:305 #, no-wrap msgid "hostname=\"server1.example.com\"\n" "ifconfig_em0=\"DHCP\"" msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:310 msgid "Firewall" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:312 msgid "" "FreeBSD does not use Linux " "IPTABLES for its firewall. Instead, FreeBSD " "offers a choice of three kernel level firewalls:" msgstr "" #. (itstool) path: listitem/simpara #: article.translate.xml:318 msgid "" "PF" msgstr "" #. (itstool) path: listitem/simpara #: article.translate.xml:321 msgid "" "IPFILTER" msgstr "" #. (itstool) path: listitem/simpara #: article.translate.xml:324 msgid "" "IPFW" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:328 msgid "" "PF is developed by the OpenBSD project and ported " "to FreeBSD. PF was created as a replacement for " "IPFILTER and its syntax is similar to that of " "IPFILTER. PF can be " "paired with altq4 to provide QoS features." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:336 msgid "" "This sample PF entry allows inbound " "SSH:" msgstr "" #. (itstool) path: sect1/programlisting #: article.translate.xml:339 #, no-wrap msgid "pass in on $ext_if inet proto tcp from any to ($ext_if) port 22" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:341 msgid "" "IPFILTER is the firewall application developed by " "Darren Reed. It is not specific to FreeBSD and has been ported to several " "operating systems including NetBSD, OpenBSD, SunOS, HP/UX, and Solaris." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:346 msgid "" "The IPFILTER syntax to allow inbound " "SSH is:" msgstr "" #. (itstool) path: sect1/programlisting #: article.translate.xml:349 #, no-wrap msgid "pass in on $ext_if proto tcp from any to any port = 22" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:351 msgid "" "IPFW is the firewall developed and maintained by " "FreeBSD. It can be paired with dummynet4 to provide traffic " "shaping capabilities and simulate different types of network connections." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:356 msgid "" "The IPFW syntax to allow inbound " "SSH would be:" msgstr "" #. (itstool) path: sect1/programlisting #: article.translate.xml:359 #, no-wrap msgid "ipfw add allow tcp from any to me 22 in via $ext_if" msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:363 msgid "Updating FreeBSD" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:365 msgid "" "There are two methods for updating a FreeBSD system: from source or binary " "updates." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:368 msgid "" "Updating from source is the most involved update method, but offers the " "greatest amount of flexibility. The process involves synchronizing a local " "copy of the FreeBSD source code with the FreeBSD Subversion servers. Once the local source code is up-to-date, a new " "version of the kernel and userland can be compiled." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:375 msgid "" "Binary updates are similar to using yum or apt-" "get to update a Linux " "system. In FreeBSD, freebsd-update8 can be used fetch new " "binary updates and install them. These updates can be scheduled using " "cron8." msgstr "" #. (itstool) path: note/para #: article.translate.xml:382 msgid "" "When using cron8 to schedule updates, use freebsd-update " "cron in the crontab1 to reduce the " "possibility of a large number of machines all pulling updates at the same " "time:" msgstr "" #. (itstool) path: note/programlisting #: article.translate.xml:387 #, no-wrap msgid "0 3 * * * root /usr/sbin/freebsd-update cron" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:390 msgid "" "For more information on source and binary updates, refer to the chapter on updating in the FreeBSD Handbook." msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:396 msgid "procfs: Gone But Not Forgotten" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:398 msgid "" "In some Linux distributions, one " "could look at /proc/sys/net/ipv4/ip_forward to " "determine if IP forwarding is enabled. In FreeBSD, " "sysctl8 is instead used to view this and other system settings." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:404 msgid "" "For example, use the following to determine if IP " "forwarding is enabled on a FreeBSD system:" msgstr "" #. (itstool) path: sect1/screen #: article.translate.xml:408 #, no-wrap msgid "" "% sysctl net.inet.ip.forwarding\n" "net.inet.ip.forwarding: 0" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:411 msgid "Use to list all the system settings:" msgstr "" #. (itstool) path: sect1/screen #: article.translate.xml:414 #, no-wrap msgid "% sysctl -a | more" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:416 msgid "" "If an application requires procfs, add the following entry to /etc/" "fstab:" msgstr "" #. (itstool) path: sect1/screen #: article.translate.xml:419 #, no-wrap msgid "proc /proc procfs rw,noauto 0 0" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:421 msgid "" "Including will prevent /proc " "from being automatically mounted at boot." msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:425 msgid "To mount the file system without rebooting:" msgstr "" #. (itstool) path: sect1/screen #: article.translate.xml:427 #, no-wrap msgid "# mount /proc" msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:431 msgid "Common Commands" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:433 msgid "Some common command equivalents are as follows:" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:439 msgid "" "Linux command (Red Hat/Debian)" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:440 msgid "FreeBSD equivalent" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:441 msgid "Purpose" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:447 msgid "" "yum install package / " "apt-get install package" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:451 msgid "pkg install package" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:453 msgid "Install package from remote repository" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:457 msgid "" "rpm -ivh package / " "dpkg -i package" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:461 msgid "pkg add package" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:463 msgid "Install local package" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:467 msgid "rpm -qa / dpkg -l" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:469 msgid "pkg info" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:470 msgid "List installed packages" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:474 msgid "lspci" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:475 msgid "pciconf" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:476 msgid "List PCI devices" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:480 msgid "lsmod" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:481 msgid "kldstat" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:482 msgid "List loaded kernel modules" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:486 msgid "modprobe" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:487 msgid "kldload / kldunload" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:489 msgid "Load/Unload kernel modules" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:493 msgid "strace" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:494 msgid "truss" msgstr "" #. (itstool) path: row/entry #: article.translate.xml:495 msgid "Trace system calls" msgstr "" #. (itstool) path: sect1/title #: article.translate.xml:503 msgid "Conclusion" msgstr "" #. (itstool) path: sect1/para #: article.translate.xml:505 msgid "" "This document has provided an overview of FreeBSD. Refer to the FreeBSD Handbook for more in-depth coverage of these topics as " "well as the many topics not covered by this document." msgstr ""