diff options
| -rw-r--r-- | install.sh | 54 | ||||
| -rw-r--r-- | sources.list | 2 |
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 |
