Remove Gnome

From Sabayon Wiki
Revision as of 17:45, 17 November 2013 by Zetok (Talk | contribs) (formatting, adjusting for systemd presence, change in example lxdm to lightdm)

Jump to: navigation, search
i18n: en tr

warning

Before removing a Desktop Environment like Gnome, you have to keep a few things in mind;

  • Many libraries are shared with other DE's, so you don't want them to be removed.
  • Removing too much might leave your system unusable.
  • Be sure to have an alternative DM installed. (lxdm or lightdm)

That said, unless you are running out of hard drive space or have limited bandwidth for updates,

there is no real harm in having Gnome installed. If you don't use it, it won't hinder performance.

preparation

For this to work, the best way of doing this is to first install a alternative Desktop Environment.

In this tutorial Gnome will be replaced with XFCE.

  1. open a console/terminal and become root. (of course you can also do this with Rigo
  2. install your alternative Desktop Environment:
#   equo install @xfce --ask

for Rigo: enter:xfce4-meta in the searchbox, select the package, and click install,

or install directly using a shortcut in the searchbox: do:install xfce4-meta accept the licence agreement.

GDM will also be removed, so install a alternative LoginManager: (in this case, i choose lightdm)

# equo install lightdm

With systemd

Remove from boot entry starting GDM:

# systemctl disable gdm.service

Now enable new LoginManager to start at boot:

# systemctl enable lightdm.service

When done, logoff, and logon again into the fresh installed Environment. (NOT Gnome)

With OpenRC

Question.png
Please note that OpenRC will be dropped in summer 2014.
  1. while at the terminal, change the default LoginManager to lightdm:
#   nano -w /etc/conf.d/xdm

and replace:

DISPLAYMANAGER="gdm"

with:

DISPLAYMANAGER="lightdm"
  1. When done, save: [CTRL-O] and close: [CTRL-X]
  2. logoff, and logon again into the fresh installed Environment. (NOT Gnome)

Removing Gnome

So now we're logged in with XFCE.

  1. open your favourite terminal (except Gnome-terminal), and become root.
  2. enter following in the terminal:
equo query installed gnome-base gnome-extra | xargs equo remove --nodeps
  1. (ignore all those warnings)
Question.png
without the "--nodeps", "sys-auth/pambase-20101024-r2" got pulled, and aborts the mission. Also, DON'T use the ""--deep" flag here, otherwise the system becomes unusable!
Question.png
It might very well be possible, that Entropy wants to remove vital packages for XFCE as well.,

so chances are that after a reboot the system is unusable.

In that case, when Gnome is removed., before rebooting, (just in case) simply reinstall your new DE, eg.: equo install @xfce

final steps

Question.png
before rebooting, you must reinstall "sys-apps/dbus". otherwise the system becomes unusable.
equo install sys-apps/dbus

When done, a final step, enter equo deptest and equo libtest THEN equo conf update to check if configuration files needs to be updated, manually.