scripts/setup-void.sh

59 lines
1.4 KiB
Bash
Raw Normal View History

2024-08-03 10:53:26 +03:00
#!/bin/bash
# TODO: setup network using iwd
# TODO: setup PolicyKit
# TODO: setup lightdm
# TODO: setup compositor
# TODO: install nvidia drivers (if nvidia gpu installed)
2024-08-03 10:53:26 +03:00
# update the package manager
sudo xbps-install -Suy xbps
# setup doas
sudo xbps-install -y opendoas
sudo bash -c "echo 'permit nopass $USER as root' > /etc/doas.conf"
# update conflicted deps
doas xbps-install -yu util-linux
# install deps required for setup
doas xbps-install -y git rsync make gcc libX11-devel libXft-devel libXinerama-devel xorg-server xinit xauth xorg-fonts xorg-input-drivers pkg-config
2024-08-07 11:28:44 +03:00
mkdir ./.setup-void.temp
cd ./.setup-void.temp
2024-08-03 10:53:26 +03:00
git clone https://github.com/spirit-x64/dotfiles.git
git clone https://github.com/spirit-x64/dwm.git
git clone https://github.com/spirit-x64/dmenu.git
git clone https://github.com/spirit-x64/st.git
rsync -a --exclude='.git/' --exclude='LICENSE' --exclude='.gitignore' dotfiles/ $HOME
2024-08-03 10:53:26 +03:00
cd dwm
doas make clean install
cd ../dmenu
doas make clean install
cd ../st
doas make clean install
2024-08-18 19:57:49 +03:00
cd ..
2024-08-03 10:53:26 +03:00
echo 'exec dwm' > $HOME/.xinitrc
# system full-update
doas xbps-install -Suy
# install other packages i use
2024-08-07 11:19:20 +03:00
doas xbps-install -y patch wget curl vim firefox vscode juliaup yt-dlp tree
2024-08-03 10:53:26 +03:00
doas ln -s /usr/bin/julialauncher /usr/bin/julia
juliaup self update
juliaup add 1.0.0
juliaup add 1.10
2024-08-03 10:53:26 +03:00
juliaup add 1.11
juliaup default 1.10
2024-08-07 11:28:44 +03:00
# clean up
rm -fr ./.setup-void.temp/