From 8b4c6524fa242bdd177cf5c07de36d2fc3e5060f Mon Sep 17 00:00:00 2001 From: Spirit Date: Sat, 3 Aug 2024 10:53:26 +0300 Subject: [PATCH] Create setup-void.sh --- setup-void.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 setup-void.sh diff --git a/setup-void.sh b/setup-void.sh new file mode 100644 index 0000000..d0ba368 --- /dev/null +++ b/setup-void.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +# 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 + +mkdir $HOME/repos/ +cd $HOME/repos + +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' dotfiles/ $HOME + +cd dwm +doas make clean install + +cd ../dmenu +doas make clean install + +cd ../st +doas make clean install + +echo 'exec dwm' > $HOME/.xinitrc + +# system full-update +doas xbps-install -Suy +# install other packages i use +doas xbps-install -y patch wget curl vim firefox vscode juliaup yt-dlp + +doas ln -s /usr/bin/julialauncher /usr/bin/julia + +juliaup self update +juliaup add 1.0.0 +juliaup add 1.11 +juliaup default 1.11