Skip to content

Instantly share code, notes, and snippets.

@Unixware
Created April 19, 2025 16:32
Show Gist options
  • Save Unixware/90338f15ae6d224526bff0df021dc1c8 to your computer and use it in GitHub Desktop.
Save Unixware/90338f15ae6d224526bff0df021dc1c8 to your computer and use it in GitHub Desktop.
# debian custom
#
#
#
#
if ! [ $(id -u) = 0 ]; then
echo "This script must run with sudo, try again..."
exit 1
fi
clear
export inst="sudo apt install --no-install-recommends -y"
#### pre-install
#
echo "cleaning up unwanted fonts/apps"
sudo apt purge firefox* gnome-music gnome-chess gnome-games \
lightsoff four-in-a-row gnome-robots pegsolitaire \
gnome-2048 hitori gnome-klotski gnome-mines \
gnome-mahjongg gnome-sudoku quadrapassel \
swell-foop gnome-tetravex gnome-taquin \
gnome-chess five-or-more gnome-nibbles tali transmission-gtk \
task-hebrew-desktop hdate-applet mlterm* anthy* mozc* \
thunderbird* xiterm+thai
sudo apt autoremove
sudo dpkg --add-architecture i386
sudo apt update
## sudo apt install linux-image-amd64/bookworm-backports
sudo apt upgrade
# if no need of extra apps for the netbooks
read -p "[?] Desktop-system install? [Y]/n " -n1 reply
reply=${reply:-Y}
if [[ $reply =~ ^[Yy]$ ]]; then
export desk=true
echo $desk
fi
########
#
echo "common apps"
sudo apt install --no-install-recommends feh fd-find git vim-gtk3 mc imagemagick \
python3-nautilus fatsort secure-delete alpine keepassxc \
ranger encfs solaar aptitude bash-completion aisleriot dialog \
sysvbanner
sysvbanner "fixes"
sudo usermod -a -G dialout,uucp,lp,disk $USER
## gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true
if [ "$desk" = false ]
then
echo "LapApps"
echo "nope for laps"
exit ;
else
echo "DeskApps"
$inst pandoc rclone rsync mupdf aria2 minicom \
putty printer-driver-splix qimgv qt5-image-formats-plugins \
mtpaint lzip lzop ncompress pbzip2 pigz plzip unar unshield \
arj lbzip2 lhasa p7zip zip unzip bchunk \
f2fs-tools android-file-transfer ffmpeg exiftool pipx \
flrig jtdx hatari dosbox
fi
####
sysvbanner "pyApps"
echo "python apps installation"
#
# pipx < v1.6 can't install all in one!
for p in amitools img2pdf ocrmypdf gallery-dl mintop \
adif_merge getgist epy-reader pdftools pdfposter \
pdfmerge pcbasic ratarmount litecli esptool \
you-get socialscan yt-dlp sherlock-project
do
pipx install $p
done
## extra
sysvbanner "END!"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment