#!/bin/bash set -e if [ $UID = 0 ] ; then echo "I am root, I can do this!" else echo "I am not root, run me with please!" && exit 1 fi # APT land: #Add landing and octarine repos: cat < /etc/apt/sources.list.d/lading.list deb https://repo.pureos.net/pureos-debug/ landing main EOF cat </etc/apt/sources.list.d/octarine.list deb https://repo.pureos.net/pureos octarine main EOF # Add debug package repositories cat < /etc/apt/sources.list.d/debug.list deb https://repo.pureos.net/pureos-debug/ byzantium-debug main deb https://repo.pureos.net/pureos-debug/ landing-debug main deb http://debug.mirrors.debian.org/debian-debug/ bullseye-debug main EOF # Update the system after new repos are added apt update apt upgrade # Install dev and debug tools and tools to build deb packages apt install -y --no-install-recommends git-buildpackage PKG+="systemd-coredump gdb gnome-calls-dbgsym chatty-dbgsym libglib2.0-0-dbgsym libgtk-3-0-dbgsym phoc-dbgsym phosh-dbgsym squeekboard-dbgsym epiphany-browser-dbgsym " PKG+="build-essential devscripts git ninja-build meson pkg-config " # Personal userland packages # Chat PKG+="dino-im/octarine " PKG+="nheko " PKG+="mumble " PKG+="telegram-desktop " # Browser PKG+="firefox-esr " PKG+="firefox-esr-mobile-config " PKG+="webext-ublock-origin-firefox " PKG+="webext-privacy-badger " PKG+="webext-https-everywhere " # Password management PKG+="seahorse " PKG+="gnome-passwordsafe " # Media and news PKG+="celluliod " PKG+="gpodder " PKG+="giara " PKG+="gnome-feeds " PKG+="lollypop " # Networks PKG+="whatip " PKG+="network-manager-openvpn-gnome " # Several PKG+="librem5-goodies " PKG+="clamtk " PKG+="prepaid-manager-applet " PKG+="htop " PKG+="animatch " PKG+="appstream-util " PKG+="bash-completion " PKG+="ssh " PKG+="ncdu " PKG+="gnome-screenshot/octarine " # Smartcard reader related PKG+="opensc " PKG+="pcsc-tools " PKG+="pcscd " PKG+="scdaemon " PKG+="stm32flash " # Install the packages apt install -y "$PKG" # Configs: systemctl enable ssh systemctl start ssh gpgvsccid=$(cat ~/.gnupg/scdaemon.conf) CONTROL="disable-ccid" if [ "$gpgvsccid" != "$CONTROL" ]; then echo "disable-ccid" >> ~/.gnupg/scdaemon.conf && pkill -9 scdaemon else echo "Nothing to change in GPG" fi