Difference between revisions of "MATE"

From ArchWiki
Jump to: navigation, search
(Installation)
m (Starting: startx instead of xinit (my mistake))
(48 intermediate revisions by 6 users not shown)
Line 6: Line 6:
 
[[ru:MATE]]
 
[[ru:MATE]]
 
[[zh-CN:MATE]]
 
[[zh-CN:MATE]]
{{Article summary start}}
+
{{Related articles start}}
{{Article summary text|What is MATE and how to get it.}}
+
{{Related|GNOME}}
{{Article summary heading|Required software}}
+
{{Related|Cinnamon}}
{{Article summary link|MATE|http://mate-desktop.org}}
+
{{Related|Desktop Environment}}
{{Article summary heading|Related}}
+
{{Related|Display Manager}}
{{Article summary wiki|GNOME}}
+
{{Related articles end}}
{{Article summary end}}
+
  
The '''MATE Desktop Environment''' is a fork of GNOME 2 that aims to provide an attractive and intuitive desktop to Linux users using traditional layouts and methods. For more information, see [https://bbs.archlinux.org/viewtopic.php?id=121162 this forum thread.]
+
From [http://mate-desktop.org/ MATE homepage]:
  
== Obtaining ==
+
:''The MATE Desktop Environment is a fork of GNOME 2. It provides an intuitive and attractive desktop environment using traditional metaphors for Linux and other Unix-like operating systems. MATE is [https://github.com/mate-desktop under active development] to add support for new technologies while preserving a traditional desktop experience.''
 
+
MATE is currently developed on [https://github.com/mate-desktop GitHub].
+
Stable packages with release-based version numbering are hosted on http://repo.mate-desktop.org/archlinux/.
+
  
 
== Installation ==
 
== Installation ==
  
To install the stable version of MATE via [[pacman]] add the following lines to your {{ic|/etc/pacman.conf}}:
+
MATE is available in the [[official repositories]] and can be [[pacman|installed]] with one of the following:
 +
*The {{Pkg|mate-panel}} package provides a minimal desktop shell.
 +
*The {{Grp|mate}} group contains the core desktop environment required for the standard MATE experience.
 +
*The {{Grp|mate-extra}} group contains additional utilities and applications that integrate well with the MATE desktop. Installing just the {{Grp|mate-extra}} group will not pull in the whole {{Grp|mate}} group via dependencies. If you want to install all MATE packages then you will need to explicitly install both groups.
 +
*The {{Pkg|mate-netbook}} package provides a MATE panel applet that might be useful to owners of small screen devices, such as a Netbook. The applet will automatically maximize all windows and provides an application switcher applet. It is not part of the '''mate''' or '''mate-extra''' groups but can be installed separately if desired.
 +
 
 +
== Starting ==
 +
 
 +
MATE can be started via a display manager or manually.
 +
 
 +
''' Graphical log-in '''
 +
 
 +
Just select MATE from the Sessions list of your favorite [[Display Manager]]. The MATE team recommends [[LightDM]] as the display manager with the GTK+ (2) greeter, which can be installed with the {{Pkg|lightdm-gtk2-greeter}} package.
 +
 
 +
''' Manually '''
  
{{bc|<nowiki>
+
If you prefer to start MATE manually from the console, add the following line to your {{ic|~/.xinitrc}} file:
[mate]
+
{{hc|~/.xinitrc|<nowiki>
SigLevel = Optional TrustAll
+
exec mate-session
Server = http://repo.mate-desktop.org/archlinux/$arch
+
 
</nowiki>}}
 
</nowiki>}}
  
Run
+
Then MATE can be launched by typing {{ic|startx}}.
  
# pacman -Syyu
+
See [[xinitrc]] for details, such as preserving the logind session.
  
and then
+
== GNOME 2 Applications ==
  
# pacman -S mate
+
MATE is largely composed of GNOME 2 applications and utilities, forked and renamed to avoid conflicting with GNOME 3. Below is a list of common GNOME applications which have been renamed in MATE.
  
It might also be of interest to people to install certain packages from the '''mate-extra''' group (most being counterparts to packages in the {{Grp|gnome-extra}} group):
+
* Alacarte is renamed '''Mozo'''.
   
+
* Nautilus is renamed '''Caja'''.
# pacman -S mate-extra
+
* Metacity is renamed '''Marco'''.
 +
* Gedit is renamed '''Pluma'''.
 +
* Eye of GNOME is renamed '''Eye of MATE'''.
 +
* Evince is renamed '''Atril'''.
 +
* File Roller is renamed '''Engrampa'''.
 +
* GNOME Terminal is renamed '''MATE Terminal'''.
  
== Configuration ==
+
Other applications and core components prefixed with GNOME (such as GNOME Panel, GNOME Menus etc) have had the prefix changed to MATE so they become MATE Panel, MATE Menus etc.
  
=== Lock screen & default background image ===
+
=== Network Management ===
  
Edit {{ic|/usr/share/glib-2.0/schemas/org.mate.background.gschema.xml}} under root and change the default in element, {{ic|<key type&#61;"s" name&#61;"picture-filename">}}. For example:
+
It is recommended that you use [[Network Manager]] for managing networks in MATE. Please see the wiki page for more details on installing and configuring it.
  
{{bc|
+
== Tips & Tricks ==
    <key type&#61;"s" name&#61;"picture-filename">
+
      '''<default>'/usr/share/archlinux/wallpaper/archlinux-underground.jpg'</default>'''
+
      <summary>Picture Filename</summary> 
+
      <description>File to use for the background image.</description>
+
    </key>
+
}}
+
  
The original image used is {{ic|/usr/share/backgrounds/mate/desktop/Stripes.png}}.
+
=== Upgrading from 1.4 to 1.6 ===
  
Then, re-compile the schemas:
+
MATE 1.6 migrated from {{ic|gconf}} to {{ic|gsettings}}. If you are updating from an MATE 1.4 you might end up with an empty panel. To resolve the issue reset the panel configuration to its defaults using
  
  # glib-compile-schemas /usr/share/glib-2.0/schemas/
+
  # mate-panel --reset
  
Restart your X session for the change to effect.
+
Then use...
  
== Starting ==
+
# mate-conf-import
  
=== Manually ===
+
to restore most of your old settings. After upgrading from MATE 1.4 to MATE 1.6 you should remove the some of the old MATE 1.4 libraries that are not required by MATE 1.6, this can also improve the start-up time of MATE.
  
In order to start MATE manually, you must add
+
# pacman -R ffmpegthumbnailer-caja libmate libmatecanvas libmatecomponent libmatecomponentui libmatenotify libmateui mate-conf mate-conf-editor mate-corba mate-mime-data mate-vfs python-corba python-mate python-mate-desktop
  
exec mate-session
+
You can also use:
  
to your {{ic|[[xinitrc|~/.xinitrc]]}} file and then run
+
# pacman -R $(pacman -Qtdq)
  
$ startx
+
to remove any orphaned packages. Packages which are not orphaned are probably still required.
  
{{note|See [[xinitrc]] for details, such as preserving the logind session.}}
+
{{note|The command to remove orphaned packages will need to be executed multiple times to ensure that all packages are cleaned up.}}
 +
{{warning|When removing the deprecated libraries take care to not remove other important packages as well.}}
  
=== Automatically at boot time ===
+
=== Bluetooth applet ===
  
See [[Display Manager]] and [[Start X at Boot]] for details.
+
The MATE bluetooth applet currently requires [[Bluez4]] which has been deprecated. If you need a bluetooth applet in MATE you will have to install {{AUR|mate-bluetooth}} and {{AUR|bluez4}} from the [[AUR]]. If you want to enable Personal File Sharing over Bluetooth you will also need to install {{AUR|mate-user-share-bluez4}} because the packaged version of {{AUR|mate-user-share}} has had the bluetooth component removed.
  
==== GDM-old ====
+
=== Show or hide desktop icons ===
  
If you are using {{AUR|gdm-old}} from the AUR, simply select the MATE session from the Sessions list. For your first time launching MATE, make sure to click "Just this session" when prompted.
+
By default, MATE shows multiple icons on the desktop: The content of your desktop directory, computer, home and network directories, the trash and mounted drives. You can show or hide them individually or all at once using dconf.
  
==== [[LightDM]], [[GDM]], [[LXDM]], MDM ====
+
==== Hide individual icons ====
  
Just select MATE from the Sessions list. Works well.
+
  $ dconf write /org/mate/caja/desktop/computer-icon-visible false
  
==== [[KDM]] ====
+
$ dconf write /org/mate/caja/desktop/home-icon-visible false
  
In order to be able to launch MATE from [[KDM]], the [[KDE]] Display Manager, you have to edit the KDM configuration.
+
$ dconf write /org/mate/caja/desktop/network-icon-visible false
As root, edit the <code>/usr/share/config/kdm/kdmrc</code> configuration file. Find the '''SessionsDir''' parameter and add <code>/usr/share/xsessions</code> to the list.
+
It should then look like this:
+
  
  SessionsDirs=/usr/share/config/kdm/sessions,/usr/share/apps/kdm/sessions,/usr/share/xsessions
+
  $ dconf write /org/mate/caja/desktop/trash-icon-visible false
  
Restart KDM and select the "MATE session" from the list.
+
$ dconf write /org/mate/caja/desktop/volumes-visible false
  
==== [[SLIM]] ====
+
Replace "false" with "true" for the icons to reappear.
 +
 
 +
==== Hide all desktop icons ====
 +
 
 +
$ dconf write /org/mate/desktop/background/show-desktop-icons false
 +
 
 +
=== Use a different window manager with MATE ===
 +
 
 +
The default window manager in MATE is called ''marco'', a fork of the GNOME 2 window manager {{pkg|metacity}}. You can replace ''marco'' with another window manager via a number of different methods:
 +
 
 +
* The easiest way to change the window manager is to autostart it using {{ic|mate-session-properties}}. Open the ''System'' menu, navigate to the ''Preferences'' menu and click on '''Startup Applications'''. In the dialog click '''Add.''' Enter a name and comment in the name and comment sections and in the command section add a command of the following syntax: ''"name of window manager"'' ''"--replace"''
 +
 
 +
For example: for openbox you would use the command {{ic|openbox --replace}}.
 +
 
 +
Log out and log in again and ''marco'' should be replaced by the window manager of your choice. To revert to ''marco'' simply delete the entry you created in '''Startup Applications'''.
 +
 
 +
* Alternatively you can specify the desired window manager in dconf:
 +
 
 +
$ dconf write /org/mate/desktop/session/required-components/windowmanager "'mywindowmanager'"
 +
 
 +
replace "mywindowmanager" with the name of the window manager of your choice e.g. ''openbox'' or ''metacity''.
 +
 
 +
* Killing MATE's window manager (marco) and starting your prefered one (this method is not recommended!)
 +
 
 +
Edit your .xinitrc as follow:
  
Just fоllow the [[SLIM]] tutorial to know how to install and how to copy and use the .xinitrc file. And just add this line to the .xinitrc file :
 
 
  exec mate-session
 
  exec mate-session
 +
killall marco
 +
exec mywindowmanager
  
== Applications ==
+
and replace "mywindowmanager" with the name of the window manager of your choice.
  
It is important to note that many GNOME core applications are rebranded for MATE, as per the licensing terms. Here is a simple Rosetta Stone of GNOME -> MATE applications.  
+
{{note|This method is relevant only for those who start the MATE session using the {{ic|startx}} command. Users of display managers will need to use one of the previous two methods.}}
  
* Nautilus is renamed '''Caja'''.
+
=== Change window decoration button order ===
* Metacity is renamed '''Marco'''.
+
* Gconf is renamed '''Mate-conf'''.
+
* Gedit is renamed '''Pluma'''.
+
* Eye of GNOME is renamed '''Eye of MATE'''.
+
* Evince is renamed  '''Atril'''.
+
* File Roller is renamed '''Engrampa'''.
+
* GNOME Terminal is renamed '''MATE Terminal'''.
+
  
Other applications and core components prefixed with GNOME (such as GNOME Panel, GNOME Menus etc) have simply had the prefix renamed "MATE" and become MATE Panel and MATE Menus.
+
You can change the button using dconf. The key is in org.mate.marco.general.button-layout. Use the graphical dconf-editor or the dconf command line tool to change it:
  
Not all of the GNOME extra applications (built for GTK2) have been forked yet. The following extra applications '''are''' available in MATE:
+
$ dconf write /org/mate/marco/general/button-layout "'close,maximize,minimize:'"
  
* Totem (mate-video-player)
+
and put '''menu''', '''close''', '''minimize''' and '''maximize''' in your desired order, separated by commas. The colon is the window title (it is necessary for the changes to apply).
* GNOME Panel applets (mate-applets)
+
  
If you are using NetworkManager to connect to the internet, you can install {{AUR|network-manager-applet-gtk2}} from the AUR for a GTK2 nm-applet. You will need to modify the PKGBUILD to depend on mate-bluetooth rather than gnome-bluetooth to prevent a recursive dependency on gnome-desktop.
+
=== Change window placement of new windows ===
  
== Known issues ==
+
By default, new windows are placed in the top-left corner. To center new windows on creation, edit the org.mate.marco.general.center-new-windows key:
  
=== Qt applications are not styled ===
+
$ dconf write /org/mate/marco/general/center-new-windows true
  
You may find that Qt4 applications are not inheriting the GTK2 theme like they should. See [[Uniform Look for Qt and GTK Applications]] for details.
+
=== Lock screen & default background image ===
  
{{Merge|Uniform Look for Qt and GTK Applications|The icon theme issue should be merged there.}}
+
You can change the background of the lock screen by creating the following file:
 +
{{hc|/usr/share/glib-2.0/schemas/mate-background.gschema.override|2=
  
To fix the GUI style run:
+
[org.mate.background]
$ qtconfig-qt4
+
picture-filename='/path/to/the/background.jpg'}}
And change it to GTK+. To fix the icon theme (in particular the cursor), you should edit your {{ic|~/.icons/default/index.theme}} to include:
+
[Icon Theme]
+
Inherits=mate
+
  
=== Evolution email not working ===
+
Then, re-compile the schemas:
 +
# glib-compile-schemas /usr/share/glib-2.0/schemas/
  
Please see [[Evolution#Using_Evolution_Outside_Of_Gnome]].
+
Finally, restart your X session for the change to effect.
  
=== GTK3 applications not properly styled ===
+
=== Styling Qt applications ===
  
If you notice that applications such as [[Rhythmbox]] do not have styling applied to them, try [https://aur.archlinux.org/packages/clearlooks-phenix-gtk-theme-git/ Clearlooks Phenix] theme.
+
To make Qt4 applications inherit the MATE theme, do the following:
  
== Troubleshooting ==
+
* Navigate to ''System -> Preferences -> Qt4 Config'' or execute {{ic|qtconfig-qt4}} from a shell.
 +
* Change '''GUI Style''' to {{ic|GTK+}}.
 +
* ''File --> Save''.
  
=== User switch ===
+
See [[Uniform Look for Qt and GTK Applications]] for more details.
  
You must use a [[Display Manager]] with support to switch sessions. [[GDM]], [[LightDM]] and MDM are supported without further configuration.
+
=== Consistent cursor theme ===
  
=== Empty panel after updating from 1.4 to 1.6 ===
+
To ensure a consistent cursor theme edit {{ic|~/.icons/default/index.theme}} to include:
  
Starting with mate 1.6 several parts, including mate-panel, moved from gconf to gsettings. If you are updating from an older version you might end up with an empty panel. To resolve the issue reset the panel configuration to its defaults using "mate-panel --reset". Afterwards you can use [http://git.mate-desktop.org/mate-desktop/plain/mate-conf/mate-conf-import mate-conf-import] to restore most of your old settings.
+
[Icon Theme]
 +
Inherits=mate
  
 
== See also ==
 
== See also ==
  
[http://mate-desktop.org MATE official homepage]
+
* [http://mate-desktop.org MATE homepage]
 
+
* [http://wiki.mate-desktop.org/archlinux_custom_repo MATE wiki for Arch Linux]
'''Arch Linux Forums'''
+
* [http://mate-desktop.org/gallery/1.6/ ''MATE desktop screenshots'']
* [https://bbs.archlinux.org/viewtopic.php?pid=1018647 ''The MATE Desktop Environment''] - A general discussion about MATE
+
* [https://bbs.archlinux.org/viewtopic.php?pid=1018647 ''The MATE Desktop Environment''] - Arch Linux forum discussion about MATE
* [https://bbs.archlinux.org/viewtopic.php?id=139877 ''MATE desktop screenshots'']
+

Revision as of 15:17, 20 January 2014

From MATE homepage:

The MATE Desktop Environment is a fork of GNOME 2. It provides an intuitive and attractive desktop environment using traditional metaphors for Linux and other Unix-like operating systems. MATE is under active development to add support for new technologies while preserving a traditional desktop experience.

Installation

MATE is available in the official repositories and can be installed with one of the following:

  • The mate-panel package provides a minimal desktop shell.
  • The mate group contains the core desktop environment required for the standard MATE experience.
  • The mate-extra group contains additional utilities and applications that integrate well with the MATE desktop. Installing just the mate-extra group will not pull in the whole mate group via dependencies. If you want to install all MATE packages then you will need to explicitly install both groups.
  • The mate-netbook package provides a MATE panel applet that might be useful to owners of small screen devices, such as a Netbook. The applet will automatically maximize all windows and provides an application switcher applet. It is not part of the mate or mate-extra groups but can be installed separately if desired.

Starting

MATE can be started via a display manager or manually.

Graphical log-in

Just select MATE from the Sessions list of your favorite Display Manager. The MATE team recommends LightDM as the display manager with the GTK+ (2) greeter, which can be installed with the lightdm-gtk2-greeter package.

Manually

If you prefer to start MATE manually from the console, add the following line to your ~/.xinitrc file:

~/.xinitrc
exec mate-session

Then MATE can be launched by typing startx.

See xinitrc for details, such as preserving the logind session.

GNOME 2 Applications

MATE is largely composed of GNOME 2 applications and utilities, forked and renamed to avoid conflicting with GNOME 3. Below is a list of common GNOME applications which have been renamed in MATE.

  • Alacarte is renamed Mozo.
  • Nautilus is renamed Caja.
  • Metacity is renamed Marco.
  • Gedit is renamed Pluma.
  • Eye of GNOME is renamed Eye of MATE.
  • Evince is renamed Atril.
  • File Roller is renamed Engrampa.
  • GNOME Terminal is renamed MATE Terminal.

Other applications and core components prefixed with GNOME (such as GNOME Panel, GNOME Menus etc) have had the prefix changed to MATE so they become MATE Panel, MATE Menus etc.

Network Management

It is recommended that you use Network Manager for managing networks in MATE. Please see the wiki page for more details on installing and configuring it.

Tips & Tricks

Upgrading from 1.4 to 1.6

MATE 1.6 migrated from gconf to gsettings. If you are updating from an MATE 1.4 you might end up with an empty panel. To resolve the issue reset the panel configuration to its defaults using

# mate-panel --reset

Then use...

# mate-conf-import

to restore most of your old settings. After upgrading from MATE 1.4 to MATE 1.6 you should remove the some of the old MATE 1.4 libraries that are not required by MATE 1.6, this can also improve the start-up time of MATE.

# pacman -R ffmpegthumbnailer-caja libmate libmatecanvas libmatecomponent libmatecomponentui libmatenotify libmateui mate-conf mate-conf-editor mate-corba mate-mime-data mate-vfs python-corba python-mate python-mate-desktop

You can also use:

# pacman -R $(pacman -Qtdq)

to remove any orphaned packages. Packages which are not orphaned are probably still required.

Note: The command to remove orphaned packages will need to be executed multiple times to ensure that all packages are cleaned up.
Warning: When removing the deprecated libraries take care to not remove other important packages as well.

Bluetooth applet

The MATE bluetooth applet currently requires Bluez4 which has been deprecated. If you need a bluetooth applet in MATE you will have to install mate-bluetoothAUR and bluez4AUR from the AUR. If you want to enable Personal File Sharing over Bluetooth you will also need to install mate-user-share-bluez4AUR because the packaged version of mate-user-shareAUR has had the bluetooth component removed.

Show or hide desktop icons

By default, MATE shows multiple icons on the desktop: The content of your desktop directory, computer, home and network directories, the trash and mounted drives. You can show or hide them individually or all at once using dconf.

Hide individual icons

$ dconf write /org/mate/caja/desktop/computer-icon-visible false
$ dconf write /org/mate/caja/desktop/home-icon-visible false
$ dconf write /org/mate/caja/desktop/network-icon-visible false
$ dconf write /org/mate/caja/desktop/trash-icon-visible false
$ dconf write /org/mate/caja/desktop/volumes-visible false

Replace "false" with "true" for the icons to reappear.

Hide all desktop icons

$ dconf write /org/mate/desktop/background/show-desktop-icons false

Use a different window manager with MATE

The default window manager in MATE is called marco, a fork of the GNOME 2 window manager metacity. You can replace marco with another window manager via a number of different methods:

  • The easiest way to change the window manager is to autostart it using mate-session-properties. Open the System menu, navigate to the Preferences menu and click on Startup Applications. In the dialog click Add. Enter a name and comment in the name and comment sections and in the command section add a command of the following syntax: "name of window manager" "--replace"

For example: for openbox you would use the command openbox --replace.

Log out and log in again and marco should be replaced by the window manager of your choice. To revert to marco simply delete the entry you created in Startup Applications.

  • Alternatively you can specify the desired window manager in dconf:
$ dconf write /org/mate/desktop/session/required-components/windowmanager "'mywindowmanager'"

replace "mywindowmanager" with the name of the window manager of your choice e.g. openbox or metacity.

  • Killing MATE's window manager (marco) and starting your prefered one (this method is not recommended!)

Edit your .xinitrc as follow:

exec mate-session
killall marco
exec mywindowmanager

and replace "mywindowmanager" with the name of the window manager of your choice.

Note: This method is relevant only for those who start the MATE session using the startx command. Users of display managers will need to use one of the previous two methods.

Change window decoration button order

You can change the button using dconf. The key is in org.mate.marco.general.button-layout. Use the graphical dconf-editor or the dconf command line tool to change it:

$ dconf write /org/mate/marco/general/button-layout "'close,maximize,minimize:'"

and put menu, close, minimize and maximize in your desired order, separated by commas. The colon is the window title (it is necessary for the changes to apply).

Change window placement of new windows

By default, new windows are placed in the top-left corner. To center new windows on creation, edit the org.mate.marco.general.center-new-windows key:

$ dconf write /org/mate/marco/general/center-new-windows true

Lock screen & default background image

You can change the background of the lock screen by creating the following file:

/usr/share/glib-2.0/schemas/mate-background.gschema.override
[org.mate.background]
picture-filename='/path/to/the/background.jpg'

Then, re-compile the schemas:

# glib-compile-schemas /usr/share/glib-2.0/schemas/

Finally, restart your X session for the change to effect.

Styling Qt applications

To make Qt4 applications inherit the MATE theme, do the following:

* Navigate to System -> Preferences -> Qt4 Config or execute qtconfig-qt4 from a shell.
* Change GUI Style to GTK+.
* File --> Save.

See Uniform Look for Qt and GTK Applications for more details.

Consistent cursor theme

To ensure a consistent cursor theme edit ~/.icons/default/index.theme to include:

[Icon Theme]
Inherits=mate

See also