Files
dotfiles/.scripts/install-fed.sh
T

61 lines
1.7 KiB
Bash
Executable File

#!/bin/bash
# Install script for ntnsndr's Fedora environment
echo "Before running this, be sure Flatpak is installed: https://flatpak.org/setup/ If not ready, cancel with ctrl+c"
echo "Beginning install script for ntnsndr Fedora environment"
# Ensure .bash_aliases works, not default on Fedora
cat > ~/.bashrc << EOF
if [ -f ~/.bash_aliases ]; then
source ~/.bash_aliases
fi
EOF
# Initial utilities
sudo dnf -y update && dnf upgrade
sudo dnf -y install git
sudo dnf -y install xdg-open
sudo dnf -y install nodejs
sudo dnf -y install gnome-shell-extension-appindicator
# pipx for Python stuff
sudo dnf -y install pipx
pipx ensurepath
sudo pipx ensurepath --global # optional to allow pipx actions with --global argument
# nvim
sudo dnf -y install neovim
~/.scripts/install-vim.sh
# pandoc
sudo dnf -y install pandoc
sudo dnf -y install texlive
sudo dnf -y install texlive-xetex
sudo dnf -y install texlive-latex-extra
sudo dnf -y install lmodern
# revealjs
cd ~/.revealjs
rm -rf reveal.js/ # remove existing install
git clone https://github.com/hakimel/reveal.js.git
cd reveal.js
npm install
cp ~/.revealjs/ntn.css ~/.revealjs/reveal.js/dist/theme/
cd ~
echo "Check correct versions between reveal and pandoc: https://github.com/jgm/pandoc/wiki/Using-pandoc-to-produce-reveal.js-slides"
read response
# flatpaks
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
sudo flatpak install com.nextcloud.desktopclient.nextcloud
sudo flatpak install org.keepassxc.KeePassXC
sudo flatpak install org.zotero.Zotero
echo "See ~/Cloud/Notes/Config.md for Zotero setup instructions"
read response
# ai
echo "Run ~/.scripts/ai.sh to install local AI stuff"
echo "Installation script complete"