Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113#!/usr/bin/env fish
# ⚠️ This script is for installing Aesthetic Computer development dependencies on# a Thinkpad running Fedora.
# Print the current shellecho "🔵 Current shell is now: $SHELL"
echo "🟣 Installing VS Code package repositories"
# Import the Microsoft GPG key for Visual Studio Codesudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
# Add the Visual Studio Code repositoryecho -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo >/dev/null
# Update the package cachednf check-update
echo "🟣 Installing `foot`, `fzf`, `google-chrome-stable`, `code`, `docker`, `bpytop`, `emacs`, `rust`, `cargo`, `xxd` and `nss-tools`"
# Install dependenciessudo dnf install -y foot fzf google-chrome-stable code docker bpytop emacs rust cargo xxd nss-toolsecho "🟣 Installing `dbus-devel`, `pkgconf-pkg-config`"sudo dnf install -y dbus-devel pkgconf-pkg-config
echo "🟣 Enabling `docker` system services"
# Enable and start Docker servicesudo systemctl enable dockersudo systemctl start docker
# add user to `docker` groupsudo usermod -aG docker $USERnewgrp docker
echo "🟣 Installing `brew`"# Install Linuxbrew non-interactivelyNONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "🟣 Symlinking dotfiles"# Add Linuxbrew to PATH# set -U fish_user_paths /home/linuxbrew/.linuxbrew/bin $fish_user_paths# Symlink dotfilesbash ~/aesthetic-computer/dotfiles/symlink.sh
echo "🟣 Installing `gnome-randr`, `starship`, `nvim`, and `fnm`"
# Install gnome-randr using Cargocargo install gnome-randr
# TODO: ❓ Could I programmaticaly add my system shortcuts here? 24.08.21.21.43
brew install starship
brew install nvim
brew install mkcert# Install mkcert certificates locallymkcert -install
# Install fnm (Fast Node Manager)brew install fnm
echo "🟣 Sourcing fish config"# reload fish configuration, which will add brew and cargo to path, etc.source ~/.config/fish/config.fish
# Set the default Node.js version to most recent LTSfnm install lts/ironfnm default lts/iron
echo "🟣 Installing `devcontainer` cli"
# Install devcontainer CLI globally using npmnpm install -g @devcontainers/cli typescript typescript-language-server
echo "🟣 Installing `Fira Code` font"
# Install system font (optional, depending on your needs)mkdir -p ~/.local/share/fontscd ~/.local/share/fontswget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/FiraCode.ziprm -rf FiraCodemkdir FiraCodeunzip FiraCode.zip -d FiraCoderm FiraCode.zipcd -
echo "🟣 Installing `theme.sh` utility"
# Install theme.sh toolssudo curl -Lo /usr/bin/theme.sh 'https://git.io/JM70M'sudo chmod +x /usr/bin/theme.sh
echo "🟣 Installing Aesthetic Computer system daemon"# Install AC JavaScript system daemon for watching SSL and perhaps# performing other tasks... on command, which could accept# messages from the client.# Is this still being used actively? 24.08.21.21.46fish ~/aesthetic-computer/daemon/install-daemon.fish
echo "🟣 Resetting dock icons"gsettings set org.gnome.shell favorite-apps "[]"
echo "🟣 Setting key repeat rate and delay"gsettings set org.gnome.desktop.peripherals.keyboard delay 250gsettings set org.gnome.desktop.peripherals.keyboard repeat-interval 30
echo "🟣 Adding `aesthetic.local` and `sotce.local` to `/etc/hosts`"echo "127.0.0.1 aesthetic.local" | sudo tee -a /etc/hostsecho "127.0.0.1 sotce.local" | sudo tee -a /etc/hosts