1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-11-22 17:41:32 -05:00

Add Flatpak

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-01-20 23:29:30 -07:00
parent d2f32c7d3d
commit 86a90937b6
Signed by: Tomster
GPG Key ID: 555C902A34EC968F

View File

@ -123,16 +123,24 @@ sudo fwupdmgr get-updates -y
sudo fwupdmgr update -y sudo fwupdmgr update -y
# Remove unneeded packages # Remove unneeded packages
sudo apt purge -y apport baobab cups* eog gedit firefox* gnome-calculator gnome-characters* gnome-clocks gnome-font-viewer gnome-logs gnome-power-manager gnome-shell-extension-prefs libreoffice* seahorse tcpdump whoopsie sudo apt purge -y apport baobab cups* eog gedit firefox* gnome-calculator gnome-characters* gnome-clocks gnome-font-viewer gnome-logs gnome-power-manager gnome-shell-extension-prefs gnome-text-editor libreoffice* seahorse tcpdump whoopsie
sudo apt autoremove -y sudo apt autoremove -y
sudo snap remove firefox sudo snap remove firefox snap-store
sudo rm -rf /usr/share/hplip sudo rm -rf /usr/share/hplip
# Install packages that I use # Install packages that I use
sudo apt install -y gnome-console sudo apt install -y gnome-console gnome-software-plugin-flatpak
sudo snap install gnome-text-editor loupe sudo snap install gnome-text-editor loupe
# Setup Flatpak
sudo flatpak override --system --nosocket=x11 --nosocket=fallback-x11 --nosocket=pulseaudio --unshare=network --unshare=ipc --nofilesystem=host:reset --nodevice=input --nodevice=shm --nodevice=all
flatpak override --user --nosocket=x11 --nosocket=fallback-x11 --nosocket=pulseaudio --unshare=network --unshare=ipc --nofilesystem=host:reset --nodevice=input --nodevice=shm --nodevice=all
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak --user install org.gnome.Extensions com.github.tchx84.Flatseal org.gnome.Loupe -y
flatpak --user override com.github.tchx84.Flatseal --filesystem=/var/lib/flatpak/app:ro --filesystem=xdg-data/flatpak/app:ro --filesystem=xdg-data/flatpak/overrides:create
flatpak update -y
# Rosetta setup # Rosetta setup
if [ -f /media/psf/RosettaLinux/rosetta ]; then if [ -f /media/psf/RosettaLinux/rosetta ]; then
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/apt/rosetta-sources.list | sudo tee /etc/apt/sources.list unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/apt/rosetta-sources.list | sudo tee /etc/apt/sources.list