diff --git a/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml b/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml index 5f26f8df7c..78e0be8076 100644 --- a/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml @@ -51,19 +51,17 @@ Linux - &os; provides binary compatibility with &linux;, allowing - users to install and run &linux; binaries on a &os; system. - Many companies and developers develop only for &linux;, and - binary compatibility allows &os; users to run about 90% of all - &linux; applications without modification. This includes - productivity applications, games, and more. It has even been - reported that, in some situations, &linux; binaries perform + &os; provides 32-bit binary compatibility with &linux;, allowing + users to install and run most 32-bit &linux; binaries on a &os; system + without having to first modify the binary. It has even been + reported that, in some situations, 32-bit &linux; binaries perform better on &os; than they do on &linux;. However, some &linux;-specific operating system features are not supported under &os;. For example, &linux; binaries will not work on &os; if they overly use &i386; specific - calls, such as enabling virtual 8086 mode. + calls, such as enabling virtual 8086 mode. In addition, 64-bit + &linux; binaries are not supported at this time. After reading this chapter, you will know: @@ -101,51 +99,49 @@ - Installation + Configuring &linux; Binary Compatibility Ports Collection - &linux; libraries are not installed on &os; by default - and &linux; binary compatibility is not enabled by default. - &linux; libraries can be installed using the &os; Ports - Collection. Alternately, &linux; libraries can be installed - manually. + By default, &linux; libraries are not installed and + &linux; binary compatibility is not enabled. + &linux; libraries can either be installed manually or from the &os; Ports + Collection. - Using the Ports Collection is by far the easiest way to - install &linux; libraries: + The emulators/linux-base-f10 package or + port is the easiest way to + install a base set of &linux; libraries and binaries on + a &os; system. To install the port: &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 installed, enable &linux; binary + compatibility by loading the linux module: &prompt.root; kldload linux - In order for &linux; compatibility to always be enabled at - boot time, add the following line to - /etc/rc.conf: - - linux_enable="YES" - - To verify that the module is loaded, use - &man.kldstat.8;: + To verify that the module is loaded: &prompt.user; kldstat Id Refs Address Size Name 1 2 0xc0100000 16bdb8 kernel 7 1 0xc24db000 d000 linux.ko + In order for &linux; compatibility to be enabled at + boot time, add the following line to + /etc/rc.conf: + + linux_enable="YES" + kernel options COMPAT_LINUX Users who prefer to statically link &linux; binary - compatibility into the kernel should add - options COMPAT_LINUX to the custom kernel + compatibility into a custom kernel should add + options COMPAT_LINUX to their custom kernel configuration file. Compile and install the new kernel as described in .