Translation

(itstool) path: sect1/programlisting
<?xml version="1.0" encoding="utf-8"?>
<!--
# Sun VirtualBox
# Hal driver description for the vboxmouse driver
# $Id: chapter.xml,v 1.33 2012-03-17 04:53:52 eadler Exp $

Copyright (C) 2008-2009 Sun Microsystems, Inc.

This file is part of VirtualBox Open Source Edition (OSE, as
available from http://www.virtualbox.org. This file is free software;
you can redistribute it and/or modify it under the terms of the GNU
General Public License (GPL) as published by the Free Software
Foundation, in version 2 as it comes in the "COPYING" file of the
VirtualBox OSE distribution. VirtualBox OSE is distributed in the
hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.

Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
Clara, CA 95054 USA or visit http://www.sun.com if you need
additional information or have any questions.
-->
<deviceinfo version="0.2">
<device>
<match key="info.subsystem" string="pci">
<match key="info.product" string="VirtualBox guest Service">
<append key="info.capabilities" type="strlist">input</append>
<append key="info.capabilities" type="strlist">input.mouse</append>
<merge key="input.x11_driver" type="string">vboxmouse</merge>
<merge key="input.device" type="string">/dev/vboxguest</merge>
</match>
</match>
</device>
</deviceinfo>
1453/14530
Context English Chinese (Simplified) (zh_CN) State
Host time synchronization. 主机时间同步。
Window scaling. 视窗缩放。
Seamless mode. 无痕模式。
These commands are run in the FreeBSD guest. 以下指令均是在FreeBSD客端中执行。
First, install the <package>emulators/virtualbox-ose-additions</package> package or port in the FreeBSD guest. This will install the port: 首先,在FreeBSD客端安装<package>emulators/virtualbox-ose-additions</package>套件或Port,以下指令会安装Port:
<prompt>#</prompt> <userinput>cd /usr/ports/emulators/virtualbox-ose-additions &amp;&amp; make install clean</userinput> <prompt>#</prompt> <userinput>cd /usr/ports/emulators/virtualbox-ose-additions &amp;&amp; make install clean</userinput>
Add these lines to <filename>/etc/rc.conf</filename>: 加入下行到<filename>/etc/rc.conf</filename>:
vboxguest_enable="YES"
vboxservice_enable="YES"
vboxguest_enable="YES"
vboxservice_enable="YES"
If <citerefentry><refentrytitle>ntpd</refentrytitle><manvolnum>8</manvolnum></citerefentry> or <citerefentry><refentrytitle>ntpdate</refentrytitle><manvolnum>8</manvolnum></citerefentry> is used, disable host time synchronization: 若有使用<citerefentry><refentrytitle>ntpd</refentrytitle><manvolnum>8</manvolnum></citerefentry>或<citerefentry><refentrytitle>ntpdate</refentrytitle><manvolnum>8</manvolnum></citerefentry>,便可关闭主机时间同步功能:
vboxservice_flags="--disable-timesync" vboxservice_flags="--disable-timesync"
<application>Xorg</application> will automatically recognize the <literal>vboxvideo</literal> driver. It can also be manually entered in <filename>/etc/X11/xorg.conf</filename>: <application>Xorg</application>会自动辨识<literal>vboxvideo</literal>驱动程序,也可手动在<filename>/etc/X11/xorg.conf</filename>中输入:
Section "Device"
Identifier "Card0"
Driver "vboxvideo"
VendorName "InnoTek Systemberatung GmbH"
BoardName "VirtualBox Graphics Adapter"
EndSection
Section "Device"
Identifier "Card0"
Driver "vboxvideo"
VendorName "InnoTek Systemberatung GmbH"
BoardName "VirtualBox Graphics Adapter"
EndSection
To use the <literal>vboxmouse</literal> driver, adjust the mouse section in <filename>/etc/X11/xorg.conf</filename>: 要使用<literal>vboxmouse</literal>驱动程序,可调整在<filename>/etc/X11/xorg.conf</filename>中与鼠标相关的一节:
Section "InputDevice"
Identifier "Mouse0"
Driver "vboxmouse"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "vboxmouse"
EndSection
<acronym>HAL</acronym> users should create the following <filename>/usr/local/etc/hal/fdi/policy/90-vboxguest.fdi</filename> or copy it from <filename>/usr/local/share/hal/fdi/policy/10osvendor/90-vboxguest.fdi</filename>: <acronym>HAL</acronym>的使用者应建立以下<filename>/usr/local/etc/hal/fdi/policy/90-vboxguest.fdi</filename>或复制自<filename>/usr/local/share/hal/fdi/policy/10osvendor/90-vboxguest.fdi</filename>:
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!--
# Sun VirtualBox
# Hal driver description for the vboxmouse driver
# $Id: chapter.xml,v 1.33 2012-03-17 04:53:52 eadler Exp $

Copyright (C) 2008-2009 Sun Microsystems, Inc.

This file is part of VirtualBox Open Source Edition (OSE, as
available from http://www.virtualbox.org. This file is free software;
you can redistribute it and/or modify it under the terms of the GNU
General Public License (GPL) as published by the Free Software
Foundation, in version 2 as it comes in the "COPYING" file of the
VirtualBox OSE distribution. VirtualBox OSE is distributed in the
hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.

Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
Clara, CA 95054 USA or visit http://www.sun.com if you need
additional information or have any questions.
--&gt;
&lt;deviceinfo version="0.2"&gt;
&lt;device&gt;
&lt;match key="info.subsystem" string="pci"&gt;
&lt;match key="info.product" string="VirtualBox guest Service"&gt;
&lt;append key="info.capabilities" type="strlist"&gt;input&lt;/append&gt;
&lt;append key="info.capabilities" type="strlist"&gt;input.mouse&lt;/append&gt;
&lt;merge key="input.x11_driver" type="string"&gt;vboxmouse&lt;/merge&gt;
&lt;merge key="input.device" type="string"&gt;/dev/vboxguest&lt;/merge&gt;
&lt;/match&gt;
&lt;/match&gt;
&lt;/device&gt;
&lt;/deviceinfo&gt;
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!--
# Sun VirtualBox
# Hal driver description for the vboxmouse driver
# $Id: chapter.xml,v 1.33 2012-03-17 04:53:52 eadler Exp $

Copyright (C) 2008-2009 Sun Microsystems, Inc.

This file is part of VirtualBox Open Source Edition (OSE, as
available from http://www.virtualbox.org. This file is free software;
you can redistribute it and/or modify it under the terms of the GNU
General Public License (GPL) as published by the Free Software
Foundation, in version 2 as it comes in the "COPYING" file of the
VirtualBox OSE distribution. VirtualBox OSE is distributed in the
hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.

Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
Clara, CA 95054 USA or visit http://www.sun.com if you need
additional information or have any questions.
--&gt;
&lt;deviceinfo version="0.2"&gt;
&lt;device&gt;
&lt;match key="info.subsystem" string="pci"&gt;
&lt;match key="info.product" string="VirtualBox guest Service"&gt;
&lt;append key="info.capabilities" type="strlist"&gt;input&lt;/append&gt;
&lt;append key="info.capabilities" type="strlist"&gt;input.mouse&lt;/append&gt;
&lt;merge key="input.x11_driver" type="string"&gt;vboxmouse&lt;/merge&gt;
&lt;merge key="input.device" type="string"&gt;/dev/vboxguest&lt;/merge&gt;
&lt;/match&gt;
&lt;/match&gt;
&lt;/device&gt;
&lt;/deviceinfo&gt;
Shared folders for file transfers between host and VM are accessible by mounting them using <literal>mount_vboxvfs</literal>. A shared folder can be created on the host using the VirtualBox GUI or via <command>vboxmanage</command>. For example, to create a shared folder called <replaceable>myshare</replaceable> under <filename><replaceable>/mnt/bsdboxshare</replaceable></filename> for the VM named <replaceable>BSDBox</replaceable>, run: 主机和 VM 之间文件传输的共享文件夹可通过使用<literal>mount_vboxvfs</literal>进行装载来访问。可以使用 VirtualBox GUI 或通过<command>vboxmanage</command>在主机上创建共享文件夹。例如,在<filename><replaceable>/mnt/bsdboxshare</replaceable></filename>中为<replaceable>BSDBox</replaceable>虚拟机创建名为 <replaceable>myshare</replaceable>的共享文件夹,请运行:
<prompt>#</prompt> <userinput>vboxmanage sharedfolder add '<replaceable>BSDBox</replaceable>' --name <replaceable>myshare</replaceable> --hostpath <replaceable>/mnt/bsdboxshare</replaceable></userinput> <prompt>#</prompt> <userinput>vboxmanage sharedfolder add '<replaceable>BSDBox</replaceable>' --name <replaceable>myshare</replaceable> --hostpath <replaceable>/mnt/bsdboxshare</replaceable></userinput>
Note that the shared folder name must not contain spaces. Mount the shared folder from within the guest system like this: 请注意,共享文件夹名称不得包含空格。从来宾系统内装载共享文件夹,如下所示:
<prompt>#</prompt> <userinput>mount_vboxvfs -w <replaceable>myshare</replaceable> <replaceable>/mnt</replaceable></userinput> <prompt>#</prompt> <userinput>mount_vboxvfs -w <replaceable>myshare</replaceable> <replaceable>/mnt</replaceable></userinput>
FreeBSD as a Host with <trademark>VirtualBox</trademark> 使用 <trademark>VirtualBox</trademark> 虚拟机
<application><trademark>VirtualBox</trademark></application> is an actively developed, complete virtualization package, that is available for most operating systems including <trademark class="registered">Windows</trademark>, <trademark class="registered">Mac OS</trademark>, <trademark class="registered">Linux</trademark> and FreeBSD. It is equally capable of running <trademark class="registered">Windows</trademark> or <trademark class="registered">UNIX</trademark>-like guests. It is released as open source software, but with closed-source components available in a separate extension pack. These components include support for USB 2.0 devices. More information may be found on the <link xlink:href="http://www.virtualbox.org/wiki/Downloads"><quote>Downloads</quote> page of the <application><trademark>VirtualBox</trademark></application> wiki</link>. Currently, these extensions are not available for FreeBSD. <application><trademark>VirtualBox</trademark></application>是一套积极开发、完整的虚拟化套件,适用大多数操作系统,包含<trademark class="registered">Windows</trademark>,<trademark class="registered">Mac OS</trademark>,<trademark class="registered">Linux</trademark>与FreeBSD,它同样能够执行类<trademark class="registered">Windows</trademark>或<trademark class="registered">UNIX</trademark>的客端系统。它是以开源软件的方式发布,但闭源元件可独立在扩充包中使用,这些元件包含对USB 2.0装置的支持。更多信息可在<link xlink:href="http://www.virtualbox.org/wiki/Downloads"><application><trademark>VirtualBox</trademark></application> wiki的<quote>Downloads</quote>页面</link>。目前,这些扩充套件并不支持FreeBSD。
Installing <trademark>VirtualBox</trademark> 安装<trademark>VirtualBox</trademark>
<application><trademark>VirtualBox</trademark></application> is available as a FreeBSD package or port in <package>emulators/virtualbox-ose</package>. The port can be installed using these commands: <application><trademark>VirtualBox</trademark></application>可于<package>emulators/virtualbox-ose</package>以FreeBSD套件或Port的方式取得。要安装Port可使用以下指令:
<prompt>#</prompt> <userinput>cd /usr/ports/emulators/virtualbox-ose</userinput>
<prompt>#</prompt> <userinput>make install clean</userinput>
<prompt>#</prompt> <userinput>cd /usr/ports/emulators/virtualbox-ose</userinput>
<prompt>#</prompt> <userinput>make install clean</userinput>
One useful option in the port's configuration menu is the <literal>GuestAdditions</literal> suite of programs. These provide a number of useful features in guest operating systems, like mouse pointer integration (allowing the mouse to be shared between host and guest without the need to press a special keyboard shortcut to switch) and faster video rendering, especially in <trademark class="registered">Windows</trademark> guests. The guest additions are available in the <guimenu>Devices</guimenu> menu, after the installation of the guest is finished. 在Port的设定菜单中<literal>GuestAdditions</literal>相关程序是最有用的选项之一,这些程序可在客端操作系统提供数个有用的功能,如鼠标指标整合(允许鼠标在主端与客端之间移动,不需要按特殊快速键来切换)与较快的图像绘图速度,特别是在<trademark class="registered">Windows</trademark>的客端系统。Guest additions可在客端系统安装完之后的<guimenu>Devices</guimenu>菜单找到。
A few configuration changes are needed before <application><trademark>VirtualBox</trademark></application> is started for the first time. The port installs a kernel module in <filename>/boot/modules</filename> which must be loaded into the running kernel: 还有一些设定需要在<application><trademark>VirtualBox</trademark></application>第一次启动端做修改,Port会安装一个核心模块在<filename>/boot/modules</filename>,该模块必须在核心中加载:
<prompt>#</prompt> <userinput>kldload vboxdrv</userinput> <prompt>#</prompt> <userinput>kldload vboxdrv</userinput>
To ensure the module is always loaded after a reboot, add this line to <filename>/boot/loader.conf</filename>: 要确保该模块在重启后会加载,可加入下行到<filename>/boot/loader.conf</filename>:
vboxdrv_load="YES" vboxdrv_load="YES"
To use the kernel modules that allow bridged or host-only networking, add this line to <filename>/etc/rc.conf</filename> and reboot the computer: 要使用可支持桥接或仅限主端(Host-only)的网络,可加入下行到<filename>/etc/rc.conf</filename>,然后重新启动电脑:

Loading…

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!--
# Sun VirtualBox
# Hal driver description for the vboxmouse driver
# $Id: chapter.xml,v 1.33 2012-03-17 04:53:52 eadler Exp $

Copyright (C) 2008-2009 Sun Microsystems, Inc.

This file is part of VirtualBox Open Source Edition (OSE, as
available from http://www.virtualbox.org. This file is free software;
you can redistribute it and/or modify it under the terms of the GNU
General Public License (GPL) as published by the Free Software
Foundation, in version 2 as it comes in the "COPYING" file of the
VirtualBox OSE distribution. VirtualBox OSE is distributed in the
hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.

Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
Clara, CA 95054 USA or visit http://www.sun.com if you need
additional information or have any questions.
--&gt;
&lt;deviceinfo version="0.2"&gt;
&lt;device&gt;
&lt;match key="info.subsystem" string="pci"&gt;
&lt;match key="info.product" string="VirtualBox guest Service"&gt;
&lt;append key="info.capabilities" type="strlist"&gt;input&lt;/append&gt;
&lt;append key="info.capabilities" type="strlist"&gt;input.mouse&lt;/append&gt;
&lt;merge key="input.x11_driver" type="string"&gt;vboxmouse&lt;/merge&gt;
&lt;merge key="input.device" type="string"&gt;/dev/vboxguest&lt;/merge&gt;
&lt;/match&gt;
&lt;/match&gt;
&lt;/device&gt;
&lt;/deviceinfo&gt;
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!--
# Sun VirtualBox
# Hal driver description for the vboxmouse driver
# $Id: chapter.xml,v 1.33 2012-03-17 04:53:52 eadler Exp $

Copyright (C) 2008-2009 Sun Microsystems, Inc.

This file is part of VirtualBox Open Source Edition (OSE, as
available from http://www.virtualbox.org. This file is free software;
you can redistribute it and/or modify it under the terms of the GNU
General Public License (GPL) as published by the Free Software
Foundation, in version 2 as it comes in the "COPYING" file of the
VirtualBox OSE distribution. VirtualBox OSE is distributed in the
hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.

Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
Clara, CA 95054 USA or visit http://www.sun.com if you need
additional information or have any questions.
--&gt;
&lt;deviceinfo version="0.2"&gt;
&lt;device&gt;
&lt;match key="info.subsystem" string="pci"&gt;
&lt;match key="info.product" string="VirtualBox guest Service"&gt;
&lt;append key="info.capabilities" type="strlist"&gt;input&lt;/append&gt;
&lt;append key="info.capabilities" type="strlist"&gt;input.mouse&lt;/append&gt;
&lt;merge key="input.x11_driver" type="string"&gt;vboxmouse&lt;/merge&gt;
&lt;merge key="input.device" type="string"&gt;/dev/vboxguest&lt;/merge&gt;
&lt;/match&gt;
&lt;/match&gt;
&lt;/device&gt;
&lt;/deviceinfo&gt;
11 months ago
Browse all component changes

Things to check

Unchanged translation

Source and translation are identical

Reset

Glossary

English Chinese (Simplified) (zh_CN)
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: sect1/programlisting
Flags
no-wrap
Source string location
book.translate.xml:42757
String age
a year ago
Source string age
a year ago
Translation file
books/zh_CN/handbook.po, string 6927