Make everything an install script

This commit is contained in:
David Heinemeier Hansson 2024-05-26 16:21:30 -07:00
parent 6190b4d1e8
commit af2fdd62cc
4 changed files with 21 additions and 20 deletions

View File

@ -1,28 +1,14 @@
# Libraries and infrastructure
echo -e "\e[32mINSTALLING CORE DEVELOPMENT LIBRARIES\e[0m"
echo -e "\e[32mINSTALLING OMAKUB\e[0m"
# Needed for all installers
sudo apt update -y
sudo apt install -y \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev
sudo apt install -y curl git
# CLI apps
echo -e "\e[32mINSTALLING CLI APPSe[0m"
sudo apt install -y git curl fzf ripgrep bat eza zoxide btop apache2-utils
sudo snap install zellij --classic
# GUI apps
echo -e "\e[32mINSTALLING GUI APPSe[0m"
sudo apt install -y xournalpp alacritty
sudo snap install 1password spotify vlc zoom-client signal-desktop pinta
sudo snap install code --classic
# Installers
echo -e "\e[32mRUNNING CUSTOM INSTALLERSe[0m"
# Run installers
for script in ~/.omakub/install/*.sh; do source $script; done
# Reboot to pick up all settings
# Reboot to pickup changes
read -p "Ready to reboot the system for all settings to take effect? (YES/no): " response
if [[ -z "$response" || "$response" =~ ^[Yy][Ee][Ss]$ || "$response" =~ ^[Yy]$ ]]; then
sudo reboot

8
install/gui-apps.sh Normal file
View File

@ -0,0 +1,8 @@
sudo apt install -y xournalpp alacritty
sudo snap install 1password
sudo snap install spotify
sudo snap install vlc
sudo snap install zoom-client
sudo snap install signal-desktop
sudo snap install pinta
sudo snap install code --classic

5
install/libraries.sh Normal file
View File

@ -0,0 +1,5 @@
sudo apt install -y \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev

2
install/terminal-apps.sh Normal file
View File

@ -0,0 +1,2 @@
sudo apt install -y fzf ripgrep bat eza zoxide btop apache2-utils
sudo snap install zellij --classic