Unstuck by request of a developer, as it is now obsolete. -- desultory, 2015/04-28
Installing Mate from the MATE overlay
Updated: To include or remove some items I missed or that have changed sense I first installed MATE. I have installed MATE on three of my systems. All of these systems required me to use slightly different approaches to complete the process. It wasn't tough but it wasn't without it's challenges either. If anyone knows of ways to improve this How-To please PM me so I can make any necessary changes.
Caution: This How-To involves using the --depclean option of emerge. Don't randomly run the command without inspecting every package prior to removing any package or serious breakage may occur. Use this How-To at your own risk.
First install layman if you don't already have it installed. Add to "/etc/portage/package.use"
Code: Select all
app-portage/layman subversion git
dev-vcs/subversionCode: Select all
emerge -av laymanCode: Select all
etc-update <----after installing the above packagesCode: Select all
source /var/lib/layman/make.conf <---This is the default locationCode: Select all
layman -a mateNow lets prep for the MATE desktop install.
Unmask MATE. Add the next list of files to "/etc/portage/package.keywords" or "/etc/portage/accept_keywords" <---- Which ever form you may be using. I believe both are correct
Code: Select all
### Mate Desktop ###
>=mate-extra/mate-screensaver-1.6.0
>=mate-base/mate-1.6.0
>=mate-base/mate-session-manager-1.6.1
>=mate-base/mate-file-manager-1.6.2
>=mate-base/mate-desktop-1.6.1-r1
>=mate-base/mate-keyring-1.6.0
>=mate-base/libmatekbd-1.6.1
>=mate-base/mate-applets-1.6.1
>=mate-base/mate-settings-daemon-1.6.1
>=mate-base/mate-menus-1.6.0
>=mate-base/mate-panel-1.6.1
>=mate-base/mate-common-1.6.1
>=mate-base/mate-control-center-1.6.1
>=mate-base/libmatekeyring-1.6.0
>=mate-extra/mate-dialogs-1.6.0
>=mate-extra/mate-character-map-1.6.0
>=mate-extra/mate-power-manager-1.6.2
>=mate-extra/mate-calc-1.6.0
>=mate-extra/mate-polkit-1.6.0
>=mate-extra/mate-media-1.6.0
>=mate-extra/mate-utils-1.6.0
>=mate-extra/mate-system-monitor-1.6.1
>=app-arch/mate-file-archiver-1.6.0-r1
>=app-text/mate-document-viewer-1.6.1
>=app-editors/mate-text-editor-1.6.0
>=app-text/mate-doc-utils-1.6.1
>=media-gfx/mate-image-viewer-1.6.1
>=x11-misc/mate-menu-editor-1.6.0
>=x11-themes/mate-backgrounds-1.6.0
>=x11-themes/mate-themes-1.6.1
>=x11-terms/mate-terminal-1.6.1
>=x11-themes/mate-icon-theme-1.6.1
>=x11-wm/mate-window-manager-1.6.2
>=x11-libs/libmatewnck-1.6.1
>=dev-libs/libmateweather-1.6.2
Switching Profiles: I missed this as I have always used the "default/linux/amd64/13.0" profile in combination with the USE FLAGS I required. Thanks to other posts in this thread for pointing this out.
This example is for an amd64 system. If you use the "default/linux/amd64/13.0/desktop/gnome" profile switch to either "default/linux/amd64/13.0" or "default/linux/amd64/13.0/desktop". You can do this with eselect
Code: Select all
eselect profile list
Then
eselect profile set [number you wish to use]Code: Select all
-gnome
mate <---- Not a valid use flag at this time, but I expect it will be if MATE gets added to the main portage tree sometime in the future.
If you use a login manager like "gdm", stop the service with
Code: Select all
/etc/init.d/[login manager] stopCode: Select all
rc-update del [login manager] defaultLog into the console as your root user.
I used ssh from a working box on my network to do most of this tedious work.
Read "man emerge" especially the "--depclean" section. Always run these commands with the "--pretend" or "--ask" option before committing to any changes. The "--verbose" option is also very helpful. Use the "--exclude" option to exclude any package you do not want to remove. Thanks to alexdu for this helpful hint.
The idea here is to remove Gnome and all of its dependencies. Ignore the "emerge @preserved-rebuild" messages until you complete the cleaning of gnome or packages you want removed may get pulled back in. Gnome is huge and depending on your use flags and installed packages this process will take the most time to complete in a safe manner. The tool "equery" can help in determining your installed package dependencies. Read "man equery" for a complete list of options.
Note Mate is a fork of Gnome2 and installing MATE will pull some GNOME stuff back in. You still want to clean GNOME completely and let MATE pull back in the necessary packages so they get added to your world properly.
Remove GNOME.
The next command may need to be modified to match the gnome packages you have installed
Code: Select all
emerge -pC gnome gdm nautilus metacity metacity-themes <----this will allow --depclean to start listing additional packages for removal.Do Not run "emerge --depclean" without the "--pretend" or "--ask" option on the entire list of packages in one shot or you will most likely remove something you don't want to remove. You have been warned!
Code: Select all
emerge --pretend --depclean --exclude sys-kernel/*Continue the process until all the GNOME dependencies are removed. Some packages that you remove will require you to specify a version as there may be more then one version installed. This method takes some time to complete. Once your sure GNOME is gone you can run the "emerge @preserved-rebuild" command it's been asking for.
Install MATE.
Code: Select all
emerge -av mateCode: Select all
revdep-rebuild
Then run
emerge --pretend --depclean --exclude sys-kernel/*MATE installs it's own start up scripts. in "/etc/X11/Sessions"
The last item is to edit "/etc/env.d/90xsession" so it reads
Code: Select all
XSESSION=MateYou will have to configure your new desktop. None of your old GNOME settings will be there. Some menu items may need to be tweaked and you will most likely want to install more packages to get back the functionality you had in GNOME 2.
Removing GNOME won't clean out any left overs in your "/home/.*" directory (and there will be a lot), so you will have to do it yourself.
No default Media player. You can install Totem again if you wish, but that will pull in a lot of gnome stuff. I chose Parole. It has a couple of xfce4 dependencies but otherwise is fairly light and works well.
Other packages I installed were Asunder CD Ripper, Xfburn and of course Gnome-Games. If your favorite application worked in Gnome 2 it should work fine in Mate as well.
Gnome 3 has gone stable and it won't be long before Gnome 2 is removed from portage. The Dev's won't want to maintain two versions of GNOME and I don't blame them. At some point you will have to make a choice.
GOOD LUCK



