Publicly available scripts for building Debian Gnome and KDE from base Debian

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
User avatar
CloisteredNeuron
Posts: 130
Joined: 2024-05-25 04:02
Has thanked: 68 times
Been thanked: 5 times

Publicly available scripts for building Debian Gnome and KDE from base Debian

#1 Post by CloisteredNeuron »

I’ve found there is a lack of light weight wayland desktop environments which run well in VirtualBox. As Gnome and KDE on wayland function well on VirtualBox a lighter weight version of each would be useful. I’d like to experiment with building a base Debian install up to Gnome/KDE versus uninstalling what may be non-critical components to produce leaner versions of Gnome and KDE. Are there any publicly available documents/scripts on how Debian versions of Gnome and KDE are built?

Even better than this, are there stripped down versions of Gnome and KDE with wayland support out there?

Thanks!

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 1232
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 125 times
Been thanked: 219 times

Re: Publicly available scripts for building Debian Gnome and KDE from base Debian

#2 Post by wizard10000 »

There's more than one way to install both GNOME and KDE in Debian - just not with the installer :)

F'rinstance if you wanted to install KDE on your GNOME machine you'd install task-kde-desktop using apt or tasksel which will give you everything but there are lighter packages available. You could install kde-plasma-desktop or just plasma-desktop instead.

GNOME works the same way; you've got task-gnome-desktop at the top and gnome-shell as the most minimal package that will give you a working GNOME desktop.

I run openbox so I don't install any desktop environment. If using a netinstall image Debian will connect to the network used during install even if you uncheck *all* the boxes in the installer. When I install I just install ssh server and standard system utilities and build from there. I've done one install where I unchecked everything, I wouldn't recommend it. Most of the standard system utilities are stuff you'd end up installing at some point anyway :)
we see things not as they are, but as we are.
-- anais nin

User avatar
CloisteredNeuron
Posts: 130
Joined: 2024-05-25 04:02
Has thanked: 68 times
Been thanked: 5 times

Re: Publicly available scripts for building Debian Gnome and KDE from base Debian

#3 Post by CloisteredNeuron »

Thanks Wizard,

These are great suggestions. I created a new Debian 12.5 stable VM only installing "standard system utilities". Based upon your suggestion for labwc I ensured I installed all the dependencies from:

https://packages.debian.org/bookworm/plasma-desktop

I wasn't for sure what to do with libqt5gui5 and libqt5quick5 and just installed them versus libqt5gui5-gles and libqt5quick5-gles.

After getting this installed do you know how to get plasma-desktop to run? Trying something simple like running plasma-desktop, like labwc, from the console does not work.

I've included the two install commands for anyone interested in installing plasma-desktop. Quite a few dependencies there.

sudo apt install libqt5gui5 libqt5quick5

sudo apt install plasma-desktop accountsservice breeze kactivitymanagerd kde-cli-tools kded5 kio kpackagetool5 layer-shell-qt libaccounts-qt5-1 libc6 libgcc-s1 libgcc-s1 libglib2.0-0 libibus-1.0-5 libkaccounts2 libkf5activities5 libkf5activitiesstats1 libkf5authcore5 libkf5baloo5 libkf5bookmarks5 libkf5codecs5 libkf5completion5 libkf5configcore5 libkf5configgui5 libkf5configwidgets5 libkf5coreaddons5 libkf5crash5 libkf5dbusaddons5 libkf5globalaccel-bin libkf5globalaccel5 libkf5guiaddons5 libkf5i18n5 libkf5iconthemes5 libkf5itemviews5 libkf5jobwidgets5 libkf5kcmutils5 libkf5kcmutilscore5 libkf5kdelibs4support5 libkf5kiocore5 libkf5kiofilewidgets5 libkf5kiogui5 libkf5kiowidgets5 libkf5newstuffcore5 libkf5notifications5 libkf5notifyconfig5 libkf5package5 libkf5plasma5 libkf5plasmaquick5 libkf5quickaddons5 libkf5runner5 libkf5service-bin libkf5service5 libkf5solid5 libkf5sonnetcore5 libkf5sonnetui5 libkf5widgetsaddons5 libkf5windowsystem5 libkf5xmlgui5 libkworkspace5-5 libnotificationmanager1 libpackagekitqt5-1 libphonon4qt5-4 libprocesscore9 libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5network5 libqt5qml5 libqt5quickwidgets5 libqt5sql5 libqt5waylandclient5 libqt5widgets5 libqt5x11extras5 libqt5xml5 libscim8v5 libstdc++6 libtaskmanager6abi1 libwayland-client0 libx11-6 libx11-xcb1 libxcb-keysyms1 libxcb-record0 libxcb-xkb1 libxcb1 libxcursor1 libxi6 libxkbcommon0 libxkbfile1 oxygen-sounds phonon4qt5 plasma-desktop-data plasma-framework plasma-integration plasma-workspace polkit-kde-agent-1 qml-module-org-kde-draganddrop qml-module-org-kde-kcoreaddons qml-module-org-kde-kquickcontrols qml-module-org-kde-kquickcontrolsaddons qml-module-org-kde-kwindowsystem qml-module-org-kde-qqc2desktopstyle qml-module-org-kde-solid qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 1232
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 125 times
Been thanked: 219 times

Re: Publicly available scripts for building Debian Gnome and KDE from base Debian

#4 Post by wizard10000 »

You're gonna need to install a display manager as I don't think plasma-desktop installs one by default. If you're running KDE it'd probably be best to install sddm.
we see things not as they are, but as we are.
-- anais nin

User avatar
CloisteredNeuron
Posts: 130
Joined: 2024-05-25 04:02
Has thanked: 68 times
Been thanked: 5 times

Re: Publicly available scripts for building Debian Gnome and KDE from base Debian

#5 Post by CloisteredNeuron »

Hi Wizard,

sddm worked great with plasma-desktop. Thanks! When I logged into plasma-desktop using the wayland option on the login screen, xinput was not able to detect keypresses so thumbs up. plasma-desktop uses less memory than GNOME Flashback but GNOME Flashback did not have a wayland option on the login screen so that comparison is incomplete - maybe the GNOME Flashback version uses less memory. GNOME Flashback xinput shows keypresses being captured from terminal, calc, and browser and I see Xorg in htop so it is not defaulting to wayland. One nice feature of GNOME Flashback is it is more responsive than plasma-desktop in VirtualBox on my notebook. Do you know if there is a setting to tell GNOME Flashback to use wayland?

Thanks for all the great feedback. The tasksel app alone saves so much time as I have a fully configured base install which I clone in under a minute. The base install has VirtualBox extensions in place, a higher resolution console, larger fonts, shared folder with the host OS, and aliases. It is so very nice to easily read the screen and copy and paste from host files and not wait for the base system install for each desktop install.

And pointing out plasma-desktop gave me the idea to look to its dependencies as a source of packages which could potentially be removed, at the cost of functionality. And this led me to wonder if the tasksel option for GNOME Flashback is installing an equivalent to plasma-desktop. Such Fun! Thank you, thank you, thank you!

GNOME Flashback htop/xorg/xinput:
https://i.postimg.cc/rmqhJk9R/Gnome-Min-Xinput.gif

plasma-desktop htop:
https://i.postimg.cc/T2jxfV1T/plasma-de ... d-htop.gif

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 1232
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 125 times
Been thanked: 219 times

Re: Publicly available scripts for building Debian Gnome and KDE from base Debian

#6 Post by wizard10000 »

Glad you're having a good time :)

As you've learned Debian's installer is ridiculously flexible. Since GNOME Flashback is based on GNOME 3 I think it's pretty unlikely it's gonna run under Wayland.
we see things not as they are, but as we are.
-- anais nin

User avatar
CloisteredNeuron
Posts: 130
Joined: 2024-05-25 04:02
Has thanked: 68 times
Been thanked: 5 times

Re: Publicly available scripts for building Debian Gnome and KDE from base Debian

#7 Post by CloisteredNeuron »

forums.debian.net/viewtopic.php?t=159507

After preventing several GNOME components from starting, HTOP Mem usage dropped from 980M to 439M. Services were masked and apps were moved. A forum member suggested wiki.archlinux.org/title/XDG_Autostart ("It's called freedesktop autostart, they're probably in /etc/xdg/autostart"). Several app moves are probably unnecessary as I masked the services which call the apps after moving the apps. I have KDE in the 500MB range and will be scripting out those system mods as well. GNOME is probably going to be more memory efficient and I’m guessing more stable as it has had more time to work through wayland issues, but it is so non-standard with window manipulation (second status bar, at bottom, required to see running apps, no buttons to minimize and maximize windows, and feels like most tasks just take more clicks). My guess is GNOME is so weird that once you know the why behind what they do it is actually more efficient but SO non-standard. Using KDE I really came to appreciate the Konsole terminal. Konsole has a great toolbar and a feature to stop the processing of an app like HTOP so you can capture information. The KDE start menu where you can literally fill the screen with all your favorites is SO efficient. Click the WIN key and ALL the apps you use are displayed. So very nice.

Code: Select all

HTOP Before Blocking Apps
    0[|||                                                                               2.6%] Tasks: 112, 248 thr, 71 kthr; 1 running
    1[|||                                                                               2.2%] Load average: 0.23 0.35 0.17 
  Mem[||||||||||||||||||||||||||||||||||||||||                                    980M/3.82G] Uptime: 00:03:38
  Swp[                                                                               0K/975M] System: Linux 6.1.0-21-amd64 [x86_64] @ Debian GNU/Linux 12 (bookworm)
  [Main] [I/O]
    PID USER       PRI  NI  VIRT   RES▽  SHR S  CPU% MEM%   TIME+  Command
   2095 cloy	    20   0 3650M  207M  119M S   4.7  5.3  0:11.34 /usr/bin/gnome-shell

HTOP After Blocking Apps
    0[||||||                                                                            5.5%] Tasks: 38, 68 thr, 62 kthr; 2 running
    1[||||||                                                                            6.0%] Load average: 0.09 0.07 0.07 
  Mem[|||||||||||||||||||                                                         439M/3.82G] Uptime: 00:34:35
  Swp[                                                                               0K/975M] System: Linux 6.1.0-21-amd64 [x86_64] @ Debian GNU/Linux 12 (bookworm)
  [Main] [I/O]
    PID USER       PRI  NI  VIRT   RES▽  SHR S  CPU% MEM%   TIME+  Command
    929 cloy	    20   0 3380M  224M  117M S   7.7  5.7  0:39.06 /usr/bin/gnome-shell
UPDATED SCRIPTS BELOW
Last edited by CloisteredNeuron on 2024-06-30 09:07, edited 1 time in total.

User avatar
CloisteredNeuron
Posts: 130
Joined: 2024-05-25 04:02
Has thanked: 68 times
Been thanked: 5 times

Re: Publicly available scripts for building Debian Gnome and KDE from base Debian

#8 Post by CloisteredNeuron »

Here is an updated version of my scripts to block GNOME apps and services leading to an HTOP RES of 389MB from a default of 980MB. After running the scripts and rebooting I was able to start all installed by default apps, but discovered the GNOME Software app does NOT display installed or searched for apps. GNOME does come with Synaptic which is broken in wayland unless you run it from a CLI as /usr/sbin/synaptic (no root required). In this mode Synaptic won't install apps but you can identify them and install them with apt. The last two blocks of the first script can be commented/uncommented to allow the GNOME Software app to run at the cost of using an additional 90MB of RAM or save 90MB of RAM and keep it disabled.

My method to keep apps from starting is moving them into a maybelater directory in the app’s current directory. There must be a better way. If I could modify the configuration which starts the gnome-software app I could leave it in /usr/bin and when the GNOME Software app is started by the user only then would it consume extra memory. Basically I’ve identified noncritical apps and services but there must be configuration files which cause the apps and services to start when the system boots.

Code: Select all

HTOP After Blocking Apps
  0[|        0.3%]   1[         0.0%] Tasks: 45, 80 thr, 70 kthr; 1 running
  Mem[|||389M/3.82G] Swp[      0K/975M] System: Linux 6.1.0-21-amd64 [x86_64] 
  Uptime: 00:02:11                      Load average: 0.15 0.15 0.06 

  [Main] [I/O]
    PID   RES▽MEM%  CPU% S   SHR   TIME+  PRI  NI Command
   1020  189M  4.8   0.0 S  110M  0:02.58  20   0 /usr/bin/gnome-shell
   1334 50132  1.3   0.3 S 38020  0:00.61  20   0 /usr/libexec/gnome-terminal-se
 
I've destroyed about 30 VMs while testing these two scripts so I absolutely would NOT use this on anything but a sacrificial VM with NO data.

This needs to be executed as sudo:

Code: Select all

#!/bin/bash
sudo mkdir /usr/libexec/maybelater
sudo mkdir /usr/libexec/evolution-data-server/maybelater
sudo mkdir /usr/bin/maybelater
sudo mkdir /usr/sbin/maybelater

cd /usr/libexec/evolution-data-server
sudo mv evolution-alarm-notify maybelater

cd /usr/libexec
#Several apps including Firefox/Libre SLOW to start
#sudo mv xdg-permission-store maybelater
#sudo mv xdg-desktop-portal-gnome maybelater
#sudo mv xdg-document-portal maybelater
#sudo mv xdg-desktop-portal-gtk maybelater
#sudo mv xdg-desktop-portal maybelater
#Required to run Evolution and Firefox
#sudo mv evolution-source-registry maybelater
#System slow to boot & open terminals
#sudo mv at-spi-bus-launcher maybelater
#Boot to blank screen 4MIN to terminal
#sudo mv gvfsd maybelater
#/usr/bin/gnome-control-center blows up in power menu
#sudo mv upowerd maybelater
#GNOME Music will not run.  Complains
#it can NOT connect to Tracker
sudo mv tracker-extract-3 maybelater
sudo mv tracker-miner-fs-3 maybelater

sudo mv geoclue maybelater
sudo mv gnome-shell-calendar-server maybelater
sudo mv gsd-wwan maybelater
sudo mv gsd-rfkill maybelater
sudo mv power-profiles-daemon maybelater
sudo mv realmd maybelater
sudo mv ibus-x11 maybelater
sudo mv gvfsd-fuse maybelater
sudo mv gsd-datetime maybelater
sudo mv goa-identity-service maybelater
sudo mv goa-daemon maybelater
sudo mv gsd-xsettings maybelater
sudo mv gsd-disk-utility-notify maybelater
sudo mv low-memory-monitor maybelater
sudo mv evolution-addressbook-factory maybelater
sudo mv evolution-calendar-factory maybelater
sudo mv gsd-media-keys maybelater
sudo mv gsd-power maybelater
sudo mv gsd-keyboard maybelater
sudo mv gsd-color maybelater
sudo mv gsd-wacom maybelater
sudo mv gsd-printer maybelater
sudo mv colord maybelater
sudo mv gsd-print-notifications maybelater
sudo mv gsd-smartcard maybelater
sudo mv gsd-sharing maybelater
sudo mv gsd-sound maybelater
sudo mv gsd-housekeeping maybelater
sudo mv gsd-usb-protection maybelater
sudo mv switcheroo-control maybelater
sudo mv gsd-a11y-settings maybelater
sudo mv gsd-screensaver-proxy maybelater
sudo mv gcr-ssh-agent maybelater
sudo mv at-spi2-registryd maybelater

cd /usr/bin
#Required to run extensions
#sudo mv gjs maybelater
sudo mv VBoxClient maybelater
sudo mv gnome-keyring-daemon maybelater

cd /usr/sbin
sudo mv cups-browsed maybelater
sudo mv ModemManager maybelater

#systemctl --type=service --state=running
sudo systemctl mask --now anacron.service
sudo systemctl mask --now avahi-daemon.service
sudo systemctl mask --now cups.service
sudo systemctl mask --now cron.service 
sudo systemctl mask --now colord.service
sudo systemctl mask --now cups-browsed.service
sudo systemctl mask --now geoclue.service
sudo systemctl mask --now low-memory-monitor.service
sudo systemctl mask --now ModemManager.service
sudo systemctl mask --now power-profiles-daemon.service
sudo systemctl mask --now realmd.service
sudo systemctl mask --now switcheroo-control.service
sudo systemctl mask --now vboxadd.service
#Settings - /usr/bin/gnome-control-center breaks after
#entering the Settings power options
#sudo systemctl mask --now upower.service
#sudo systemctl mask --now user@1000.service
#CRITICAL - CAN NOT LOGIN IF MASKED
#sudo systemctl mask --now user-runtime-dir@1000.service
#CRITICAL - SYSTEM WILL NOT BOOT
#sudo systemctl mask --now accounts-daemon.service

#Disable Gnome Software Repository
#
#cd /usr/libexec
sudo mv packagekitd maybelater
cd /usr/bin
#Required to run Software Repository
sudo mv gnome-software maybelater
#Required to install dconf-editor and termit
#Required to use /usr/bin/maybelater/gnome-software
sudo systemctl mask --now packagekit.service

##Enable Gnome Software Repository
##
#cd /usr/libexec/maybelater
#sudo mv packagekitd ..
#cd /usr/bin/maybelater
##Required to run Software Repository
#sudo mv gnome-software ..
##Required to install dconf-editor and termit
##Required to use /usr/bin/maybelater/gnome-software
#sudo systemctl unmask --now packagekit.service
Followed by this script - not sudo:

Code: Select all

#!/bin/bash
#DON'T run with SUDO
systemctl --user mask tracker-miner-fs-3.service
systemctl --user mask evolution-addressbook-factory.service
systemctl --user mask evolution-calendar-factory.service
systemctl --user mask gvfs-afc-volume-monitor.service
systemctl --user mask gvfs-goa-volume-monitor.service
systemctl --user mask gvfs-gphoto2-volume-monitor.service
systemctl --user mask gvfs-mtp-volume-monitor.service
systemctl --user mask xdg-document-portal.service
systemctl --user mask xdg-desktop-portal.service
systemctl --user mask xdg-desktop-portal-gtk.service
systemctl --user mask xdg-desktop-portal-gnome.service
systemctl --user mask gcr-ssh-agent.service
systemctl --user mask org.gnome.SettingsDaemon.Wacom.service
systemctl --user mask org.gnome.SettingsDaemon.Smartcard.service
systemctl --user mask org.gnome.SettingsDaemon.PrintNotifications.service
systemctl --user mask org.gnome.SettingsDaemon.UsbProtection.service
#Evolution fails to start
#systemctl --user mask evolution-source-registry.service
#systemctl --user mask org.freedesktop.IBus.session.GNOME.service

User avatar
CloisteredNeuron
Posts: 130
Joined: 2024-05-25 04:02
Has thanked: 68 times
Been thanked: 5 times

Re: Publicly available scripts for building Debian Gnome and KDE from base Debian

#9 Post by CloisteredNeuron »

This is the latest version of my GNOME scripts, which I use to reduce RAM usage. While I see RAM usage of 335MB, HTOP results below, I often see reboot and power on RAM usage around 355MB. The scripts WILL break apps noted in the comments, and I am sure other apps as well. I have destroyed about 50 VMs while testing these two scripts, so I absolutely would NOT use these scripts on anything but a sacrificial VM with NO data. Note the first script purges several apps I do not use.

Code: Select all

0[||       3.4%]   1[|        1.3%] Tasks: 37, 66 thr, 70 kthr; 1 running
Mem[|||335M/3.82G] Swp[      0K/975M] System: Linux 6.1.0-23-amd64 [x86_64] 
Uptime: 00:01:09                      Load average: 0.32 0.12 0.04 
This needs to be executed as sudo:

Code: Select all

##################################################
##################################################
Remove Apps
##################################################
##################################################
#
#!/bin/bash
#
sudo apt -y purge evolution
sudo apt -y purge totem
sudo apt -y purge rhythmbox
sudo apt -y purge gnome-music
sudo apt -y purge gnome-maps
sudo apt -y purge gnome-weather
sudo apt -y purge gnome-calendar
sudo apt -y purge gnome-contacts
sudo apt -y purge transmission-gtk
#
sudo apt -y purge gnome-chess
sudo apt -y purge gnome-klotski
sudo apt -y purge five-or-more
sudo apt -y purge gnome-2048
sudo apt -y purge four-in-a-row
sudo apt -y purge gnome-mahjongg
sudo apt -y purge lightsoff
sudo apt -y purge gnome-mines
sudo apt -y purge gnome-nibbles
sudo apt -y purge quadrapassel
sudo apt -y purge iagno
sudo apt -y purge tali
sudo apt -y purge swell-foop
sudo apt -y purge gnome-taquin
sudo apt -y purge gnome-tetravex
sudo apt -y purge gnome-robots
sudo apt -y purge hitori
sudo apt -y purge aisleriot
sudo apt -y purge gnome-sudoku
#

#sudo apt -y install vim
#sudo apt -y install mc
#sudo apt -y install calc
#sudo apt -y install speedcrunch
#sudo apt -y install featherpad

#Synaptic will NOT run as root
#alias syn='/usr/sbin/synaptic&'

#sudo apt -y install synaptic

#VLC replaces totem, rhythmbox, gnome-music
#sudo apt -y install vlc


#GNOME configuration editor
#sudo apt -y install dconf-editor
#CRAZY amount of additional packages
#required for KDE apps
#sudo apt -y install krusader
#sudo apt -y install konsole
#sudo apt -y install kompare
#
sudo apt -y autoremove

#
##################################################
##################################################
Prevent Apps from Running
##################################################
##################################################
#
sudo mkdir /usr/libexec/evolution-data-server/maybelater
sudo mkdir /usr/libexec/maybelater
sudo mkdir /usr/bin/maybelater
sudo mkdir /usr/sbin/maybelater

cd /usr/libexec/evolution-data-server
sudo mv evolution-alarm-notify maybelater

cd /usr/libexec
#Several apps including Firefox/Libre SLOW to start
#sudo mv xdg-permission-store maybelater
#sudo mv xdg-desktop-portal-gnome maybelater
#sudo mv xdg-document-portal maybelater
#sudo mv xdg-desktop-portal-gtk maybelater
#sudo mv xdg-desktop-portal maybelater
#System slow to boot & open terminals
#sudo mv at-spi-bus-launcher maybelater
#Boot to blank screen 4MIN to terminal
#sudo mv gvfsd maybelater
#/usr/bin/gnome-control-center blows up in power menu
#sudo mv upowerd maybelater
#
#Required to run Evolution and Firefox
sudo mv evolution-source-registry maybelater
#
#System slow to boot & open terminals
#GNOME Music will not run.  Complains
#it can NOT connect to Tracker
sudo mv tracker-extract-3 maybelater
sudo mv tracker-miner-fs-3 maybelater

sudo mv geoclue maybelater
sudo mv gnome-shell-calendar-server maybelater
sudo mv gsd-wwan maybelater
sudo mv gsd-rfkill maybelater
sudo mv power-profiles-daemon maybelater
sudo mv realmd maybelater
sudo mv ibus-x11 maybelater
sudo mv gvfsd-fuse maybelater
sudo mv gsd-datetime maybelater
sudo mv goa-identity-service maybelater
sudo mv goa-daemon maybelater
sudo mv gsd-xsettings maybelater
sudo mv gsd-disk-utility-notify maybelater
sudo mv low-memory-monitor maybelater
sudo mv evolution-addressbook-factory maybelater
sudo mv evolution-calendar-factory maybelater
sudo mv gsd-media-keys maybelater
sudo mv gsd-power maybelater
sudo mv gsd-keyboard maybelater
sudo mv gsd-color maybelater
sudo mv gsd-wacom maybelater
sudo mv gsd-printer maybelater
sudo mv colord maybelater
sudo mv gsd-print-notifications maybelater
sudo mv gsd-smartcard maybelater
sudo mv gsd-sharing maybelater
sudo mv gsd-sound maybelater
sudo mv gsd-housekeeping maybelater
sudo mv gsd-usb-protection maybelater
sudo mv switcheroo-control maybelater
sudo mv gsd-a11y-settings maybelater
sudo mv gsd-screensaver-proxy maybelater
sudo mv gcr-ssh-agent maybelater
sudo mv at-spi2-registryd maybelater

cd /usr/bin
#Required to run extensions
#sudo mv gjs maybelater
sudo mv VBoxClient maybelater
sudo mv gnome-keyring-daemon maybelater

cd /usr/sbin
sudo mv cups-browsed maybelater
sudo mv ModemManager maybelater

#systemctl --type=service --state=running
sudo systemctl mask --now anacron.service
sudo systemctl mask --now avahi-daemon.service
sudo systemctl mask --now cups.service
sudo systemctl mask --now cron.service 
sudo systemctl mask --now colord.service
sudo systemctl mask --now cups-browsed.service
sudo systemctl mask --now geoclue.service
sudo systemctl mask --now low-memory-monitor.service
sudo systemctl mask --now ModemManager.service
sudo systemctl mask --now power-profiles-daemon.service
sudo systemctl mask --now realmd.service
sudo systemctl mask --now switcheroo-control.service
sudo systemctl mask --now vboxadd.service
#Settings - /usr/bin/gnome-control-center breaks after
#entering the Settings power options
#sudo systemctl mask --now upower.service
#sudo systemctl mask --now user@1000.service
#CRITICAL - CAN NOT LOGIN IF MASKED
#sudo systemctl mask --now user-runtime-dir@1000.service
#CRITICAL - SYSTEM WILL NOT BOOT
#sudo systemctl mask --now accounts-daemon.service

##Disable Gnome Software Repository
##
#Moving packagekitd not required after masking service
#cd /usr/libexec
#sudo mv packagekitd maybelater
cd /usr/bin
##Required to run Software Repository
sudo mv gnome-software maybelater
##Required to install dconf-editor and termit
##Required to use /usr/bin/maybelater/gnome-software
sudo systemctl mask --now packagekit.service

##Enable Gnome Software Repository
##
#cd /usr/libexec/maybelater
#sudo mv packagekitd ..
#cd /usr/bin/maybelater
##Required to run Software Repository
#sudo mv gnome-software ..
##Required to install dconf-editor and termit
##Required to use /usr/bin/maybelater/gnome-software
#sudo systemctl unmask --now packagekit.service
Followed by this script - not sudo:

Code: Select all

###########################################################################
###########################################################################
Mask user services
###########################################################################
###########################################################################
#
#!/bin/bash
#DON'T run with SUDO
systemctl --user mask tracker-miner-fs-3.service
systemctl --user mask evolution-addressbook-factory.service
systemctl --user mask evolution-calendar-factory.service
systemctl --user mask gvfs-afc-volume-monitor.service
systemctl --user mask gvfs-goa-volume-monitor.service
systemctl --user mask gvfs-gphoto2-volume-monitor.service
systemctl --user mask gvfs-mtp-volume-monitor.service
systemctl --user mask xdg-document-portal.service
systemctl --user mask xdg-desktop-portal.service
systemctl --user mask xdg-desktop-portal-gtk.service
systemctl --user mask xdg-desktop-portal-gnome.service
systemctl --user mask gcr-ssh-agent.service
systemctl --user mask org.gnome.SettingsDaemon.Wacom.service
systemctl --user mask org.gnome.SettingsDaemon.Smartcard.service
systemctl --user mask org.gnome.SettingsDaemon.PrintNotifications.service
systemctl --user mask org.gnome.SettingsDaemon.UsbProtection.service
systemctl --user mask ssh-agent.service
#Evolution fails to start
systemctl --user mask evolution-source-registry.service
systemctl --user mask org.freedesktop.IBus.session.GNOME.service

###########################################################################
###########################################################################

systemctl --user mask gnome-keyring-daemon.service
systemctl --user mask org.gnome.SettingsDaemon.A11ySettings.service
systemctl --user mask org.gnome.SettingsDaemon.Color.service
systemctl --user mask org.gnome.SettingsDaemon.Datetime.service
systemctl --user mask org.gnome.SettingsDaemon.Housekeeping.service
systemctl --user mask org.gnome.SettingsDaemon.Keyboard.service
systemctl --user mask org.gnome.SettingsDaemon.MediaKeys.service
systemctl --user mask org.gnome.SettingsDaemon.Power.service
systemctl --user mask org.gnome.SettingsDaemon.Rfkill.service
systemctl --user mask org.gnome.SettingsDaemon.ScreensaverProxy.service
systemctl --user mask org.gnome.SettingsDaemon.Sharing.service
systemctl --user mask org.gnome.SettingsDaemon.Sound.service
systemctl --user mask gnome-keyring-daemon.socket
systemctl --user mask gpg-agent-browser.socket
systemctl --user mask gpg-agent-extra.socket
systemctl --user mask gpg-agent-ssh.socket
systemctl --user mask gpg-agent.socket

systemctl --user mask gcr-ssh-agent.socket
systemctl --user mask tracker-extract-3.service

Post Reply