openSUSE 12.3 版本资讯

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

版本：

12.3.4 (2013-02-27)

版权所有 © 2013 Novell, Inc.

您有权以 GNU 自由文档协议（1.2版及以后，由自由软件基金会发布）对此文档进行
复制、传播和/或修改；但必须保持原有章节、封面和底面文本。该协议的拷贝在文件
fdl.txt 中。

如果你是从旧版本升级到本版 openSUSE，以前的版本资讯在此：

这些版本资讯覆盖以下领域：

  • 第 1 节 “杂项”：这些条目自动从 openFATE 获取，openFATE 是 openSUSE 的特
    性/需求管理系统 (http://features.opensuse.org)。

    不可用

  • 第 2 节 “安装”：如果您想要从头开始安装系统，请阅读此章节。

  • 第 3 节 “常规”：任何人都应当阅读的信息。

  • 第 4 节 “系统升级”：如果您从之前的旧版本升级到本版 openSUSE 会遇到的相
    关问题。

  • 第 5 节 “技术”：此部分包含一系列针有经验用户的技术更改和增强内容。

1. 杂项

不可用

2. 安装

2.1. 了解详细安装信息

详细安装信息请见第 3.1 节 “openSUSE 文档”。

3. 常规

3.1. openSUSE 文档

  • In Start-Up, find step-by-step installation instructions, as well as
    introductions to the KDE and Gnome desktops and to the LibreOffice
    suite. Also covered are basic administration topics such as deployment
    and software management and an introduction to the bash shell.

  • 参考手册涵盖了系统管理、系统详细配置和多种网络服务设置的指南。

  • 安全指南介绍了系统安全的基本概念，涵盖了本地和网络安全领域。

  • 系统分析和优化指南能帮助您检测问题，找到解决和优化方案。

  • 使用 KVM 虚拟化提供了设置和管理 KVM、libvirt 和 QEMU 虚拟化工具的指南。

安装 opensuse-manuals_$LANG 软件包后可在 /usr/share/doc/manual/
opensuse-manuals_$LANG 找到文档，也可以在线使用文档：http://
doc.opensuse.org。

3.2. UEFI—统一可扩展固件接口

在将 openSUSE 安装到一个使用 UEFI (统一可扩展固件接口) 引导的计算机上之前，
特别建议您检查一下硬件制造商推荐的任何固件更新，并且，如果有的话，安装这样
的更新。计算机预装了 Windows 8 是表明您的计算机使用 UEFI 引导的一个明显迹象
。

背景知识：某些 UEFI 固件有故障，会导致它在太多数据被写入 UEFI 存储区域时崩
溃。但是，没有人真正知道多少是"太多"。openSUSE 将仅写入引导操作系统必需的超
小数据，从而最小化了该风险。"超小数据"意思是说仅知会 UEFI 固件 openSUSE 引
导加载器的位置。默认禁用了上游 Linux 内核的使用 UEFI 存储区域存放引导和崩溃
信息 (pstore) 的功能。然而还是推荐安装硬件制造商推荐的任何固件更新。

4. 系统升级

4.1. systemd：使用 network.service 别名链接激活 NetworkManager

默认您使用 YaST 网络设置对话框 (yast2 network) 激活 NetworkManager。如果您
想要激活 NetworkManager，请进行如下操作。

用于激活 NetworkManager 的 /etc/sysconfig/network/config 中的
NETWORKMANAGER 变量已被一个 systemd 的 network.service 别名链接替代，它可以
用

systemctl enable NetworkManager.service

命令创建。它将创建一个指向 NetworkManager.service 的 network.service 别名链
接，从而停止了 /etc/init.d/network 脚本。这个命令

systemctl -p Id show network.service

允许查询当前选中的网络服务。

要启用 NetworkManager，使用：

  • 首先，停止运行中的服务：

    systemctl     is-active network.service && \
     systemctl     stop      network.service

  • 启用 NetworkManager 服务：

    systemctl --force        enable NetworkManager.service

  • 启动 NetworkManager 服务 (通过别名链接)：

    systemctl     start     network.service

要禁用 NetworkManager，使用：

  • 停止运行中的服务：

    systemctl     is-active network.service && \
     systemctl     stop      network.service

  • 禁用 NetworkManager 服务：

    systemctl disable NetworkManager.service

  • 启动 /etc/init.d/network 服务：

    systemctl     start  network.service

要查询当前所选服务，使用：

systemctl -p Id show     network.service

若启用了 NetworkManager 服务，它将返回 "Id=NetworkManager.service"，否则将
返回 "Id=network.service" 表示 /etc/init.d/network 正作为网络服务。

4.2. 移除了 SYSLOG_DAEMON 变量

SYSLOG_DAEMON 变量被移除了。之前，它用于选择 syslog 守护精灵。自 openSUSE
12.3 起，同一时间在系统上只能安装一个 syslog 实现，并将被自动选用。

细节请见 syslog(8) 手册页。

5. 技术

5.1. 使用 KMS 初始化图形界面（内核模式设定）

With openSUSE 11.3 we switched to KMS (Kernel Mode Setting) for Intel, ATI
and NVIDIA graphics, which now is our default. If you encounter problems
with the KMS driver support (intel, radeon, nouveau), disable KMS by adding
nomodeset to the kernel boot command line. To set this permanently using
Grub 2, the default boot loader, add it to the GRUB_CMDLINE_LINUX_DEFAULT
kernel default load options line in your /etc/default/grub text file as
root and running the terminal command

sudo /usr/sbin/grub2-mkconfig --output=/boot/grub2/grub.cfg

for the changes to take effect. Else, for Grub Legacy, add it to the kernel
command line in /boot/grub/menu.lst, also done as root. This option makes
sure the appropriate kernel module (intel, radeon, nouveau) is loaded with
modeset=0 in initrd, i.e. KMS is disabled.

在极少见的情况下从 initrd 挂载 DRM 模块出错是一个常见的问题，KMS 只是躺着中
枪而已。这时更应该在 initrd 里完全禁用加载 DRM 模块而不是去搞 KMS。通过
YaST 设定 NO_KMS_IN_INITRD sysconfig 变量为 yes，之后会重新创建 initrd。然
后重启计算机。

针对没有 KMS 的 Intel 图形驱动， X 服务器会退而求其次使用 fbdev 驱动（intel
驱动只支持 KMS）;还有，对于旧款 Intel 图形显示卡，
xorg-x11-driver-video-intel-legacy 软件包依然可用，它依然支持 UMS（用户模式
设定）。欲使用它可以编辑 /etc/X11/xorg.conf.d/50-device.conf，变更 driver
驱动条目为 intellegacy。

针对目前的 ATI 显卡处理器它会退而求其次使用 radeonhd。针对没有开启 KMS 的
NVIDIA 会使用 nv 官方驱动。（nouveau 驱动只支持 KMS）。注意，如果您指定了
nomodeset 参数给内核启动选项，新型号的 ATI 和 NVIDIA 显卡处理器会退而求其次
使用 fbdev。

5.2. systemd：清理目录（/tmp 和 /var/tmp）

systemd 默认按天清理在 /usr/lib/tmpfiles.d/tmp.conf 中配置的临时文件夹。用
户可将 /usr/lib/tmpfiles.d/tmp.conf 复制到 /etc/tmpfiles.d/tmp.conf 并修改
副本文件来修改临时文件夹。副本文件将自动覆盖 /usr/lib/tmpfiles.d/tmp.conf
中的设置。

注意：systemd 并不尊重 /etc/sysconfig/cron 文件中已淘汰的 sysconfig 变量如
TMP_DIRS_TO_CLEAR。

5.3. 配置 Postfix

SuSEconfig.postfix 被重命名为 /usr/sbin/config.postfix。如果您在 /etc/
sysconfig/postfix 或 /etc/sysconfig/mail 中设置了 sysconfig 变量，您必须手
动以 root 身份运行 /usr/sbin/config.postfix。

5.4. GNOME: Workaround to Set Shift or Ctrl+Shift as Shortcut Keys for
Input Source Selection

In Gnome 3.6 use the following workaround to set Shift or Ctrl+Shift as
shortcut keys for input source selection:

 1. Install gnome-tweak-tools.

 2. Then in the 'Typing' section, at the very bottom, find the
    'Modifiers-only input source switch' option, where you can set Ctrl
    Shift_L, for example (meaning, Ctrl key and left shift) or Shift_L
    Shift_R (meaning both Shift Keys).

This is also being tracked in the upstream bug report https://
bugzilla.gnome.org/show_bug.cgi?id=689839.

