initial commit

This commit is contained in:
maryjane 2023-03-04 03:10:50 +00:00
parent bdfd2b49a1
commit 30cca8426b
2 changed files with 137 additions and 0 deletions

130
L5-config Normal file
View File

@ -0,0 +1,130 @@
#!/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 <<EOF > /etc/apt/sources.list.d/lading.list
deb https://repo.pureos.net/pureos-debug/ landing main
EOF
cat <<EOF >/etc/apt/sources.list.d/octarine.list
deb https://repo.pureos.net/pureos octarine main
EOF
# Add debug package repositories
cat <<EOF > /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

7
reencrypt.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
image=$1 loop=$( kpartx -av ${image} | awk 'NR==1{ print substr($3,1,5) }' )
echo -n "123456" | cryptsetup-reencrypt /dev/mapper/${loop}p2 -
sync
losetup -d /dev/${loop}
kpartx -d /dev/${loop}