Skip to content

Instantly share code, notes, and snippets.

@Unixware
Last active October 25, 2024 14:42
Show Gist options
  • Save Unixware/2adc506e4bca1b745afd28aaee3af40a to your computer and use it in GitHub Desktop.
Save Unixware/2adc506e4bca1b745afd28aaee3af40a to your computer and use it in GitHub Desktop.
#
# Debian minimal desktop post-install script I use
#
#
clear
export inst="sudo apt install -y --no-install-recommends"
#
clear
read -p "[!] this step will install >> contrib non-free << repos!" -n1 wkey
echo ""
sudo cp ./sources.list /etc/apt/sources.list
clear
echo "cleaning up unwanted fonts/apps"
sudo apt purge -y fonts-arabeyes mlterm
# 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
##### pre-install apps
#
#
sudo apt update
sudo apt install sysvbanner
clear
########
#
#
sysvbanner "core apps"
#
sudo apt install -y xorg xinit xbindkeys xsensors xbacklight xinput ksh\
xserver-xorg-input-all dbus-x11 feh scrot strace \
bsdmainutils arandr lxappearance menu picom orage aptitude sakura \
firmware-linux-nonfree intel-gpu-tools libxcb-xinerama0 intel-media-va-driver-non-free \
network-manager-gnome network-manager alttab tmux \
libnotify-bin dunst tint2 xfce4-power-manager slick-greeter i3 dosfstools
sudo chsh -s /bin/ksh chris
# non free
# layers.acceleration.force-enabled on firefox?
echo "fonts + themes"
sudo apt install -y fonts-noto-color-emoji fonts-liberation2 \
gtk2-engines-murrine qt5-style-plugins qt5ct gnome-themes-extra \
#
echo "ufw setup"
sudo apt install -y ufw
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw enable
# pipewire
#
echo "Pipewire"
#
sudo apt install -y pipewire-pulse wireplumber pipewire-media-session-
sudo apt install volumeicon-alsa pulseaudio-utils pavucontrol
#
systemctl --user --now enable wireplumber.service
# zram
#
echo "zRAM"
sudo apt install zram-tools
echo -e "ALGO=zstd\nPERCENT=60" | sudo tee -a /etc/default/zramswap
sudo service zramswap reload
###### END of services
sysvbanner "clean up"
sudo apt update
sudo apt -y autoremove
sysvbanner "common apps"
sudo apt install -y --no-install-recommends nfs-common numlockx git \
vim-gtk3 xxd hexedit x86dis mc bash-completion \
fatsort secure-delete curl pipx whois traceroute dconf-cli \
xclip nmap ncat alpine keepassxc wget ranger rename vlc orpie encfs \
libavif-bin gvfs gvfs-backends thunar thunar-archive-plugin xarchiver \
gvfs-fuse gnome-disk-utility solaar evince ntp
### firefox install -not ESR! -
## sudo install -d -m 0755 /etc/apt/keyrings
## wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null
## echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null
## echo '
## Package: *
## Pin: origin packages.mozilla.org
## Pin-Priority: 1000
## ' | sudo tee /etc/apt/preferences.d/mozilla
sudo apt-get update && sudo apt-get install firefox-esr
# sysvbanner "set dosemu"
#echo "deb http://ppa.launchpadcontent.net/dosemu2/ppa/ubuntu kinetic main" | sudo tee /etc/apt/sources.list.d/dosemu.list
#echo "deb-src http://ppa.launchpadcontent.net/dosemu2/ppa/ubuntu kinetic main" | sudo tee -a /etc/apt/sources.list.d/dosemu.list
#sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6D9CD73B401A130336ED0A56EBE1B5DED2AD45D6
#sudo apt update
#sudo apt install -y dosemu2
sysvbanner "set groups"
sudo usermod -a -G dialout,uucp,lp,disk $USER
if [ "$desk" = false ] ; then
echo "laptop stuff"
sudo apt install -y laptop-mode-tools
exit
fi
sysvbanner "DeskApps"
# lots of stuff here...
#
sudo dpkg --add-architecture i386 ; sudo apt update
echo "Apps mainly for DESKTOP!"
sudo apt install -y --no-install-recommends exiftool simple-scan pandoc rclone rsync \
mupdf mupdf-tools flrig wsjtx jtdx sshpass aria2 minicom putty gftp cups \
printer-driver-splix dconf-editor qimgv mtpaint \
libmtp-common mtp-tools libmtp-runtime libmtp9 libdbus-glib-1-2 \
lrzip lzip lzop ncompress pbzip2 pigz plzip unar unshield \
arj lbzip2 lhasa liblz4-tool p7zip zip unzip bchunk adb fastboot f2fs-tools \
ffmpeg libgpod4 gtkpod libwacom-bin
sudo apt install -y audacious tin hatari vice dosbox
sudo apt install -y --no-install-recommends abiword gnumeric
echo "desktop libs for some apps"
sudo apt install -y libserialport0 libsdl2-image-2.0-0 \
libsdl2-ttf-2.0-0 libsdl2-net-2.0-0 sqlite3 parallel \
echo "desktop dev packages"
sudo apt install -y autoconf pkg-config bison cmake patchelf python3-dev
exit
####
sysvbanner "pyApps"
echo "python apps installation"
# pipx install ffcuesplitter split cue/wav to mp3
# pipx install brightness-controller-linux for laptops
#
pipx install {amitools,img2pdf,ocrmypdf,gallery-dl,mintop}
pipx install {adif_merge,getgist,epy-reader,pdftools.pdfposter,pdfmerge}
pipx install {pcbasic, ratarmount, litecli, esptool}
clear
sysvbanner "end!"
echo "[enter] to fix /etc/NetworkManager/NetworkManager.conf"
read a
sudo sed -i 's/false/true/' /etc/NetworkManager/NetworkManager.conf
exit
#################### custom extra apps
curl https://getmic.ro | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment