openSUSE 12.1發行紀事

版本:

12.1.7 (2011-11-09)

Copyright © 2011 Novell, Inc.

在 GNU 自由文件授權(GNU Free Documentation License) 1.2 版或之後版本的規範下,您被允許複製、散佈和/或修改此文件, GNU 自由文件授權(GNU Free Documentation License)是由自由軟體基金會(Free Software Foundation)所發行。使用無恆常章節(no Invariant Sections),無封面文字(no Front-Cover Texts)及無封底文字(no Back-Cover Texts)。此授權的複本已包含在檔案 fdl.txt

如果您從較舊的 openSUSE 發行版本升級,請由此查看之前的發行紀事: http://en.opensuse.org/openSUSE:Release_Notes

此版本摘要包括以下範圍:

雜項
  1. YaST AppArmor 組態模組
安裝
  1. N/A
一般
  1. openSUSE 文件
  2. GNOME 3
  3. PulseAudio 音效系統
  4. Windows Domain Logon with KDM
  5. Oracle Java 額外提供
系統升級
  1. 使用 systemd 掛載加密的分割區
技術
  1. 使用 KMS (Kernel Mode Setting) 初始化顯示卡
  2. Radeon HDMI Sound Output Being Disabled
  3. 使用 systemd 進行系統關機
  4. systemd: 提供服務啟動參數
  5. 使用 systemd 或 sysvinit 開機
  6. CUPS 1.5
  7. 關於 rename 指令
  8. NetworkManager (網路管理員)命令行介面
  9. rpm: %_topdir Changed for Non-root Users

雜項

YaST AppArmor 組態模組

FATE https://features.opensuse.org/305278的分類: AppArmor, YaST.

AppArmor 組態模組現在要到 YaST 控制中心的 "保全性與使用者" 分類中尋找。

安裝

N/A

一般

openSUSE 文件

CHECKIT for 12.1!

GNOME 3

GNOME 3 提供了一個和 GNOME 2 不同的桌面新設計。因此,也為了讓使用者從這個變更得到好處,您的 GNOME 2 桌面的外觀與感覺將不會自動被移植。系統設定 可以用來自訂 GNOME 3, 也提供了進階工具 (gnome-tweak-tool) 進行更細節的設定。

GNOME 3 的標準模式需要圖形驅動程式的 3D 加速支援。當 3D 加速無法使用時,GNOME 3 會使用後備模式。如果 GNOME 3 偵測到可使用 3D 加速,但標準模式無法使用,那您應該是遇到了圖形驅動程式的臭蟲。您可以在 grub 的開機參數中使用 "gnome.fallback=1" 來強迫使用後備模式。

如果您使用後備模式,您可以按著 Alt 並在面板上按滑鼠右鍵 來自訂面板。

許多關於 GNOME Shell 功能的簡短描述,像是快捷鍵設定, 拖曳與釋放相容性,以及特殊工具等,請參閱 https://live.gnome.org/GnomeShell/CheatSheet

PulseAudio 音效系統

PulseAudio 聲音系統現在已完全整合到整個系統,並對全新安裝時預設啟用。如果您在前一個版本停用它,且現在想要啟用,請在 /etc/sysconfig/sound 檢查 PULSEAUDIO_ENABLE 的變數:

設定 PULSEAUDIO_ENABLE 為 "yes" 全系統強迫啟用 PA。 設定 PULSEAUDIO_ENABLE 為 "no" 將完全停用 PulseAudio,設定為 "custom" 表示維持自訂的組態不變動。

Windows Domain Logon with KDM

The SUSE KDM theme does not allow Windows Domain logons.

To work around this issue, set DISPLAYMANAGER_KDM_THEME to an empty string in /etc/sysconfig/displaymanager to use the default KDM theme:

DISPLAYMANAGER_KDM_THEME=""

Oracle Java 額外提供

java-1_6_0-sun 套件因為授權的變更,已不再是 openSUSE 的一部份。我們將搭載 OpenJDK 版本替代。習慣使用 Oracle JDK 二位元檔版本來取代 openSUSE OpenJDK 版的 openSUSE 使用者,可以從 http://oracle.com/java 下載 Oracle 的版本。

系統升級

使用 systemd 掛載加密的分割區

如果加密的分割區沒有被 systemd 自動掛載,可能是在 /etc/fstab 這些分割區有 noauto 旗標,將這旗標用 nofail 代替可修復此問題。例如,將下面這行:

/dev/mapper/cr_sda3  /home   ext4    acl,user_xattr,noauto 0 2

改成

/dev/mapper/cr_sda3  /home   ext4    acl,user_xattr,nofail 0 2

技術

使用 KMS (Kernel Mode Setting) 初始化顯示卡

在 openSUSE 11.3 我們已為 Intel, ATI 和 NVIDIA 顯示卡切換到 KMS (Kernel Mode Setting) ,這是我們的預設值。若您在 KMS 驅動程式支援(intel, radeon, nouveau)遇到問題,可以在核心開機指令行加上 nomodeset 來停用 KMS。要永久設定此參數,請將他加到 /boot/grub/menu.lst 的核心指令行中。此選項會確認相對應的核心模組(intel, radeon, nouveau)在 initrd 載入時會使用 modeset=0,也就是說,停用 KMS。

在少數情況下,當從 initrd 載入 DRM 模組時會產生問題,我們也可以完全在 initrd 停止載入 DRM 模組。要這樣做的話,用 YaST設定 sysconfig 變數 NO_KMS_IN_INITRDyes,完成後會重新產生 initrd,接著請您重新開機。

在 Intel 顯示卡不用 KMS 的話,X伺服器會回歸到 fbdev 驅動程式(intel 驅動程式只支援 KMS); 然而對 Intel 較舊的 GPU,也可以使用 "intellegacy" 驅動程式 (xorg-x11-driver-video-intel-legacy 套件),這個驅動程式仍支援 UMS (User Mode Setting)。要使用此驅動程式,編輯 /etc/X11/xorg.conf.d/50-device.conf 並變更驅動程式項目為intellegacy

在 ATI 當下主流的 GPU 顯示卡則會回歸使用 radeonhd。在 NVIDIA 顯示卡沒有 KMS 則會使用 nv 驅動程式( nouveau 驅動程式只支援 KMS)。注意,如果您在核心啟動參數中 指定 nomodeset ,較新的 ATI 和 NVIDIA GPU 會回歸 使用 fbdev

Radeon HDMI Sound Output Being Disabled

Due to problems on some hardware HDMI sound output has been disabled by default on the radeon driver, which is the default driver for AMD/ATI graphics cards.

It can be re-enabled by adding radeon.audio=1 as a kernel parameter. In YaST, go to System -> Boot Loader, then click Edit on the default entry, and add the following to the end of 'Optional Kernel Command Line Parameter':

radeon.audio=1

Then reboot to apply the change.

Alternatively, users can install the proprietary driver from AMD. For more information, see http://en.opensuse.org/SDB:ATI_drivers.

使用 systemd 進行系統關機

使用 systemd 時系統要停機或電源關閉,請在命令行 用 halt -pshutdown -h now 或 使用您的桌面環境所提供的關機按鍵。

注意:單單 halt 命令將無法正確關閉系統。

systemd: 提供服務啟動參數

systemctl 僅支援 "標準" 參數 (詳見 http://www.freedesktop.org/wiki/Software/systemd/Incompatibilities)。

您可以藉由直接呼叫啟動程序來迴避此新行為,例如:

cd /etc/init.d
./apache2 <您的_參數>

使用 systemd 或 sysvinit 開機

現在 openSUSE 開機預設使用 systemd。如果遇到麻煩,您可以在開機時按 F5 來切換回使用 sysvinit 的老方法。

如果您想要長久使用 sysvinit ,請安裝 sysvinit-init 套件。要切換回 systemd,重新安裝 systemd-sysvinit 套件。

CUPS 1.5

CUPS 1.5 帶來與之前不相容的變更:

關於 rename 指令

基於 GNU 程式標準規定 (GNU Coding Standards), rename 的指令現在會將所有以一個破折號開頭的字串視為指令行的選項。為避免問題,用 -- 來分隔選項和其他參數,如下:

#!/bin/bash
for f in *.jpg ; do
  rename -- ".jpg" "-$RANDOM.jpg" $f ;
done

NetworkManager (網路管理員)命令行介面

cnetworkmanager 已不再可用—請用 nmcli 來代替。相關轉移的資訊,請參閱 http://repo.or.cz/w/cnetworkmanager.git/blob_plain/HEAD:/nmcli-migration.html

rpm: %_topdir Changed for Non-root Users

Unprivileged users can no longer write to /usr/src/packages. rpmbuild> now uses ~/rpmbuild by default. To change the directory add a line as follows to ~/.rpmmacros:

%_topdir /some/where/else

To use the subdirectory foo of $HOME add to ~/.rpmmacros:

%_topdir %{getenv:HOME}/foo