Optimize Ubuntu 2024! Apps, Design, Flatpak instead of Snap

Опубликовано: 31 Октябрь 2024
на канале: FOSS & Linux Journal
1,303
66

In my opinion, Ubuntu LTS is still a good Linux distro. The Ubuntu Yaru design is great. But with a few tips and tricks, much more can be done on an Ubuntu system. If you want to further customize the system, don't feel like using Snap and would rather set up Flatpak on Ubuntu instead, you've come to the right place.
________________________________________________________

► commands

--------------
Install Flatpak
--------------
Install Flatpak binary
sudo apt install flatpak

Gnome Software Center & Flatpak Plugin install:
sudo apt install --no-install-recommends gnome-software

Install Flatpak Plugin
sudo apt install gnome-software-plugin-flatpak

add Flathub Repo:
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.f...

Reboot system:
sudo reboot

After reboot:
Install a browser
flatpak install flathub io.github.ungoogled_software.ungoogled_chromium

--------------
PPAs
--------------

KeepassXC
sudo add-apt-repository ppa:phoerious/keepassxc

Firefox ESR and Thunderbird stable builds
sudo add-apt-repository ppa:mozillateam/ppa

LibreOffice
sudo add-apt-repository ppa:libreoffice/ppa

--------------
Firefox + Thunderbird preparation
--------------

Preparation Thunderbird

sudo vi /etc/apt/preferences.d/mozillateam-ppa

add this 6 lines in the file:

Package: thunderbird*
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001

Package: thunderbird*
Pin: release o=Ubuntu
Pin-Priority: -1

--------------
Snap uninstall
--------------

snap list

Note: extract list from first column. Here is the standard list:

sudo snap remove firefox
sudo snap remove gtk-common-themes
sudo snap remove gnome-42-2204
sudo snap remove snapd-desktop-integration
sudo snap remove snap-store
sudo snap remove firmware-updater
sudo snap remove bare
sudo snap remove thunderbird
sudo snap remove core22
sudo snap remove snapd

snap list
Note: must be empty

deactivate Snapd.socket
sudo systemctl disable --now snapd.socket

Stop Snapd
sudo systemctl stop snapd

Disable Snapd
sudo systemctl disable snapd

Mask Snapd
sudo systemctl mask snapd

Delete snapd
sudo apt purge snapd -y

Mark snap
sudo apt-mark hold snapd

Snap fs cleanup:
sudo rm -rf ~/snap
sudo rm -rf /snap
sudo rm -rf /var/snap
sudo rm -rf /var/lib/snapd

prevent snap reinstall

sudo vi /etc/apt/preferences.d/nosnap.pref

add this 3 lines:

Package: snapd
Pin: release a=*
Pin-Priority: -10

Apt refresh
sudo apt update

--------------
Install Firefox ESR & Thunderbird
--------------
sudo apt update && sudo apt install firefox-esr thunderbird -y

HAVA FUN :)

________________________________________________________

► Literature Recommendations for further education

Ubuntu 22.04 LTS Desktop: Applications and Administration (English Edition):
https://amzn.to/457zTMu

Ubuntu 22.04 LTS Server: Administration and Reference (English Edition):
https://amzn.to/43RGfi3

Linux Mint 21: Desktops and Administration (English Edition):
https://amzn.to/45dJIZy

Arch Linux: Quick Guide for Beginners (Linux for Beginners Book 2) (English Edition):
https://amzn.to/43Sl8w6

Linux Bible:
https://amzn.to/3DFSaov

Efficient Linux at the Command Line: Boost Your Command-Line Skills:
https://amzn.to/3OeNZoy

AFFILIATE DISCLOSURES:
I get commissions for purchases made through this links.

________________________________________________________

► Follow FLJ on Twitter
  / linuxfossjourn  

________________________________________________________

► Please support my project with a YT channel membership
   / @fosslinuxjournal  

► Become a Patreon and support the channel
https://patreon.com/user?u=91089357

► Become a supporter and buy me a coffee
https://www.buymeacoffee.com/fosslinu...
________________________________________________________

► My other YT channel in German language
   / @michlfranken  

________________________________________________________

► General information

As an Amazon affiliate, I earn qualifying sales.

I own a legal license of Final Cut Pro X, which covers commercial use of royalty-free content in FCP.

The contributions of FLJ basically are basically a non-binding demo. Re-enactment at your own risk. Improper adjustments can result in negative consequences such as data loss or system failures. Any form of warranty excluded. If in doubt, please set up and test a virtual machine, but do not reproduce it on a productive system. Everything at your own risk and without any guarantee. I assume no liability for data loss, defects or other damage.