Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226#!/usr/bin/env bash
## UBUNTU desktop mostly, some agnostic...
# In the home directorysudo apt updatesudo apt upgrade
# fail2ban
# git settingsgit config --global core.editor "vim"
# Install github cli# https://cli.github.com/
(type -p wget >/dev/null || (sudo apt update && sudo apt install wget -y)) \ && sudo mkdir -p -m 755 /etc/apt/keyrings \ && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \ && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \ && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ && sudo mkdir -p -m 755 /etc/apt/sources.list.d \ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ && sudo apt update \ && sudo apt install gh -y
sudo apt updatesudo apt install gh
# Pull latest bashh repogh repo clone tannerr-dev/bashh
# pull latest vault repogh repo clone tannerr-dev/vault
## neovim### nvim dependenciessudo apt install makesudo apt install gccsudo apt install ripgrepsudo apt install fd-findsudo apt install fonts-noto-color-emojisudo apt install xclip
### upload .conf/nvim/init.lua to github...sudo apt-get install ninja-build gettext cmake curl build-essential gitgit clone https://github.com/neovim/neovimcd neovimrm -r build/ # clear the CMake cachemake CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/neovim"make installecho 'export PATH="$HOME/neovim/bin:$PATH"' >> ~/.bashrccd ~source ~/.bashrccd .configgh repo clone tannerr-dev/nvim
## Kanata set up (requires rust)### Install rust### https://www.rust-lang.org/learn/get-startedcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo --version
### Install kanata### https://github.com/jtroo/kanata
cargo install kanata
###Pull latest kanata config from githubcd .configgh repo clone tannerr-dev/kanata-configcd ~sudo groupadd uinputsudo usermod -aG input ttannerrsudo usermod -aG uinput ttannerrsudo touch /etc/udev/rules.d/01-kanata.rules# echo# KERNEL=="UINPUT", MODE="0660", GROUP="uinput", OPTIONS+="static_node=uinput"
### On Linux and macOS, this may not work without `sudo`, see below### kanata --cfg <your_configuration_file>
# Install lsdapt install lsd
## TODO experiment with i3 lol## i3 installation
# tmux?
## golang### need to download from website### mv the file to the home directorysudo rm -rf /usr/local/gosudo tar -C /usr/local -xzf go1.25.2.linux-amd64.tar.gz### also add this to the bashrcexport PATH=$PATH:/usr/local/go/bin
## airgo install github.com/air-verse/air@latestexport PATH=$PATH:/home/ttannerr/go/bin/air
## install hugo
## opencodecurl -fsSL https://opencode.ai/install | bash
## install chromesudo apt install chromium-browser
## install bravecurl -fsS https://dl.brave.com/install.sh | sh
## docker## https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository### Add Docker's official GPG key:sudo apt-get updatesudo apt-get install ca-certificates curlsudo install -m 0755 -d /etc/apt/keyringssudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.ascsudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/nullsudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# add user to docker group to run commands without sudosudo usermod -a -G docker ttannerr## needs a session refresh to take effect
## install psql clientsudo apt install postgresql-client
## install hugosudo apt install hugo
# Install obsidian# sudo dpkg -i Downloads/obsidian_1.8.10_amd64.deb
## C librariessudo apt-get install build-essentialsudo apt-get install clangsudo apt-get install libc6-dev
## Treesitter CLIcargo install --locked tree-sitter-cli
# maybe fastfetch now?sudp apt install neofetch
## i3sudo apt install i3## needs to update config file in .config/i3sudo apt install rofisudo apt install fehsudo apt install nemo
## lazy gitgo install github.com/jesseduffield/lazygit@latest
####
# https://yazi-rs.github.io/docs/installation/#debianapt install ffmpeg 7zip jq poppler-utils fd-find ripgrep fzf zoxide imagemagick## zoxide# cargo install zoxide --locked# Add this to the end of your config file (usually ~/.bashrc):# eval "$(zoxide init bash)"
#https://yazi-rs.github.io/docs/installation#source# Setup the latest stable Rust toolchain via rustup:curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shrustup update
# Clone the repository and build Yazi:git clone https://github.com/sxyazi/yazi.gitcd yazicargo build --release --locked# Then, add yazi and ya to your $PATH:mv target/release/yazi target/release/ya /usr/local/bin/
# https://yazi-rs.github.io/docs/quick-start/# ## move this function into bashrc to exit yazi into new dir#function y() {# local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd# command yazi "$@" --cwd-file="$tmp"# IFS= read -r -d '' cwd < "$tmp"# [ "$cwd" != "$PWD" ] && [ -d "$cwd" ] && builtin cd -- "$cwd"# rm -f -- "$tmp"# }##
sudo apt install redshift
cargo install giff
## pulumicurl -fsSL https://get.pulumi.com | sh
## nix curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install | sh -s -- --no-daemon