Difference between revisions of "Unity"

From ArchWiki
Jump to: navigation, search
m (bad link to italian page)
(Installation: remove mention of unofficial repository as it has been removed, see https://github.com/chenxiaolong/Unity-for-Arch/commit/7aa4694b78dace909d81edac1f28db36215a7928)
 
(161 intermediate revisions by 22 users not shown)
Line 1: Line 1:
 +
[[Category:Desktop environments]]
 +
[[it:Notify OSD]]
 
[[ja:Unity]]
 
[[ja:Unity]]
 
[[zh-CN:Unity]]
 
[[zh-CN:Unity]]
[[Category:Desktop environments]]
+
{{Related articles start}}
{{Article summary start|Summary}}
+
{{Related|Desktop environment}}
{{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.}}
+
{{Related|GNOME}}
{{Article summary heading|Related}}
+
{{Related|Compiz}}
{{Article summary wiki|GNOME}}
+
{{Related articles end}}
{{Article summary end}}
+
[http://unity.ubuntu.com/ Unity] is a desktop shell for the [[GNOME]] desktop environment developed by [http://www.canonical.com/about Canonical Ltd] for [http://www.ubuntu.com Ubuntu]. Unity is implemented as a plugin of the [[Compiz]] [[window manager]].
[http://unity.ubuntu.com/ Unity] is a powerful desktop and netbook environment that brings consistency and elegance to the Ubuntu experience.
+
 
 +
Not to be confused with [[Unity3D]].
  
 
== Installation ==
 
== Installation ==
There are two ways to install Unity on Arch Linux: from the source and from a repository.
 
  
=== From source ===
+
{{Warning|Installing Unity means that many official packages will be replaced with patched Ubuntu versions. Be careful to check the resulting package conflicts.}}
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.
+
  
To install a minimal Unity shell:
+
PKGBUILDs for the Unity desktop are available on [https://github.com/chenxiaolong/Unity-for-Arch GitHub], 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 {{AUR|lightdm-ubuntu}} ([[LightDM]] with Ubuntu patches), {{AUR|ubuntu-themes}}, ''unity-tweak-tool'' (a popular Unity configuration tool) and more.
  
1. 'cd' into a directory, where you want to keep the sources, and run:
+
[[Install]] {{pkg|git}} and navigate to a directory in which the sources can be built, then do:
{{bc|$ git clone https://github.com/chenxiaolong/Unity-for-Arch.git}}
+
$ git clone https://github.com/chenxiaolong/Unity-for-Arch.git
For this to work, {{Pkg|git}} is required.
+
  
2 Open the README file and build packages according to the ordered list. Basically run:
+
Open the {{ic|README}} and build the packages according to the ordered list (see: [[Makepkg#Usage]]):
{{bc|$ cd packagename
+
{{bc|
$ rm -rvf src pkg # Clears out any files from a previous build
+
$ cd ''<package name>''
$ 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
 
}}
 
}}
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 [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 use [[LightDM]], follow the same steps mentioned above to install {{AUR|lightdm-ubuntu}} and {{AUR|lightdm-unity-greeter}} from the [https://github.com/chenxiaolong/Unity-for-Arch-Extra Unity-For-Arch-Extra] repository.}}
  
{{Tip|To complete this procedure automatically, [https://gist.github.com/3906721 this script] can be used.}}
+
==== Updating ====
  
=== From repository ===
+
Navigate to the original directory and pull all changes:
Compiled packages are also available at [http://unity.humbug.in/ unity.humbug.in] and [http://unity.xe-xe.org/ unity.xe-xe.org].
+
$ git pull
Take '''unity.xe-xe.org''' as an example, to install the packages,
+
add
+
{{bc|
+
[unity]
+
Server &#61; http://unity.xe-xe.org/$arch
+
  
[unity-extra]
+
Then, check, if any packages need updating:
Server &#61; http://unity.xe-xe.org/extra/$arch
+
$ ./"What_can_I_update?.py"
}}
+
to {{ic|/etc/pacman.conf}}
+
  
Run:
+
{{Note|Sometimes, if a certain crucial package is updated, those depending on it will also need to be recompiled. For example, if ''unity'' is updated, ''nux'' might need to be re-compiled as well.}}
{{bc|
+
$ pacman -Suy
+
$ pacman -S $(pacman -Slq unity)}}
+
  
{{Tip| There are many ubuntu-patched packages that replace original Arch packages.
+
=== Standard and extended functionality ===
      It is also recommended to use freetype2-ubuntu from '''AUR'''.}}
+
  
{{Warning|Remember that you are installing '''unofficial''' packages which are not supported by the Arch Linux developers.}}
+
The following section lists packages that, whilst not required for the Unity shell to function, do serve to enhance the user experience:
{{Warning|Almost all packages related to Unity in '''AUR''' are outdated. Do not mix those packages with the ones provided from the repository.}}
+
  
=== From testing repository ===
+
{| class="wikitable"
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.
+
!Functionality
 +
!Package(s)
 +
|-
 +
|Notifications
 +
|{{Pkg|notify-osd}}
 +
|-
 +
|Screen locking
 +
|''gnome-screensaver-ubuntu''
 +
|-
 +
|Online accounts
 +
|{{AUR|signon-keyring-extension}}{{Broken package link|{{aur-mirror|signon-keyring-extension}}}}, {{Pkg|gnome-keyring}}, {{Grp|telepathy}}
 +
|-
 +
|SSH
 +
|{{Pkg|gnome-keyring}}
 +
|-
 +
|HUD & menubar integration
 +
|{{AUR|appmenu-qt}}, {{AUR|firefox-ubuntu}}, {{AUR|thunderbird-ubuntu}}
 +
|-
 +
|File and Folder lens
 +
|''zeitgeist-ubuntu''
 +
|-
 +
|Configuration
 +
|{{Pkg|gnome-tweak-tool}}, ''unity-tweak-tool''
 +
|-
 +
|Pidgin integration
 +
|''pidgin-indicator''
 +
|}
  
{{bc|
+
== Tips and tricks ==
[Unity-for-Arch]
+
SigLevel &#61; Optional TrustAll
+
Server &#61; http://dl.dropbox.com/u/486665/Repos/Unity-for-Arch/$arch
+
  
[Unity-for-Arch-Extra]
+
=== Customize LightDM wallpaper and appearance ===
SigLevel &#61; Optional TrustAll
+
Server &#61; http://dl.dropbox.com/u/486665/Repos/Unity-for-Arch-Extra/$arch
+
}}
+
  
==Update==
+
See [[LightDM#Changing background images/colors]].
For Unity repository, the update is the same as packages from official repositories.
+
  
Otherwise:
+
=== Autostart programs on login ===
  
1. 'cd' into the 'Unity-for-Arch' directory where it was originally cloned
+
See [[GNOME#Startup applications]].
  
2. pull all of changes from github repository:
+
== Troubleshooting ==
{{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.
+
  
{{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}}
+
=== Cannot right click on desktop ===
  
==Troubleshooting==
+
Other issues that this fix addresses:
 +
* Title bar at the top doesn't display ''Arch Linux Desktop''
 +
* Shortcut keys, such as {{ic|Super}} and {{ic|Alt}} do not work when there are no active windows
  
=== Unity notifications doesn't work ===
+
Execute the following: {{ic|gsettings set org.gnome.desktop.background show-desktop-icons true}}
Ensure following is installed: {{Pkg|notify-osd}}
+
  
=== Screensaver locking doesn't work ===
+
=== Unity stops working after update ===
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|[D-BUS Service]
+
Name&#61;org.gnome.ScreenSaver
+
Exec&#61;/usr/bin/gnome-screensaver --no-daemon}}
+
  
=== online accounts doesn't work ===
+
Run {{ic|compiz.reset}} and then log out and log back into the Unity session.
Ensure following is installed: {{Pkg|signon-keyring-extension}} and {{Pkg|gnome-keyring}}. You may also require {{Pkg|telepathy}} to get certain accounts to work.
+
  
=== ssh keys aren't remembered by keyring ===
+
If Unity still is not working, report an issue on [https://github.com/chenxiaolong/Unity-for-Arch/issues?state=open github] or discuss it in this [https://bbs.archlinux.org/viewtopic.php?id=125423&p=1 forum thread] on the Arch Linux Forums.
Ensure following is installed: {{Pkg|gnome-keyring}}
+
  
=== KDE apps aren't integrated into the HUD and menubar ===
+
=== Some GTK+ themes look ugly since GNOME 3.6 ===
Ensure following is installed: {{Pkg|appmenu-qt}}
+
  
=== Files and Folder lens doesn't seem to work or display anything ===
+
This affects the unity default theme and light themes. Use:
Ensure following is installed: {{Pkg|zeitgeist}} and {{Pkg|zeitgeist-datahub}}
+
  
=== Can't right click on desktop ===
+
{{hc|~/.config/gtk3.0/gtk.css|
Few things this addresses/fixes:
+
GtkLabel {
* Can't right click on the desktop
+
  background-color: @transparent;
* 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'''.
+
=== Workspace switcher widget disappeared ===
  
===Unity stops working after update===
+
In ''ccsm'' (the Compiz Configuration Settings Manager), ensure that the following option is checked: ''Settings > Appearance > Behaviour > Enable workspaces''.
Try to run:
+
{{bc|$ compiz.reset}}
+
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].
+
=== No skype or other applications appear in indicator tray ===
  
===Window decoration doesn't work properly===
+
Using Skype as an example;
Try to install {{Pkg|gnome-tweak-tool}} to adjust the theme.
+
Append ''Skype'' to the {{ic|systray-whitelist}} list in {{ic|com.canonical.Unity.Panel}} using {{Pkg|dconf-editor}} or the gsettings command.
 +
Reboot or logout afterwards.
  
===Window decoration can't use certain theme===
+
Alternatively, replace the contents of {{ic|systray-whitelist}} with ''all''.
Install metacity-ubuntu instead of metacity.
+
  
===Some gtk themes look ugly after update to Gnome 3.6===
+
== Known issues ==
It also happens for unity default theme light-themes. Put
+
 
{{bc|
+
See [https://github.com/chenxiaolong/Unity-for-Arch/issues Github Issues] for known problems.
GtkLabel {
+
 
background-color: @transparent;
+
=== Indicator-messages does not work properly ===
}
+
}}
+
in {{ic|.config/gtk3.0/gtk.css}}
+
  
===Workspace switcher widget dissappeared===
+
Pidgin and a number of other applications can not be integrated into ''indicator-messages'' due to its API changes. Users will have to wait for upstream to release software updates for the affected applications.
Check this setting: Go to settings, Appearance, Behaviour, Enable workspaces
+
  
===Newly opened window is always placed at (0,0) on the screen===
+
=== Pidgin-libnotify-ubuntu has unresolvable dependency ===
'''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===
+
As of February 2015, the required package ''perlxml'' is unavailable, try ''pidgin-indicator''.
'''Metacity-ubuntu''' needs to be used instead of {{Pkg|metacity}}.
+
  
===''Indicator-messages'' doesn't work properly===
+
== See also ==
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==
+
* [http://unity.ubuntu.com/ Unity home page]
 +
* [https://launchpad.net/unity Unity in Launchpad]

Latest revision as of 11:01, 15 August 2016

Related articles

Unity is a desktop shell for the GNOME desktop environment developed by Canonical Ltd for Ubuntu. Unity is implemented as a plugin of the Compiz window manager.

Not to be confused with Unity3D.

Installation

Warning: Installing Unity means that many official packages will be replaced with patched Ubuntu versions. Be careful to check the resulting package conflicts.

PKGBUILDs for the Unity desktop are available on GitHub, where Unity-For-Arch provides a minimal working Unity shell, and Unity-For-Arch-Extra provides some additional applications, including lightdm-ubuntuAUR (LightDM with Ubuntu patches), ubuntu-themesAUR, unity-tweak-tool (a popular Unity configuration tool) and more.

Install git and navigate to a directory in which the sources can be built, then do:

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

Open the README and build the packages according to the ordered list (see: Makepkg#Usage):

$ cd <package name>
$ makepkg -sci
Tip: To use LightDM, follow the same steps mentioned above to install lightdm-ubuntuAUR and lightdm-unity-greeterAUR from the Unity-For-Arch-Extra repository.

Updating

Navigate to the original directory and pull all changes:

$ git pull

Then, check, if any packages need updating:

$ ./"What_can_I_update?.py"
Note: Sometimes, if a certain crucial package is updated, those depending on it will also need to be recompiled. For example, if unity is updated, nux might need to be re-compiled as well.

Standard and extended functionality

The following section lists packages that, whilst not required for the Unity shell to function, do serve to enhance the user experience:

Functionality Package(s)
Notifications notify-osd
Screen locking gnome-screensaver-ubuntu
Online accounts signon-keyring-extensionAUR[broken link: archived in aur-mirror], gnome-keyring, telepathy
SSH gnome-keyring
HUD & menubar integration appmenu-qtAUR, firefox-ubuntuAUR, thunderbird-ubuntuAUR
File and Folder lens zeitgeist-ubuntu
Configuration gnome-tweak-tool, unity-tweak-tool
Pidgin integration pidgin-indicator

Tips and tricks

Customize LightDM wallpaper and appearance

See LightDM#Changing background images/colors.

Autostart programs on login

See GNOME#Startup applications.

Troubleshooting

Cannot right click on desktop

Other issues that this fix addresses:

  • Title bar at the top doesn't display Arch Linux Desktop
  • Shortcut keys, such as Super and Alt do not work when there are no active windows

Execute the following: gsettings set org.gnome.desktop.background show-desktop-icons true

Unity stops working after update

Run compiz.reset and then log out and log back into the Unity session.

If Unity still is not working, report an issue on github or discuss it in this forum thread on the Arch Linux Forums.

Some GTK+ themes look ugly since GNOME 3.6

This affects the unity default theme and light themes. Use:

~/.config/gtk3.0/gtk.css
GtkLabel {
  background-color: @transparent;
}

Workspace switcher widget disappeared

In ccsm (the Compiz Configuration Settings Manager), ensure that the following option is checked: Settings > Appearance > Behaviour > Enable workspaces.

No skype or other applications appear in indicator tray

Using Skype as an example; Append Skype to the systray-whitelist list in com.canonical.Unity.Panel using dconf-editor or the gsettings command. Reboot or logout afterwards.

Alternatively, replace the contents of systray-whitelist with all.

Known issues

See Github Issues for known problems.

Indicator-messages does not work properly

Pidgin and a number of other applications can not be integrated into indicator-messages due to its API changes. Users will have to wait for upstream to release software updates for the affected applications.

Pidgin-libnotify-ubuntu has unresolvable dependency

As of February 2015, the required package perlxml is unavailable, try pidgin-indicator.

See also