bootstrap
This commit is contained in:
0
.config/yadm/bootstrap##default
Normal file → Executable file
0
.config/yadm/bootstrap##default
Normal file → Executable file
0
.config/yadm/bootstrap##distro.arch
Normal file → Executable file
0
.config/yadm/bootstrap##distro.arch
Normal file → Executable file
112
.config/yadm/bootstrap##distro.ubuntu
Normal file
112
.config/yadm/bootstrap##distro.ubuntu
Normal file
@@ -0,0 +1,112 @@
|
||||
graphical=false
|
||||
for arg in "$@"; do
|
||||
if [[ $arg == "--graphical" ]]; then
|
||||
graphical=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
sudo apt update
|
||||
|
||||
sudo apt install \
|
||||
unzip \
|
||||
feh \
|
||||
wget \
|
||||
curl \
|
||||
neofetch \
|
||||
bashtop \
|
||||
htop \
|
||||
build-essential \
|
||||
cmake \
|
||||
pkg-config \
|
||||
python3 \
|
||||
wireguard \
|
||||
-y
|
||||
|
||||
# Dependencies for cargo
|
||||
sudo snap install rustup --classic
|
||||
rustup default stable
|
||||
rustup update
|
||||
# Oh my posh
|
||||
curl -s https://ohmyposh.dev/install.sh | bash -s
|
||||
# Node version manager
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
nvm install 22
|
||||
nvm use 22
|
||||
npm install
|
||||
# Install nvim
|
||||
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
|
||||
sudo rm -rf /opt/nvim
|
||||
sudo rm -rf /opt/nvim-linux-x86_64
|
||||
sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz
|
||||
|
||||
if $graphical; then
|
||||
sudo apt install \
|
||||
i3 \
|
||||
i3blocks \
|
||||
i3lock \
|
||||
suckless-tools \
|
||||
arandr \
|
||||
scrot \
|
||||
gnupg2 \
|
||||
gnupg-agent \
|
||||
dirmngr \
|
||||
cryptsetup \
|
||||
scdaemon \
|
||||
pcscd \
|
||||
secure-delete \
|
||||
hopenpgp-tools \
|
||||
yubikey-personalization \
|
||||
solaar \
|
||||
cifs-utils \
|
||||
rofi \
|
||||
brightnessctl \
|
||||
libfreetype6-dev \
|
||||
libfontconfig1-dev \
|
||||
libxcb-xfixes0-dev \
|
||||
libxkbcommon-dev \
|
||||
dunst \
|
||||
nvme-cli \
|
||||
-y
|
||||
|
||||
# Remove ibus since it causes issues with my custom keyboard layout
|
||||
sudo apt remove ibus
|
||||
|
||||
sudo systemctl enable bluetooth.service
|
||||
|
||||
# Used for scrot
|
||||
mkdir ~/Screenshots
|
||||
|
||||
sudo snap install caprine
|
||||
sudo snap install telegram-desktop
|
||||
sudo snap install discord
|
||||
sudo snap install firefox
|
||||
sudo snap install signal-desktop
|
||||
sudo snap install code --classic
|
||||
sudo snap install moonlight
|
||||
sudo snap install heroic
|
||||
sudo snap install freecad
|
||||
sudo snap install thunderbird
|
||||
|
||||
|
||||
# Cargo packages
|
||||
## Alacritty needs to be installed with cargo to get the version that supports toml configurations
|
||||
cargo install alacritty
|
||||
cargo install battop
|
||||
|
||||
# Access to brightness devices for brightnessctl
|
||||
sudo usermod -aG video wholteza
|
||||
|
||||
# Decrypt and move VPN wireguard key
|
||||
gpg --decrypt /home/wholteza/.config/wireguard/got58-got80.conf.gpg > /home/wholteza/.config/wireguard/got58-got80.conf && sudo mv /home/wholteza/.config/wireguard/got58-got80.conf /etc/wireguard/ovpn.conf
|
||||
|
||||
# Xorg configs
|
||||
sudo cp /home/wholteza/.config/X11/xorg.conf.d/* /etc/X11/xorg.conf.d/
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
source ~/.bashrc
|
||||
echo Done!
|
||||
Reference in New Issue
Block a user