Unity (简体中文)
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.
Contents
安装
有两种途径可供选择:
- 从源码编译安装
- 添加软件源安装
源码安装
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.
最简安装Unity桌面环境:
1. 'cd' 进一个你想要保存源码的目录,然后运行:
$ git clone https://github.com/chenxiaolong/Unity-for-Arch.git
Where git is required.
2. 打开README文件,按照上面的指示编译。基本上是这样的:
$ cd packagename $ rm -rvf # 清理之前的编译文件 $ makepkg -sci # '-s' 意思是安装需要的依赖, '-c' 意思是编译完成后清理无关文件, '-i' 意思是编译完成后安装软件包
3. 注销再登陆进Unity环境。
如想使用lightdm启动Unity,请从Unity-For-Arch-Extra安装 lightdm-ubuntu and lightdm-unity-greeter ,步骤基本和上面一致。 然后将lightdm加入自启动守护进程。使用Systemd的用户可以查看 关于Systemd的文章.
软件源
已编译好的二进制包可以在unity.humbug.in 和 unity.xe-xe.org下载到。
在这里,以 unity.xe-xe.org 为例安装Unity。添加以下内容到 /etc/pacman.conf
:
[unity] Server = http://unity.xe-xe.org/$arch [unity-extra] Server = http://unity.xe-xe.org/extra/$arch
执行以下命令:
$ pacman -Suy $ pacman -S $(pacman -Slq unity)
使用另一个源 mooos.org 安装Unity。添加以下内容到 /etc/pacman.conf
:
[moo] SigLevel = Optional TrustAll Server = http://mooos.org/repos/moo/$arch
执行以下命令:
$ sudo pacman -S unity
重启系统,使用 Ubuntu 会话:
sudo reboot
更新
软件源里的Unity更新方法和Arch官方源的更新一样。
如果是源码安装:
1. 'cd' into the 'Unity-for-Arch' directory where it was originally cloned
2. 从github获取更新文件:
$ git pull
3. 检查是否需要更新:
$ ./What_can_I_update\?.py
4. 如果需要更新,请按照上面 源码安装 部分的说明。
疑难问题
Unity在更新后不工作
尝试运行:
$ compiz.reset
然后注销再登陆进Unity。
如果问题仍然存在,请在github报告问题 或者 在Arch论坛讨论。
窗口装饰显示不正常
试着安装 gnome-tweak-tool[broken link: replaced by gnome-tweaks] 来调整主题。
窗口装饰不能使用某个特定的主题
请安装 metacity-ubuntu 而不是 metacity.
在更新到Gnome 3.6后某些gtk主题看起来不正常
Unity的默认主题light-themes也会这样,请添加
GtkLabel { background-color: @transparent; }
到 .config/gtk3.0/gtk.css
新开的窗口总会被放到屏幕左上角
请使用 Metacity-ubuntu 而不是 metacity。 Metacity-ubuntu 现已被包括进 Unity-for-Arch 。
窗口最大化后标题栏依然存在
请使用 Metacity-ubuntu 而不是 metacity。
已知问题
Ubuntu 12.10 新特性 Webapps 不正常
Indicator messages 不正常
It doesn't show any menus currently.