Use apt-get

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2025-06-05 01:21:28 -07:00
parent 600912992e
commit e21d7f2641
No known key found for this signature in database
GPG key ID: 555C902A34EC968F
5 changed files with 24 additions and 55 deletions

View file

@ -68,59 +68,59 @@ download https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main
sudo chmod 644 /etc/apt/apt.conf.d/99sane-upgrades
sudo apt update -y
sudo apt full-upgrade -y
sudo apt autoremove -y
sudo apt-get update -y
sudo apt-get full-upgrade -y
sudo apt-get autoremove -y
# Debloat
# Remove unnecessary stuff from the Qubes template
sudo apt purge -y gnome-software gnome-system-monitor thunderbird keepassxc
sudo apt-get purge -y gnome-software gnome-system-monitor thunderbird keepassxc
# Remove Network + hardware tools packages
sudo apt purge -y avahi* cups* '*nfs*' rygel '*smtp*' system-config-printer* '*telnet*'
sudo apt-get purge -y avahi* cups* '*nfs*' rygel '*smtp*' system-config-printer* '*telnet*'
# Remove support for some languages and spelling
sudo apt purge -y '*speech*'
sudo apt-get purge -y '*speech*'
# Remove codec + image + printers
sudo apt purge -y ImageMagick* sane* simple-scan
sudo apt-get purge -y ImageMagick* sane* simple-scan
# Remove Active Directory + Sysadmin + reporting tools
sudo apt purge -y realmd
sudo apt-get purge -y realmd
# Remove unnecessary network tools
sudo apt purge -y ifupdown mobile-broadband-provider-info modemmanager
sudo apt-get purge -y ifupdown mobile-broadband-provider-info modemmanager
# Remove Gnome apps
sudo apt purge -y baobab chrome-gnome-shell eog gnome-calculator gnome-calendar gnome-characters gnome-clocks gnome-color-manager \
sudo apt-get purge -y baobab chrome-gnome-shell eog gnome-calculator gnome-calendar gnome-characters gnome-clocks gnome-color-manager \
gnome-contacts gnome-disk-utility gnome-font-viewer gnome-logs gnome-maps gnome-music gnome-remote-desktop gnome-shell-extensions \
gnome-sound-recorder gnome-tweaks gnome-user-share gnome-weather totem
# Remove apps
sudo apt purge -y cheese evince evolution file-roller* firefox* libreoffice* seahorse shotwell synaptic* rhythmbox yelp
sudo apt-get purge -y cheese evince evolution file-roller* firefox* libreoffice* seahorse shotwell synaptic* rhythmbox yelp
# Remove other packages
sudo apt purge -y cron lvm2 lynx '*vmware*' xserver-xephyr xsettingsd
sudo apt-get purge -y cron lvm2 lynx '*vmware*' xserver-xephyr xsettingsd
sudo apt autoremove -y
sudo apt autoclean
sudo apt-get autoremove -y
sudo apt-get autoclean
# Add console group
sudo groupadd --system console
sudo usermod -aG console user
# Add extrepo
sudo apt install -y extrepo
sudo apt-get install -y extrepo
# Adding KickSecure's repo
sudo http_proxy=http://127.0.0.1:8082 https_proxy=http://127.0.0.1:8082 extrepo enable kicksecure
# Distribution morphing
sudo apt update
sudo apt full-upgrade -y
sudo apt install --no-install-recommends kicksecure-qubes-cli -y
sudo apt autoremove -y
sudo apt-get update
sudo apt-get full-upgrade -y
sudo apt-get install --no-install-recommends kicksecure-qubes-cli -y
sudo apt-get autoremove -y
sudo repository-dist --enable --repository stable-proposed-updates
sudo extrepo disable kicksecure
sudo mv /etc/apt/sources.list ~/
@ -135,8 +135,8 @@ sudo systemctl enable --now proc-hidepid.service
sudo systemctl enable --now hide-hardware-info.service
# Install packages
sudo apt update
sudo apt install --no-install-recommends gnome-console flatpak qubes-ctap qubes-gpg-split -y
sudo apt-get update
sudo apt-get install --no-install-recommends gnome-console flatpak qubes-ctap qubes-gpg-split -y
# Flatpak update service
download https://raw.githubusercontent.com/TommyTran732/QubesOS-Scripts/main/etc/systemd/user/update-user-flatpaks.service /etc/systemd/user/update-user-flatpaks.service

View file

@ -1,31 +0,0 @@
#!/bin/sh
# Copyright (C) 2024-2025 Thien Tran
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
set -eu
unpriv(){
sudo -u nobody "${@}"
}
download() {
unpriv curl -s --proxy http://127.0.0.1:8082 "${1}" | sudo tee "${2}" > /dev/null
}
download https://packages.element.io/debian/element-io-archive-keyring.gpg /usr/share/keyrings/element-io-archive-keyring.gpg
download https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/refs/heads/main/etc/apt/sources.list.d/element-io.sources /etc/apt/sources.list.d/element-io.sources
sudo apt update
sudo apt install -y element-desktop

View file

@ -26,6 +26,6 @@ download() {
curl -s --proxy http://127.0.0.1:8082 -L https://github.com/trustcrypto/OnlyKey-App/releases/download/v5.5.0/OnlyKey_5.5.0_amd64.deb -O
sudo apt install gnome-disk-utility qubes-video-companion ./OnlyKey_5.5.0_amd64.deb
sudo apt-get install gnome-disk-utility qubes-video-companion ./OnlyKey_5.5.0_amd64.deb
sudo systemctl disable --now hide-hardware-info.service

View file

@ -39,7 +39,7 @@ download https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main
sudo chmod 644 /etc/apt/apt.conf.d/99sane-upgrades
# Install packages
sudo apt install --no-install-recommends fwupd-qubes-vm qt5-style-plugins arc-theme -y
sudo apt-get install --no-install-recommends fwupd-qubes-vm qt5-style-plugins arc-theme -y
# Restrict /proc and access
sudo systemctl enable --now proc-hidepid.service

View file

@ -41,7 +41,7 @@ download https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main
chmod 644 /etc/apt/apt.conf.d/99sane-upgrades
# Install packages
apt install --no-install-recommends arc-theme pipewire-pulse qt5-style-plugins -y
apt-get install --no-install-recommends arc-theme pipewire-pulse qt5-style-plugins -y
# Restrict /proc and access
systemctl enable --now proc-hidepid.service