From owner-svn-doc-all@FreeBSD.ORG Sat Mar 15 04:26:48 2014 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7EB36C42; Sat, 15 Mar 2014 04:26:48 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5EAF7A78; Sat, 15 Mar 2014 04:26:48 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2F4QmeC069382; Sat, 15 Mar 2014 04:26:48 GMT (envelope-from wblock@svn.freebsd.org) Received: (from wblock@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2F4Qm3P069381; Sat, 15 Mar 2014 04:26:48 GMT (envelope-from wblock@svn.freebsd.org) Message-Id: <201403150426.s2F4Qm3P069381@svn.freebsd.org> From: Warren Block Date: Sat, 15 Mar 2014 04:26:48 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r44239 - head/en_US.ISO8859-1/books/handbook/linuxemu X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Mar 2014 04:26:48 -0000 Author: wblock Date: Sat Mar 15 04:26:47 2014 New Revision: 44239 URL: http://svnweb.freebsd.org/changeset/doc/44239 Log: Whitespace-only fixes, translators please ignore. Modified: head/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml Modified: head/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml Sat Mar 15 03:47:56 2014 (r44238) +++ head/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml Sat Mar 15 04:26:47 2014 (r44239) @@ -4,25 +4,48 @@ $FreeBSD$ --> - - &linux; Binary Compatibility + + + + &linux; Binary Compatibility + - JimMockRestructured and parts updated by + + + Jim + Mock + + Restructured and parts updated by + + - Brian N.HandyOriginally contributed by - RichMurphey + + + Brian N. + Handy + + Originally contributed by + + + + + Rich + Murphey + + - - Synopsis - Linux binary - compatibility + + Linux binary compatibility + binary compatibility Linux @@ -43,6 +66,7 @@ calls, such as enabling virtual 8086 mode. After reading this chapter, you will know: + How to enable &linux; binary compatibility on a &os; @@ -93,12 +117,12 @@ &prompt.root; cd /usr/ports/emulators/linux_base-f10 &prompt.root; make install distclean - Once the port is installed, enable &linux; binary - compatibility by loading the linux - module. Type the following as - root: + Once the port is installed, enable &linux; binary + compatibility by loading the linux module. + Type the following as + root: - &prompt.root; kldload linux + &prompt.root; kldload linux In order for &linux; compatibility to always be enabled at boot time, add the following line to @@ -120,26 +144,26 @@ Id Refs Address Size Name Users who prefer to statically link &linux; binary - compatibility into the kernel should add options - COMPAT_LINUX to the custom kernel configuration - file. Compile and install the new kernel as described in . + compatibility into the kernel should add + options COMPAT_LINUX to the custom kernel + configuration file. Compile and install the new kernel as + described in . Installing Libraries Manually While using the Ports Collection is recommended, &linux; libraries can be installed manually. The &linux; shared - libraries required by a program and the runtime linker - should be copied to /compat/linux. Any shared - libraries opened by &linux; programs run under &os; will - look in this directory first. For example, if a &linux; - program loads /lib/libc.so, &os; will - first try to open - /compat/linux/lib/libc.so, and if that - does not exist, it will then try - /lib/libc.so. Shared libraries should - be installed to /compat/linux/lib rather than - to the paths that the &linux; ld.so + libraries required by a program and the runtime linker should + be copied to /compat/linux. Any shared + libraries opened by &linux; programs run under &os; will look + in this directory first. For example, if a &linux; program + loads /lib/libc.so, &os; will first try + to open /compat/linux/lib/libc.so, and if + that does not exist, it will then try + /lib/libc.so. Shared libraries should be + installed to /compat/linux/lib rather + than to the paths that the &linux; ld.so reports. Generally, one will need to look for the shared @@ -152,13 +176,16 @@ Id Refs Address Size Name How to Install Additional Shared Libraries - shared libraries + + shared libraries + If the linux_base port is installed and an application still complains about missing shared - libraries, there are two methods root - can use to determine which shared libraries the &linux; - binaries need. + libraries, there are two methods + root can use to + determine which shared libraries the &linux; binaries + need. If a &linux; system is available, determine which shared libraries the application needs, and copy them to the &os; @@ -175,7 +202,9 @@ libXt.so.3 (DLL Jump 3.1) => /usr/X11 libX11.so.3 (DLL Jump 3.1) => /usr/X11/lib/libX11.so.3.1.0 libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29 - symbolic links + + symbolic links + Copy all the files in the last column into /compat/linux on the &os; system, with the names in the first column as @@ -256,7 +285,9 @@ Abort &prompt.user; brandelf -t Linux my-linux-elf-binary - GNU toolchain + + GNU toolchain + Since the GNU toolchain places the appropriate branding information into ELF binaries automatically, this step is usually not necessary. @@ -271,7 +302,8 @@ Abort In order to install a &linux; RPM-based application, first install the archivers/rpm2cpio package or - port. Once installed, root can use this + port. Once installed, + root can use this command to install a .rpm as follows: @@ -298,22 +330,24 @@ Abort order hosts, bind multi on - This order specifies that - /etc/hosts is searched first and DNS - is searched second. When + This order specifies that /etc/hosts + is searched first and DNS is searched second. When /compat/linux/etc/host.conf does not exist, &linux; applications use /etc/host.conf and complain about the - incompatible &os; syntax. Remove - bind if a name server is not configured - using /etc/resolv.conf. + incompatible &os; syntax. Remove bind if a + name server is not configured using + /etc/resolv.conf. - @@ -332,11 +366,11 @@ multi on Mathematica - This section describes the process of installing the - &linux; version of &mathematica; 9.X - onto a &os; system. &mathematica; - is a commercial, computational software program used in - scientific, engineering, and mathematical fields. A 30 day trial version is + This section describes the process of installing the &linux; + version of &mathematica; 9.X onto a + &os; system. &mathematica; is a + commercial, computational software program used in scientific, + engineering, and mathematical fields. A 30 day trial version is available for download from wolfram.com/mathematica. @@ -347,11 +381,11 @@ multi on textproc/linux-f10-aspell package or port is installed and that the &man.linprocfs.5; file system is mounted. - + &prompt.root; sysctl kern.fallback_elf_brand=3 - &os; will now assume that unbranded ELF binaries - use the &linux; ABI which should allow the + &os; will now assume that unbranded ELF binaries use the + &linux; ABI which should allow the installer to execute from the CDROM. The downloaded file will be saved to @@ -375,7 +409,6 @@ Enter the installation directory, or pre Now installing... *********************** Installation complete. - @@ -387,8 +420,7 @@ Installation complete. fonts to be installed locally. This means that these fonts need to be copied from the CDROM or from a host with &mathematica; installed to the - local machine. These fonts are normally stored in - /cdrom/Unix/Files/SystemFiles/Fonts on the CDROM, or /usr/local/mathematica/SystemFiles/Fonts @@ -441,9 +473,9 @@ Installation complete. --> - +