- Build.sh
#!/usr/bin/bash
# Run this script twice, after initial build, and then a second time after the reboot.
LOG="~/Build.log"
cd ~
if [[ ! -f "${LOG}" ]]; then
sudo apt install etckeeper tig git -y | tee -a ${LOG}
sudo apt update | tee -a ${LOG} && sudo apt upgrade -y | tee -a ${LOG} && sudo apt autoremove | tee -a ${LOG} && echo "Begin stage two after reboot" >> ${LOG}
sudo reboot
fi
sudo curl -o /etc/sudoers.d/10-Update 'https://wiki.cyli.org/doku.php?do=export_code&id=auto_update_without_password&codeblock=0'
sudo chmod 0440 /etc/sudoers.d/10-Update
sudo curl -o /etc/polkit-1/rules.d/10-Update.rules 'https://wiki.cyli.org/doku.php?do=export_code&id=auto_update_without_password&codeblock=1'
sudo chmod 0644 /etc/polkit-1/rules.d/10-Update.rules
for Font in anonymous_pro roboto_mono reddit_mono ; do
wget -O ${Font}.zip "https://wiki.cyli.org/lib/exe/fetch.php?media=other:${Font}.zip"
sudo unzip -j ${Font}.zip "*.ttf" -d /usr/share/fonts/${Font}/; done
sudo fc-cache -v -f /usr/share/fonts
fc-cache -v -f ~/.cache/fontconfig
sudo apt install -y neovim mc btop htop glances chromium flameshot rpi-imager f3 keepassxc \
nmap openssh-server vlc transmission wget gnupg ncdu rsync tmux inkscape openscad \
xfig* freerdp3-x11 syncthing obs-studio elinks links lynx w3m
sudo fwupdmgr refresh
sudo fwupdmgr update ## Reboot after...
curl -o ~/Build.sh "https://wiki.cyli.org/doku.php?do=export_code&id=build&codeblock=0"
chmod a+x ~/Build.sh
~/Build.sh