Difference between revisions of "Remove Gnome"

From Sabayon Wiki
Jump to: navigation, search
 
m (Removing Gnome)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{i18n| [[Remove Gnome|en]] [[Tr:Remove Gnome|tr]]}}
 
{{i18n| [[Remove Gnome|en]] [[Tr:Remove Gnome|tr]]}}
  
=== warning ===
+
{{Warning| '''Before removing any Desktop Environment'''
Before removing a Desktop Environment like Gnome, you have to keep a few things in mind;
+
such as 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.
 
* 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.
 
* Removing too much might leave your system unusable.
 
* Be sure to have an alternative DM installed. (lxdm or lightdm)
 
* 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,
 
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.
 +
}}
  
there is no real harm in having Gnome installed. If you don't use it, it won't hinder performance.
+
== Preparation ==
 
 
== preparation ==
 
 
For this to work, the best way of doing this is to first install a alternative Desktop Environment.
 
For this to work, the best way of doing this is to first install a alternative Desktop Environment.
  
Line 16: Line 17:
  
 
# open a console/terminal and become root. (of course you can also do this with [[Rigo]]
 
# open a console/terminal and become root. (of course you can also do this with [[Rigo]]
# install your alternative Desktop Environment:
+
# install your alternative Desktop Environment: this can be KDE (plasma-meta), mate, etc. We're using xfce for this demonstration.
{{Console| <pre class="clear">#   equo install @xfce --ask</pre>}}
+
{{Console| <pre class="clear"># equo install @xfce --ask</pre>}}
 
for [[Rigo]]: enter:'''xfce4-meta''' in the searchbox, select the package, and click install,
 
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.
 
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 lxdm)
+
 
{{Console| <pre class="clear">#   equo install lxdm</pre>}}
+
'''GDM''' will also be removed, so install a alternative LoginManager: (in this case, i choose lightdm, it works with everything)
# while at the terminal, change the default LoginManager to '''lxdm''':
+
{{Console| <pre class="clear"># equo install lightdm</pre>}}
{{Console| <pre class="clear">#  nano -w /etc/conf.d/xdm</pre>}}
+
 
and replace:
+
==Switching DMs==
{{Console| <pre class="clear">DISPLAYMANAGER="gdm"</pre>}}
+
Remove from boot entry starting GDM:
with:
+
{{Console| <pre class="clear"># systemctl disable gdm.service</pre>}}
{{Console| <pre class="clear">DISPLAYMANAGER="lxdm"</pre>}}
+
Now enable new LoginManager to start at boot:
# When done, save: [CTRL-O] and close: [CTRL-X]
+
{{Console| <pre class="clear"># systemctl enable lightdm.service</pre>}}
# logoff, and logon again into the fresh installed Environment. (NOT Gnome)
+
When done, logoff, and logon again into the fresh installed Environment. (NOT Gnome)
  
 
== Removing Gnome ==
 
== Removing Gnome ==
 +
{{Warning| '''Don't forget --nodeps'''
 +
 +
without the "--nodeps",  KDE, XFCE, important libraries, and even nvidia-drivers get pulled. This can wreck your system!
 +
}}
 +
 
So now we're logged in with XFCE.
 
So now we're logged in with XFCE.
# open your favourite terminal (except Gnome-terminal), and become root.
+
# install and open your favorite terminal (except Gnome-terminal), and become root.
 
# enter following in the terminal:
 
# enter following in the terminal:
{{Console| <pre class="clear">equo query installed gnome-base gnome-extra | xargs equo remove --nodeps</pre>}}
+
{{Console| <pre class="clear">
# (ignore all those warnings)
+
# equo install gentoolkit
{{Note| without the "--nodeps",  "sys-auth/pambase-20101024-r2" got pulled, and aborts the mission.
+
# equery list "*" | grep 'gnome\|evolution\|folks\|evince\|deja-dup\|brasero\|totem\|mutter\|shotwell\|eog\|cheese\|gedit\|libgdata\|geocode-glib\|gnote\|baobab\|caribou\|rhythmbox\|grilo\|libgweather\|alacarte' | xargs equo remove --nodeps</pre>}}
  
Also, '''DON'T''' use the ""--deep" flag here, otherwise the system becomes unusable!}}
+
{{Warning| '''Do NOT Reboot!'''
{{Note| It might very well be possible, that Entropy wants to remove vital packages for XFCE as well.,
+
Do NOT reboot until you've performed the final steps!
 +
}}
  
so chances are that after a reboot the system is unusable.
+
== Final Steps ==
  
In that case, when Gnome is removed., before rebooting, (just in case) simply reinstall your new DE, eg.: equo install @xfce}}
+
Now we need to check for possible broken dependencies and libraries that may pull something back in.
== final steps ==
 
{{Note| '''before''' rebooting, you '''must''' reinstall "sys-apps/dbus".
 
  
otherwise the system becomes unusable.}}
+
{{Console| <pre class="clear">
{{Console| <pre class="clear">equo install sys-apps/dbus</pre>}}
+
# equo deptest
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.
+
# equo libtest
 +
# equo conf update
 +
# reboot
 +
</pre>}}

Latest revision as of 19:54, 1 March 2018

i18n: en tr
Stop.png
Before removing any Desktop Environment

such as 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: this can be KDE (plasma-meta), mate, etc. We're using xfce for this demonstration.
# 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, it works with everything)

# equo install lightdm

Switching DMs

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)

Removing Gnome

Stop.png
Don't forget --nodeps

without the "--nodeps", KDE, XFCE, important libraries, and even nvidia-drivers get pulled. This can wreck your system!

So now we're logged in with XFCE.

  1. install and open your favorite terminal (except Gnome-terminal), and become root.
  2. enter following in the terminal:
# equo install gentoolkit
# equery list "*" | grep 'gnome\|evolution\|folks\|evince\|deja-dup\|brasero\|totem\|mutter\|shotwell\|eog\|cheese\|gedit\|libgdata\|geocode-glib\|gnote\|baobab\|caribou\|rhythmbox\|grilo\|libgweather\|alacarte' | xargs equo remove --nodeps
Stop.png
Do NOT Reboot!

Do NOT reboot until you've performed the final steps!

Final Steps

Now we need to check for possible broken dependencies and libraries that may pull something back in.

# equo deptest
# equo libtest
# equo conf update
# reboot