From owner-freebsd-doc@FreeBSD.ORG Sat Aug 5 04:40:32 2006 Return-Path: X-Original-To: freebsd-doc@hub.freebsd.org Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD73F16A4E9 for ; Sat, 5 Aug 2006 04:40:32 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E222E43D70 for ; Sat, 5 Aug 2006 04:40:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k754eIEF001017 for ; Sat, 5 Aug 2006 04:40:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k754eIT8001015; Sat, 5 Aug 2006 04:40:18 GMT (envelope-from gnats) Resent-Date: Sat, 5 Aug 2006 04:40:18 GMT Resent-Message-Id: <200608050440.k754eIT8001015@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, chinsan Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B03116A4DA; Sat, 5 Aug 2006 04:37:54 +0000 (UTC) (envelope-from chinsan.tw@gmail.com) Received: from smtp2.bc.hgc.com.tw (smtp2.bc.hgc.com.tw [203.133.1.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7168643D66; Sat, 5 Aug 2006 04:37:50 +0000 (GMT) (envelope-from chinsan.tw@gmail.com) Received: from smtp2.bc.hgc.com.tw (u14-109.u203-187.giga.net.tw [203.187.14.109]) by smtp2.bc.hgc.com.tw (Postfix) with SMTP id 46D822F068; Sat, 5 Aug 2006 12:37:50 +0800 (CST) Received: by smtp2.bc.hgc.com.tw (sSMTP sendmail emulation); Sat, 5 Aug 2006 12:44:01 +0800 Message-Id: <20060805043750.46D822F068@smtp2.bc.hgc.com.tw> Date: Sat, 5 Aug 2006 12:44:01 +0800 From: chinsan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: vanilla@FreeBSD.org Subject: docs/101390: [UPDATE] zh_TW: Update handbook/linuxemu to SVN#963 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chinsan List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Aug 2006 04:40:33 -0000 >Number: 101390 >Category: docs >Synopsis: [UPDATE] zh_TW: Update handbook/linuxemu to SVN#963 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Aug 05 04:40:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: chinsan >Release: FreeBSD 6.1-STABLE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD chinsan2.twbbs.org 6.1-STABLE FreeBSD 6.1-STABLE #1: Fri Jun 2 16:44:35 CST 2006 root@chinsan2.twbbs.org:/usr/obj/usr/src/sys/GENERIC i386 >Description: - Update handbook/linuxemu to SVN#963 (patch URL http://chinsan2.twbbs.org/chinsan/zh_TW.Big5.20060805_3.diff) - ChangeLog(Trac Timeline) https://opensvn.csie.org/traccgi/freebsddoc/timeline >How-To-Repeat: >Fix: --- zh_TW.Big5.20060805_3.diff begins here --- diff -ruN zh_TW.Big5.orig/books/handbook/linuxemu/chapter.sgml zh_TW.Big5/books/handbook/linuxemu/chapter.sgml --- zh_TW.Big5.orig/books/handbook/linuxemu/chapter.sgml Tue Jan 31 09:31:03 2006 +++ zh_TW.Big5/books/handbook/linuxemu/chapter.sgml Sat Aug 5 12:26:53 2006 @@ -2,7 +2,7 @@ The FreeBSD Documentation Project $FreeBSD: doc/zh_TW.Big5/books/handbook/linuxemu/chapter.sgml,v 1.3 2006/01/31 01:31:03 vanilla Exp $ - Original revision: 1.127 + Original revision: 1.132 --> @@ -28,101 +28,85 @@ - Linux Binary Compatibility + 與 Linux Binary 的相容方面 - Synopsis + 概述 Linux binary compatibility binary compatibility Linux - FreeBSD provides binary compatibility with several other - &unix; like operating systems, including Linux. At this point, - you may be asking yourself why exactly, does - FreeBSD need to be able to run Linux binaries? The answer to that - question is quite simple. Many companies and developers develop - only for Linux, since it is the latest hot thing in - the computing world. That leaves the rest of us FreeBSD users - bugging these same companies and developers to put out native - FreeBSD versions of their applications. The problem is, that most - of these companies do not really realize how many people would use - their product if there were FreeBSD versions too, and most continue - to only develop for Linux. So what is a FreeBSD user to do? This - is where the Linux binary compatibility of FreeBSD comes into - play. - - In a nutshell, the compatibility allows FreeBSD users to run - about 90% of all Linux applications without modification. This - includes applications such as &staroffice;, - the Linux version of &netscape;, - &adobe; &acrobat;, - RealPlayer, - VMware, - &oracle;, - WordPerfect, Doom, - Quake, and more. It is also reported - that in some situations, Linux binaries perform better on FreeBSD - than they do under Linux. - - There are, however, some Linux-specific operating system - features that are not supported under FreeBSD. Linux binaries will - not work on FreeBSD if they overly use &i386; specific - calls, such as enabling virtual 8086 mode. + FreeBSD 有提供其他幾種 &unix; like 作業系統的 binary 相容性,其中包括了 Linux。 + 你可能會納悶:為什麼 FreeBSD 需要能夠執行 Linux 專用執行檔(binary)呢?答案很簡單, + 許多公司、開發者只會 Linux 開發程式,因為這是目前資訊界 最熱門 的玩意。 + 這逼得許多 FreeBSD 使用者不得不去勸說這些人是否提供可直接在 FreeBSD 上執行的版本。 + 但問題是,大多數公司並不瞭解會有多少人會用 FreeBSD 版,因此他們仍只開發 Linux 版。 + 那麼 FreeBSD 使用者該怎麼辦呢?答案就是用 FreeBSD 所提供的 Linux binary 相容。 + + 簡單來講,這種相容性可讓 FreeBSD 使用者直接執行約 90% 的 Linux 程式,而不必做任何修改。 + 這些包括了: &staroffice;、 + &netscape; 的 Linux 版、 + &adobe; &acrobat;、 + RealPlayer、 + VMware、 + &oracle;、 + WordPerfectDoom、 + Quake 等等。此外,也有人回報說在某些情況下, + 這些在 FreeBSD 上執行的 Linux 程式,甚至比原本在 Linux 執行得更好。 + + 然而呢,還是有些只限 Linux 特定的作業系統功能,在 FreeBSD 上並未支援。 + 如果 Linux 程式過於濫用只有 &i386; 架構上才能用的功能,比如:虛擬 8086 模式, + 則可能無法在 FreeBSD 運作正常。 - After reading this chapter, you will know: + 讀完這章,您將了解: - How to enable Linux binary compatibility on your system. + 如何啟用 Linux 相容模式。 - How to install additional Linux shared - libraries. + 如何安裝額外的 Linux share libraries。 - How to install Linux applications on your FreeBSD system. + 如何在 FreeBSD 上安裝 Linux 程式。 - The implementation details of Linux compatibility in FreeBSD. + FreeBSD 上的 Linux 相容模式的實作細節。 - Before reading this chapter, you should: + 在閱讀這章之前,您應當了解: - Know how to install additional third-party - software (). + 知道如何透過 port 機制來安裝軟體()。 - Installation + 安裝 KLD (kernel loadable object) - Linux binary compatibility is not turned on by default. The - easiest way to enable this functionality is to load the + 預設並不會打開 Linux 相容模式,最簡單的啟用方式,就是載入 linux KLD object (Kernel LoaDable - object). You can load this module by typing the - following as root: + object)。 載入方式,請切為 root + 權限,然後打下列指令: &prompt.root; kldload linux - If you would like Linux compatibility to always be enabled, - then you should add the following line to - /etc/rc.conf: + 若要每次開機都啟用的話,請把下列內容加到 + /etc/rc.conf 檔: linux_enable="YES" - The &man.kldstat.8; command can be used to verify that the - KLD is loaded: + 另外可以用 &man.kldstat.8; 指令,來確認有哪些 KLD 有載入: &prompt.user; kldstat Id Refs Address Size Name @@ -130,7 +114,7 @@ 7 1 0xc24db000 d000 linux.ko kernel options - LINUX + COMPAT_LINUX If for some reason you do not want to or cannot load the KLD, @@ -160,7 +144,7 @@ from the Ports Collection. Simply do the following: - &prompt.root; cd /usr/ports/emulators/linux_base + &prompt.root; cd /usr/ports/emulators/linux_base-fc4 &prompt.root; make install distclean You should now have working Linux binary compatibility. @@ -1563,8 +1547,7 @@ Installation of FreeBSD First you have to install FreeBSD. There are several ways to do - this (FreeBSD 4.3 was installed via FTP, FreeBSD 4.5 directly from - the RELEASE CD) for more information read the . @@ -2066,7 +2049,7 @@ and &oracle;, therefore choose a larger number of shared memory pages. - With the default installation of FreeBSD 4.5 on &i386;, + With the default installation of FreeBSD on &i386;, leave MAXDSIZ and DFLDSIZ at 1 GB maximum. Otherwise, strange errors like ORA-27102: out of memory and Linux Error: 12: Cannot allocate memory @@ -3037,7 +3020,7 @@ <errorcode>ORA-00001</errorcode> This error only happened with - &oracle; 8.1.7 on FreeBSD 4.5. + &oracle; 8.1.7 on FreeBSD. The reason was that the &oracle; database could not initialize itself properly and crashed, leaving semaphores and shared memory on the system. The next try to start the database then returned --- zh_TW.Big5.20060805_3.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: