Difference between revisions of "Unity (简体中文)"

From ArchWiki
Jump to: navigation, search
m (Fengchao moved page Notify OSD (简体中文) to Unity (简体中文): Move as English page.)
(Sync to latest English Version.)
Line 1: Line 1:
[[Category:简体中文]]
 
 
[[en:Unity]]
 
[[en:Unity]]
 
[[it:Notify OSD]]
 
[[it:Notify OSD]]
[https://launchpad.net/notify-osd Notify OSD] 是Canonical公司出品的屏显通知系统。 它能够展现任何来自于实现了freedesktop.org桌面通知规范的应用程序的通知。
+
[[Category:Desktop environments (简体中文)]]
 +
{{Article summary start|Summary}}
 +
{{Article summary text|This article discusses how to install and use Unity. Unity is a shell interface for the GNOME desktop environment. This article covers how to get Unity on your system and how to configure it to fit your needs.}}
 +
{{Article summary heading|Related}}
 +
{{Article summary wiki|GNOME}}
 +
{{Article summary end}}
 +
{{TranslationStatus (简体中文)|Unity|2012-11-08|234364}}
 +
{{Translateme (简体中文)}}
 +
[http://unity.ubuntu.com/ Unity] is an alternative shell for the GNOME desktop environment, developed by Canonical in its Ayatana project. It consists of several components including the Launcher, Dash, lenses, Panel, indicators, Notify OSD and Overlay Scrollbar. Unity used to available in two implementations: 'Unity' is the 3D accelerated version, which uses Compiz window manager and Nux toolkit; and 'Unity 2D' is a lighter alternative, which uses Metacity window manager and Qt toolkit. Unity 2D is already dropped by Canonical from Ubuntu 12.10. Instead a version powered by Gallium3D llvmpipe alternative is used.
  
Notify OSD 提供了 {{ic|notification-daemon}}的功能,并会在安装后替代系统自带的notification-daemon。
+
== Installation ==
 +
There are two ways to install Unity on Archlinux:
 +
*'''from source code'''
 +
*'''from repository'''
 +
=== From source ===
 +
All of the pkgbuilds can be browsed in [https://github.com/chenxiaolong/Unity-for-Arch Github repository], where [https://github.com/chenxiaolong/Unity-for-Arch Unity-For-Arch] provides a minimal working Unity shell, [https://github.com/chenxiaolong/Unity-for-Arch-Extra Unity-For-Arch-Extra] provides some additoinal applications including '''lightdm-ubuntu'''(lightdm with ubuntu patch), '''light-themes''', '''ubuntu-tweak'''(a popular ubuntu tweak tool) and so on.
  
=安装=
+
To install minimal Unity shell:
{{AUR|notify-osd}} 可以从 [[AUR]] [https://aur.archlinux.org/packages.php?ID=25256 here]获得。
 
  
==GNOME==
+
1. 'cd' to a directory that you want to keep the sources in and then run:
的GNOME环境下,Notify-OSD会取代系统自带的'''notification-daemon''',所以在安装notify-osd之前,请先卸载notification-daemon:
+
{{bc|$ git clone https://github.com/chenxiaolong/Unity-for-Arch.git}}
 +
Where {{Pkg|git}} is required.
  
# pacman -Rd notification-daemon
+
2 Open the README file and build packages according to the order listed. Basically run:
 +
{{bc|$ cd packagename
 +
$ rm -rvf # Clears out any files from a previous build
 +
$ makepkg -sci # '-s' means install needed dependencies, '-c' means clear left files after build and '-i' means install the package after it is built.
 +
}}
 +
3. Log out and log into the Unity session.
  
然后你就可以从AUR中安装notify-osd了。
+
To use lightdm to start Unity, almost the same steps need to be followed to instal '''lightdm-ubuntu''' and '''lightdm-unity-greeter''' from [https://github.com/chenxiaolong/Unity-for-Arch-Extra Unity-For-Arch-Extra]. And lightdm needs to be added to autostart daemons. For Systemd users, check [https://wiki.archlinux.org/index.php/Systemd wiki article about Systemd].
  
{{Warning | GNOME 2.30之后版本不需要进行以下的步骤。 }}
+
{{Tip|To make this procedure automatic, [https://gist.github.com/3906721 a script] can be used.}}
  
<tt>notify-osd</tt>包只包括屏显通知系统的核心部分,如果要实现如同Ubuntu中那样的通知效果(如调音显示,移除设备通知或屏幕亮度显示等)需要安装以下的包:
+
=== From repository ===
 +
Compiled packages are also available at [http://unity.humbug.in/ unity.humbug.in] and [http://unity.xe-xe.org/ unity.xe-xe.org].
 +
Take '''unity.xe-xe.org''' as an example, to install the packages,
 +
add
 +
{{bc|
 +
[unity]
 +
Server &#61; http://unity.xe-xe.org/$arch
  
* {{AUR|gnome-power-manager-notify-osd}}
+
[unity-extra]
* {{AUR|gnome-settings-daemon-notify-osd}}
+
Server &#61; http://unity.xe-xe.org/extra/$arch
* {{AUR|gnome-mount-notify-osd}}
+
}}
 +
to {{ic|/etc/pacman.conf}}
  
还有其他的包提供了额外的功能,根据你的需要安装它们。
+
Run:
 +
{{bc|
 +
$ pacman -Suy
 +
$ pacman -S $(pacman -Slq unity)}}
  
重启之后以可以使用新的屏显通知系统了。
+
{{Tip| There are many ubuntu-patched packages that replace original Arch packages.
 +
      Also it is recommended to use freetype2-ubuntu and libxft-ubuntu from AUR.}}
  
===使用Compiz闪烁的问题===
+
{{Warning|Remember you're installing '''unofficial''' packages that are unsupported by the Arch Linux developers.}}
 +
{{Warning|Almost all of the packages related to Unity in AUR are outdated. Don't mix those packages with those from the repository.}}
  
如果你使用Compiz, 通知可能在淡出时会闪烁。 你要做的就是在animations插件中去除"notifications",具体步骤如下:
+
==Update==
# 打开 '''CompizConfig Settings Manager (CCSM)'''
+
For Unity repository, the update is the same as packages from official repositories.
# 打开 '''Animations''' 插件设置
 
# 在animation设置串中,你会发现类似''(type=Menu | PopupMenu | notifications | DropdownMenu)''.将'''notifications'''从列表中删除即可,切记在'''Open Animation''' 和 '''Close Animation''' 中都要删除.
 
  
==Xfce==
+
Otherwise:
Xfce提供了它自己的通知系统, {{Pkg|xfce4-notifyd}}, 并且与<tt>notify-osd</tt>并不兼容,所以的安装之前要先删除xfce自带的版本:
 
  
# pacman -Rd xfce4-notifyd
+
1. 'cd' into the 'Unity-for-Arch' directory where it was originally cloned
  
以下是打过补丁的<tt>notify-osd</tt>,可以处理xfconf(Xfce的配置服务,类似于gconf):
+
2. pull all of changes from github repository:
 +
{{bc|$ git pull}}
 +
3. Check if packages need to be updated:
 +
{{bc|$ ./What_can_I_update\?.py}}
 +
4. If any packages need to be updated, just build them like mentioned above in '''from source''' section.
  
* {{AUR|notify-osd-xfconf-bzr}}
+
{{Note| Sometimes if certain crucial package is updated, those package which depend on it will also need to be recompiled though they won't be reported. For example, '''Unity''' is often required to be recompiled if '''nux''' gets updated}}
  
Notify OSD与Xfce的集成还处在开发之中,安装以上列出的GNOME的包可能并不能得到期望的效果。要实现音量调节通知效果,可以安装:
+
==Trouble Shooting==
 +
===Unity stops working after update===
 +
Try to run:
 +
{{bc|$ compiz.reset}}
 +
and Log out and log into the Unity session.
  
* {{AUR|xfce4-volumed}}
+
If it still doesn't work, report an issue on [https://github.com/chenxiaolong/Unity-for-Arch/issues?state=open github] or discuss it on [https://bbs.archlinux.org/viewtopic.php?id=125423&p=1 Arch forum].
 +
 
 +
===Window decoration doesn't work properly===
 +
Try to install {{Pkg|gnome-tweak-tool}} to adjust the theme.
 +
 
 +
===Window decoration can't use certain theme===
 +
Install metacity-ubuntu instead of metacity.
 +
 
 +
===Some gtk themes look ugly after update to Gnome 3.6===
 +
It also happens for unity default theme light-themes. Put
 +
{{bc|
 +
GtkLabel {
 +
background-color: @transparent;
 +
}
 +
}}
 +
in {{ic|.config/gtk3.0/gtk.css}}
 +
 
 +
===Newly opened window is always placed at (0,0) on the screen===
 +
'''Metacity-ubuntu''' needs to be used instead of {{Pkg|metacity}}. '''Metacity-ubuntu''' is now included in [https://github.com/chenxiaolong/Unity-for-Arch Unity-for-Arch] again.
 +
 
 +
===Window's titlebar still exists when maximized===
 +
'''Metacity-ubuntu''' needs to be used instead of {{Pkg|metacity}}.
 +
 
 +
==Known Issues==
 +
===Ubuntu 12.10 new feature ''Webapps'' doesn't work properly===
 +
===''Indicator messages'' doesn't work properly===
 +
It doesn't show any menus currently.

Revision as of 04:03, 8 November 2012

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary end

翻译状态: 本文是英文页面 Unity翻译,最后翻译时间:2012-11-08,点击这里可以查看翻译后英文页面的改动。

Tango-preferences-desktop-locale.png本页面需要更新翻译,内容可能已经与英文脱节。要贡献翻译,请访问简体中文翻译组Tango-preferences-desktop-locale.png

附注: please use the first argument of the template to provide more detailed indications.

Unity is an alternative shell for the GNOME desktop environment, developed by Canonical in its Ayatana project. It consists of several components including the Launcher, Dash, lenses, Panel, indicators, Notify OSD and Overlay Scrollbar. Unity used to available in two implementations: 'Unity' is the 3D accelerated version, which uses Compiz window manager and Nux toolkit; and 'Unity 2D' is a lighter alternative, which uses Metacity window manager and Qt toolkit. Unity 2D is already dropped by Canonical from Ubuntu 12.10. Instead a version powered by Gallium3D llvmpipe alternative is used.

Installation

There are two ways to install Unity on Archlinux:

  • from source code
  • from repository

From source

All of the pkgbuilds can be browsed in Github repository, where Unity-For-Arch provides a minimal working Unity shell, Unity-For-Arch-Extra provides some additoinal applications including lightdm-ubuntu(lightdm with ubuntu patch), light-themes, ubuntu-tweak(a popular ubuntu tweak tool) and so on.

To install minimal Unity shell:

1. 'cd' to a directory that you want to keep the sources in and then run:

$ git clone https://github.com/chenxiaolong/Unity-for-Arch.git

Where git is required.

2 Open the README file and build packages according to the order listed. Basically run:

$ cd packagename
$ rm -rvf # Clears out any files from a previous build
$ makepkg -sci # '-s' means install needed dependencies, '-c' means clear left files after build and '-i' means install the package after it is built.

3. Log out and log into the Unity session.

To use lightdm to start Unity, almost the same steps need to be followed to instal lightdm-ubuntu and lightdm-unity-greeter from Unity-For-Arch-Extra. And lightdm needs to be added to autostart daemons. For Systemd users, check wiki article about Systemd.

Tip: To make this procedure automatic, a script can be used.

From repository

Compiled packages are also available at unity.humbug.in and unity.xe-xe.org. Take unity.xe-xe.org as an example, to install the packages, add

[unity]
Server = http://unity.xe-xe.org/$arch

[unity-extra]
Server = http://unity.xe-xe.org/extra/$arch

to /etc/pacman.conf

Run:

$ pacman -Suy
$ pacman -S $(pacman -Slq unity)
Tip: There are many ubuntu-patched packages that replace original Arch packages. Also it is recommended to use freetype2-ubuntu and libxft-ubuntu from AUR.
Warning: Remember you're installing unofficial packages that are unsupported by the Arch Linux developers.
Warning: Almost all of the packages related to Unity in AUR are outdated. Don't mix those packages with those from the repository.

Update

For Unity repository, the update is the same as packages from official repositories.

Otherwise:

1. 'cd' into the 'Unity-for-Arch' directory where it was originally cloned

2. pull all of changes from github repository:

$ git pull

3. Check if packages need to be updated:

$ ./What_can_I_update\?.py

4. If any packages need to be updated, just build them like mentioned above in from source section.

Note: Sometimes if certain crucial package is updated, those package which depend on it will also need to be recompiled though they won't be reported. For example, Unity is often required to be recompiled if nux gets updated

Trouble Shooting

Unity stops working after update

Try to run:

$ compiz.reset

and Log out and log into the Unity session.

If it still doesn't work, report an issue on github or discuss it on Arch forum.

Window decoration doesn't work properly

Try to install gnome-tweak-tool to adjust the theme.

Window decoration can't use certain theme

Install metacity-ubuntu instead of metacity.

Some gtk themes look ugly after update to Gnome 3.6

It also happens for unity default theme light-themes. Put

GtkLabel {
background-color: @transparent;
}

in .config/gtk3.0/gtk.css

Newly opened window is always placed at (0,0) on the screen

Metacity-ubuntu needs to be used instead of metacity. Metacity-ubuntu is now included in Unity-for-Arch again.

Window's titlebar still exists when maximized

Metacity-ubuntu needs to be used instead of metacity.

Known Issues

Ubuntu 12.10 new feature Webapps doesn't work properly

Indicator messages doesn't work properly

It doesn't show any menus currently.