Difference between revisions of "Unity"

From ArchWiki
Jump to: navigation, search
(From repository)
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
[[it:Notify OSD]]
 
[[it:Notify OSD]]
[[zh-CN:Notify OSD]]
+
[[ja:Unity]]
 +
[[zh-CN:Unity]]
 
[[Category:Desktop environments]]
 
[[Category:Desktop environments]]
 
{{Article summary start|Summary}}
 
{{Article summary start|Summary}}
Line 11: Line 12:
  
 
== Installation ==
 
== Installation ==
There are two ways to install Unity on Archlinux:
+
There are two ways to install Unity on Archlinux: from the source and from a repository.
*'''from source code'''
+
 
*'''from repository'''
+
 
=== From source ===
 
=== 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.
+
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 additional applications including '''lightdm-ubuntu''' (lightdm with ubuntu patches), '''light-themes''', '''ubuntu-tweak'''(a popular unity tweak tool) and so on.
  
 
To install minimal Unity shell:
 
To install minimal Unity shell:
Line 30: Line 30:
 
3. Log out and log into the Unity session.
 
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 [https://github.com/chenxiaolong/Unity-for-Arch-Extra Unity-For-Arch-Extra]. And lightdm needs to be added to autostart daemons.
+
To use lightdm to start Unity, almost the same steps need to be followed to install '''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].
 +
 
 +
{{Tip|To make this procedure automatic, [https://gist.github.com/3906721 a script] can be used.}}
  
 
=== From repository ===
 
=== From repository ===
Line 54: Line 56:
  
 
{{Warning|Remember you're installing '''unofficial''' packages that are unsupported by the Arch Linux developers.}}
 
{{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 that packages with those from the repository.}}
+
{{Warning|Almost all of the packages related to Unity in AUR are outdated. Don't mix those packages with those from the repository.}}
  
 
==Update==
 
==Update==
Line 83: Line 85:
  
 
===Window decoration can't use certain theme===
 
===Window decoration can't use certain theme===
It's an known issue which is supposed to be solved with Gnome 3.6.  
+
Install metacity-ubuntu instead of metacity.
A dirt hack is to remove ''shadow'' and ''padding'' entries in {{ic|path-to-theme/metacity-1/metacity-theme-1.xml}}.
+
 
 +
===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}}.
 +
 
 +
===''Indicator-messages'' doesn't work properly===
 +
Pidgin and a bunch of other applications can not be integrated into indicator-messages due to its API changes. Wait for the upstream software updates or you can help file a bug report.
  
 
==Known Issues==
 
==Known Issues==
===Window decoration doesn't work properly===
 
===Ubuntu 12.10 new feature ''Webapps'' doesn't work properly===
 

Revision as of 04:10, 10 December 2012

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

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 the source and from a 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 additional applications including lightdm-ubuntu (lightdm with ubuntu patches), light-themes, ubuntu-tweak(a popular unity 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 install 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.

Indicator-messages doesn't work properly

Pidgin and a bunch of other applications can not be integrated into indicator-messages due to its API changes. Wait for the upstream software updates or you can help file a bug report.

Known Issues