Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3560

Graphical Environments & Desktops • Publicly available scripts for building Debian Gnome and KDE from base Debian

$
0
0
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:

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:

#!/bin/bashsudo mkdir /usr/libexec/maybelatersudo mkdir /usr/libexec/evolution-data-server/maybelatersudo mkdir /usr/bin/maybelatersudo mkdir /usr/sbin/maybelatercd /usr/libexec/evolution-data-serversudo mv evolution-alarm-notify maybelatercd /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 Trackersudo mv tracker-extract-3 maybelatersudo mv tracker-miner-fs-3 maybelatersudo mv geoclue maybelatersudo mv gnome-shell-calendar-server maybelatersudo mv gsd-wwan maybelatersudo mv gsd-rfkill maybelatersudo mv power-profiles-daemon maybelatersudo mv realmd maybelatersudo mv ibus-x11 maybelatersudo mv gvfsd-fuse maybelatersudo mv gsd-datetime maybelatersudo mv goa-identity-service maybelatersudo mv goa-daemon maybelatersudo mv gsd-xsettings maybelatersudo mv gsd-disk-utility-notify maybelatersudo mv low-memory-monitor maybelatersudo mv evolution-addressbook-factory maybelatersudo mv evolution-calendar-factory maybelatersudo mv gsd-media-keys maybelatersudo mv gsd-power maybelatersudo mv gsd-keyboard maybelatersudo mv gsd-color maybelatersudo mv gsd-wacom maybelatersudo mv gsd-printer maybelatersudo mv colord maybelatersudo mv gsd-print-notifications maybelatersudo mv gsd-smartcard maybelatersudo mv gsd-sharing maybelatersudo mv gsd-sound maybelatersudo mv gsd-housekeeping maybelatersudo mv gsd-usb-protection maybelatersudo mv switcheroo-control maybelatersudo mv gsd-a11y-settings maybelatersudo mv gsd-screensaver-proxy maybelatersudo mv gcr-ssh-agent maybelatersudo mv at-spi2-registryd maybelatercd /usr/bin#Required to run extensions#sudo mv gjs maybelatersudo mv VBoxClient maybelatersudo mv gnome-keyring-daemon maybelatercd /usr/sbinsudo mv cups-browsed maybelatersudo mv ModemManager maybelater#systemctl --type=service --state=runningsudo systemctl mask --now anacron.servicesudo systemctl mask --now avahi-daemon.servicesudo systemctl mask --now cups.servicesudo systemctl mask --now cron.service sudo systemctl mask --now colord.servicesudo systemctl mask --now cups-browsed.servicesudo systemctl mask --now geoclue.servicesudo systemctl mask --now low-memory-monitor.servicesudo systemctl mask --now ModemManager.servicesudo systemctl mask --now power-profiles-daemon.servicesudo systemctl mask --now realmd.servicesudo systemctl mask --now switcheroo-control.servicesudo 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/libexecsudo mv packagekitd maybelatercd /usr/bin#Required to run Software Repositorysudo mv gnome-software maybelater#Required to install dconf-editor and termit#Required to use /usr/bin/maybelater/gnome-softwaresudo 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:

#!/bin/bash#DON'T run with SUDOsystemctl --user mask tracker-miner-fs-3.servicesystemctl --user mask evolution-addressbook-factory.servicesystemctl --user mask evolution-calendar-factory.servicesystemctl --user mask gvfs-afc-volume-monitor.servicesystemctl --user mask gvfs-goa-volume-monitor.servicesystemctl --user mask gvfs-gphoto2-volume-monitor.servicesystemctl --user mask gvfs-mtp-volume-monitor.servicesystemctl --user mask xdg-document-portal.servicesystemctl --user mask xdg-desktop-portal.servicesystemctl --user mask xdg-desktop-portal-gtk.servicesystemctl --user mask xdg-desktop-portal-gnome.servicesystemctl --user mask gcr-ssh-agent.servicesystemctl --user mask org.gnome.SettingsDaemon.Wacom.servicesystemctl --user mask org.gnome.SettingsDaemon.Smartcard.servicesystemctl --user mask org.gnome.SettingsDaemon.PrintNotifications.servicesystemctl --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

Statistics: Posted by CloisteredNeuron — 2024-06-30 08:29 — Replies 7 — Views 303



Viewing all articles
Browse latest Browse all 3560

Trending Articles