Difference between revisions of "Unity"

From ArchWiki
Jump to: navigation, search
(Indicator messages doesn't work properly)
(update Pkg/AUR templates to reflect new package status)
(31 intermediate revisions by 15 users not shown)
Line 1: Line 1:
[[it:Notify OSD]]
+
[[ja:Unity]]
 
[[zh-CN:Unity]]
 
[[zh-CN:Unity]]
 
[[Category:Desktop environments]]
 
[[Category:Desktop environments]]
Line 7: Line 7:
 
{{Article summary wiki|GNOME}}
 
{{Article summary wiki|GNOME}}
 
{{Article summary end}}
 
{{Article summary end}}
 
+
[http://unity.ubuntu.com/ Unity] is a powerful desktop and netbook environment that brings consistency and elegance to the Ubuntu experience.
[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.
+
  
 
== Installation ==
 
== Installation ==
There are two ways to install Unity on Archlinux:
+
 
*'''from source code'''
+
There are two ways to install Unity on Arch Linux: from the source and from a repository.
*'''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.
 
  
To install minimal Unity shell:
+
All of the PKGBUILDs can be browsed on the [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, and [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''', '''unity-tweak-tool''' (a popular ubuntu tool) and some more.
  
1. 'cd' to a directory that you want to keep the sources in and then run:
+
To install a minimal Unity shell:
{{bc|$ git clone https://github.com/chenxiaolong/Unity-for-Arch.git}}
+
Where {{Pkg|git}} is required.
+
  
2 Open the README file and build packages according to the order listed. Basically run:
+
1. 'cd' into a directory, where you want to keep the sources, and run:
{{bc|$ cd packagename
+
$ git clone https://github.com/chenxiaolong/Unity-for-Arch.git
$ rm -rvf # Clears out any files from a previous build
+
For this to work, {{Pkg|git}} is required.
 +
 
 +
2 Open the README file and build packages according to the ordered list. Basically run:
 +
{{bc|
 +
$ cd packagename
 +
$ rm -rvf src pkg # 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.
 
$ 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.
 
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. For Systemd users, check [https://wiki.archlinux.org/index.php/Systemd wiki article about Systemd].
+
To use '''lightdm''' to start Unity, follow the same steps mentionned above to install '''lightdm-ubuntu''' and '''lightdm-unity-greeter''' from the [https://github.com/chenxiaolong/Unity-for-Arch-Extra Unity-For-Arch-Extra] repository. '''lightdm''' needs to be added to autostart daemons. For Systemd users, check the [https://wiki.archlinux.org/index.php/Systemd Systemd wiki page].
  
{{Tip|To make this procedure automatic, [https://gist.github.com/3906721 a script] can be used.}}
+
{{Tip|To complete this procedure automatically, [https://gist.github.com/3906721 this script] can be used.}}
  
=== From repository ===
+
=== From repository (recommended) ===
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,
+
{{bc|1=
add
+
[Unity-for-Arch]
{{bc|
+
SigLevel = Optional TrustAll
[unity]
+
Server = http://dl.dropbox.com/u/486665/Repos/Unity-for-Arch/$arch
Server = http://unity.xe-xe.org/$arch
+
  
[unity-extra]
+
[Unity-for-Arch-Extra]
Server = http://unity.xe-xe.org/extra/$arch
+
SigLevel = Optional TrustAll
 +
Server = http://dl.dropbox.com/u/486665/Repos/Unity-for-Arch-Extra/$arch
 
}}
 
}}
 
to {{ic|/etc/pacman.conf}}
 
to {{ic|/etc/pacman.conf}}
Line 50: Line 51:
 
{{bc|
 
{{bc|
 
$ pacman -Suy
 
$ pacman -Suy
$ pacman -S $(pacman -Slq unity)}}
+
$ pacman -S $(pacman -Slq Unity-for-Arch)
 +
}}
  
{{Tip| There are many ubuntu-patched packages that replace original Arch packages.
+
{{Tip|
      Also it is recommended to use freetype2-ubuntu and libxft-ubuntu from AUR.}}
+
* There are many ubuntu-patched packages that replace original Arch packages. It is also recommended to use freetype2-ubuntu from the [[AUR]].
 +
* You may want to view packages ({{ic|yaourt -Sl Unity-for-Arch-Extra}}) from Unity-for-Arch-Extra and install packages from there as you require.
 +
}}
 +
 
 +
{{Warning|
 +
* Remember that you are installing '''unofficial''' packages which are not supported by the Arch Linux developers.
 +
* Almost all packages related to Unity in AUR are outdated. Do not mix those packages with the ones provided from the repository.
 +
}}
 +
 
 +
{{Note|Compiled packages are also available at [http://unity.humbug.in/ unity.humbug.in] and [http://unity.xe-xe.org/ unity.xe-xe.org] however these are mostly outdated.}}
 +
 
 +
=== From testing repository ===
 +
 
 +
There is also a testing repository which provides bleeding edge features and is almost always synchronized to the changes made in Github repository. You may want to use it if you prefer newest features or if you've encountered some package conflicts while using the repositories mentioned above.
 +
 
 +
{{bc|
 +
[Unity-for-Arch]
 +
SigLevel = Optional TrustAll
 +
Server = http://dl.dropbox.com/u/486665/Repos/Unity-for-Arch/$arch
 +
 
 +
[Unity-for-Arch-Extra]
 +
SigLevel = Optional TrustAll
 +
Server = http://dl.dropbox.com/u/486665/Repos/Unity-for-Arch-Extra/$arch
 +
}}
  
{{Warning|Remember you're installing '''unofficial''' packages that are unsupported by the Arch Linux developers.}}
+
== Update ==
{{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.
 
For Unity repository, the update is the same as packages from official repositories.
  
 
Otherwise:
 
Otherwise:
  
1. 'cd' into the 'Unity-for-Arch' directory where it was originally cloned
+
1. change directory into the 'Unity-for-Arch' directory where it was originally cloned
  
 
2. pull all of changes from github repository:
 
2. pull all of changes from github repository:
{{bc|$ git pull}}
+
$ git pull
 
3. Check if packages need to be updated:
 
3. Check if packages need to be updated:
{{bc|$ ./What_can_I_update\?.py}}
+
$ ./What_can_I_update\?.py
4. If any packages need to be updated, just build them like mentioned above in '''from source''' section.
+
4. If any packages need to be updated, just build them like mentioned in [[#From source|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}}
+
{{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}}
 +
 
 +
== Troubleshooting ==
 +
 
 +
=== Unity notifications doesn't work ===
 +
 
 +
Ensure following is installed: {{Pkg|notify-osd}}
 +
 
 +
=== Screensaver locking doesn't work ===
 +
 
 +
Ensure following is installed: {{Pkg|gnome-screensaver}} . For now you need to also create this file
 +
{{hc|/usr/share/dbus-1/services/org.gnome.ScreenSaver.service|2=
 +
[D-BUS Service]
 +
Name=org.gnome.ScreenSaver
 +
Exec=/usr/bin/gnome-screensaver --no-daemon
 +
}}
 +
 
 +
=== online accounts doesn't work ===
 +
 
 +
Ensure following is installed: {{AUR|signon-keyring-extension}} and {{Pkg|gnome-keyring}}. You may also require {{Grp|telepathy}} to get certain accounts to work.
 +
 
 +
=== ssh keys aren't remembered by keyring ===
 +
 
 +
Ensure following is installed: {{Pkg|gnome-keyring}}
 +
 
 +
=== KDE apps aren't integrated into the HUD and menubar ===
 +
 
 +
Ensure following is installed: {{Pkg|appmenu-qt}}
 +
 
 +
=== Files and Folder lens doesn't seem to work or display anything ===
 +
 
 +
Ensure following is installed: {{Pkg|zeitgeist}} and {{Pkg|zeitgeist-datahub}}
 +
 
 +
=== Cannot right click on desktop ===
 +
 
 +
Few things this addresses/fixes:
 +
* Cannot right click on the desktop
 +
* Title bar at top doesn't display 'Arch Linux Desktop'
 +
* Shortcut keys like Super and Alt doesn't work when there are no active windows
 +
 
 +
Simply install {{Pkg|gnome-tweak-tool}} then open '''Tweak Tool''' and check ''Have file manager handle the desktop''. You might want to uncheck ''Home icon visible on desktop'' and ''Trash icon visible on desktop''.
 +
 
 +
=== Unity stops working after update ===
  
==Trouble Shooting==
 
===Unity stops working after update===
 
 
Try to run:
 
Try to run:
{{bc|$ compiz.reset}}
+
$ compiz.reset
 
and Log out and log into the Unity session.
 
and Log out and log into the Unity session.
  
 
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].
 
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===
+
=== Window decoration doesn't work properly ===
 +
 
 
Try to install {{Pkg|gnome-tweak-tool}} to adjust the theme.
 
Try to install {{Pkg|gnome-tweak-tool}} to adjust the theme.
  
===Window decoration can't use certain theme===
+
=== Window decoration can't use certain theme ===
Install metacity-ubuntu instead of metacity.
+
 
 +
Install ''metacity-ubuntu'' instead of {{Pkg|metacity}}. ''metacity-ubuntu'' is now included in [https://github.com/chenxiaolong/Unity-for-Arch Unity-for-Arch] again.
 +
 
 +
=== Some GTK+ themes look ugly after update to GNOMW 3.6 ===
  
===Some gtk themes look ugly after update to Gnome 3.6===
 
 
It also happens for unity default theme light-themes. Put
 
It also happens for unity default theme light-themes. Put
 
{{bc|
 
{{bc|
Line 96: Line 162:
 
in {{ic|.config/gtk3.0/gtk.css}}
 
in {{ic|.config/gtk3.0/gtk.css}}
  
===Newly opened window is always placed at (0,0) on the screen===
+
=== Workspace switcher widget dissappeared ===
'''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.
+
 
 +
Check this setting: go to ''Settings > Appearance > Behaviour > Enable workspaces''.
 +
 
 +
=== Newly opened window is always placed at (0,0) on the screen ===
 +
 
 +
''metacity-ubuntu'' needs to be used instead of ''metacity''.
 +
 
 +
=== Window's titlebar still exists when maximized ===
 +
 
 +
''metacity-ubuntu'' needs to be used instead of ''metacity''.
  
===Window's titlebar still exists when maximized===
+
=== Indicator-messages doesn't work properly===
'''Metacity-ubuntu''' needs to be used instead of {{Pkg|metacity}}.
+
  
==Known Issues==
+
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.
===Ubuntu 12.10 new feature ''Webapps'' doesn't work properly===
+

Revision as of 10:30, 3 November 2013

Summary help replacing me
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.
Related
GNOME

Unity is a powerful desktop and netbook environment that brings consistency and elegance to the Ubuntu experience.

Installation

There are two ways to install Unity on Arch Linux: from the source and from a repository.

From source

All of the PKGBUILDs can be browsed on the Github repository, where Unity-For-Arch provides a minimal working Unity shell, and Unity-For-Arch-Extra provides some additional applications, including lightdm-ubuntu (lightdm with ubuntu patches), light-themes, unity-tweak-tool (a popular ubuntu tool) and some more.

To install a minimal Unity shell:

1. 'cd' into a directory, where you want to keep the sources, and run:

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

For this to work, git is required.

2 Open the README file and build packages according to the ordered list. Basically run:

$ cd packagename
$ rm -rvf src pkg # 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, follow the same steps mentionned above to install lightdm-ubuntu and lightdm-unity-greeter from the Unity-For-Arch-Extra repository. lightdm needs to be added to autostart daemons. For Systemd users, check the Systemd wiki page.

Tip: To complete this procedure automatically, this script can be used.

From repository (recommended)

[Unity-for-Arch]
SigLevel = Optional TrustAll
Server = http://dl.dropbox.com/u/486665/Repos/Unity-for-Arch/$arch

[Unity-for-Arch-Extra]
SigLevel = Optional TrustAll
Server = http://dl.dropbox.com/u/486665/Repos/Unity-for-Arch-Extra/$arch

to /etc/pacman.conf

Run:

$ pacman -Suy
$ pacman -S $(pacman -Slq Unity-for-Arch)
Tip:
  • There are many ubuntu-patched packages that replace original Arch packages. It is also recommended to use freetype2-ubuntu from the AUR.
  • You may want to view packages (yaourt -Sl Unity-for-Arch-Extra) from Unity-for-Arch-Extra and install packages from there as you require.
Warning:
  • Remember that you are installing unofficial packages which are not supported by the Arch Linux developers.
  • Almost all packages related to Unity in AUR are outdated. Do not mix those packages with the ones provided from the repository.
Note: Compiled packages are also available at unity.humbug.in and unity.xe-xe.org however these are mostly outdated.

From testing repository

There is also a testing repository which provides bleeding edge features and is almost always synchronized to the changes made in Github repository. You may want to use it if you prefer newest features or if you've encountered some package conflicts while using the repositories mentioned above.

[Unity-for-Arch]
SigLevel = Optional TrustAll
Server = http://dl.dropbox.com/u/486665/Repos/Unity-for-Arch/$arch

[Unity-for-Arch-Extra] 
SigLevel = Optional TrustAll 
Server = http://dl.dropbox.com/u/486665/Repos/Unity-for-Arch-Extra/$arch

Update

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

Otherwise:

1. change directory 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 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

Troubleshooting

Unity notifications doesn't work

Ensure following is installed: notify-osd

Screensaver locking doesn't work

Ensure following is installed: gnome-screensaver . For now you need to also create this file

/usr/share/dbus-1/services/org.gnome.ScreenSaver.service
[D-BUS Service]
Name=org.gnome.ScreenSaver
Exec=/usr/bin/gnome-screensaver --no-daemon

online accounts doesn't work

Ensure following is installed: signon-keyring-extensionAUR and gnome-keyring. You may also require telepathy to get certain accounts to work.

ssh keys aren't remembered by keyring

Ensure following is installed: gnome-keyring

KDE apps aren't integrated into the HUD and menubar

Ensure following is installed: appmenu-qt

Files and Folder lens doesn't seem to work or display anything

Ensure following is installed: zeitgeist and zeitgeist-datahub

Cannot right click on desktop

Few things this addresses/fixes:

  • Cannot right click on the desktop
  • Title bar at top doesn't display 'Arch Linux Desktop'
  • Shortcut keys like Super and Alt doesn't work when there are no active windows

Simply install gnome-tweak-tool then open Tweak Tool and check Have file manager handle the desktop. You might want to uncheck Home icon visible on desktop and Trash icon visible on desktop.

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. metacity-ubuntu is now included in Unity-for-Arch again.

Some GTK+ themes look ugly after update to GNOMW 3.6

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

GtkLabel {
background-color: @transparent;
}

in .config/gtk3.0/gtk.css

Workspace switcher widget dissappeared

Check this setting: go to Settings > Appearance > Behaviour > Enable workspaces.

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

metacity-ubuntu needs to be used instead of metacity.

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.