summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2022-12-06 00:25:38 +0100
committeryuzu-eva <stevenhu@web.de>2022-12-06 00:25:38 +0100
commit9f8c4db96af21d17cee3c203d464f56c407e8c41 (patch)
tree71740b89c9910a8c28c26be6764299d0ff9f0d2d
parent0494eafc5b7d2266bba07a780babbaf61627c7c6 (diff)
install script
-rw-r--r--install.sh54
-rw-r--r--sources.list2
2 files changed, 56 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100644
index 0000000..26927a2
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# install script for debian unstable
+
+# check if script is run as root
+if [[ $EUID -ne 0 ]]; then
+ echo "You must be a root user to run this script, please run sudo ./install.sh" 2>&1
+ exit 1
+fi
+
+# change debian so unstable branch
+cp /etc/apt/sources.list /etc/apt/sources.list.bak
+cp sources.list /etc/apt/sources.list
+
+username=$(id -u -n 1000)
+builddir=$(pwd)
+
+# update packages list and update system
+apt update
+apt upgrade -y
+
+mkdir -p /home/$username/.config
+mkdir -p /home/$username/.local/src
+
+apt install git -y
+
+# install building stuff
+apt install build-essential libtool pkg-config -y
+
+# install dependencies for st and dwm
+apt install libx11-dev libxext-dev libxft-dev libxrender-dev libfontconfig1-dev libfreetype6-dev \
+ libx11-xcb-dev libxcb-res0-dev libxinerama-dev xutils-dev -y
+
+apt install xinit -y
+
+# install dwm
+cd /home/$username/.local/src
+git clone https://github.com/yuzu-eva/my-personal-dwm dwm
+cd dwm
+make && make install
+
+# install st
+cd /home/$username/.local/src
+git clone https://github.com/yuzu-eva/my-personal-st st
+cd st
+make && make install
+
+#install dmenu
+cd /home/$username/.local/src
+git clone https://github.com/yuzu-eva/my-personal-dmenu dmenu
+cd dmenu
+make && make install
+
+cd
diff --git a/sources.list b/sources.list
new file mode 100644
index 0000000..e6b7c2e
--- /dev/null
+++ b/sources.list
@@ -0,0 +1,2 @@
+deb http://deb.debian.org/debian/ sid main non-free contrib
+deb-src http://deb.debian.org/debian/ sid main non-free contrib