From 482cd9ad53b5a3dd69a613338cb643313190ec41 Mon Sep 17 00:00:00 2001 From: klaas Date: Wed, 26 Mar 2025 17:12:28 +0100 Subject: [PATCH] Install Skript --- install.sh | 62 ++++++++++++++++++++++ ssh_password => ssh/ssh_password | 0 ssh_password.help => ssh/ssh_password.help | 0 3 files changed, 62 insertions(+) create mode 100644 install.sh rename ssh_password => ssh/ssh_password (100%) rename ssh_password.help => ssh/ssh_password.help (100%) diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..094cfbe --- /dev/null +++ b/install.sh @@ -0,0 +1,62 @@ +#!/usr/bin/env bash + +# Nur root darf Änderungen machen +if [ "$EUID" -ne 0 ] && [ "$1" != "-s" ]; then + echo "Bitte mit sudo ausführen." + exit 1 +fi + +# folder for install files will be removed later +cd ~ +mkdir install +cd install + +# install essentials +apt install nala -y +nala install ninja-build gettext libtool-bin cmake g++ pkg-config unzip curl git tmux build-essential manpages-dev clangd python3-jedi zsh -y + +# zsh config +wget https://git.boergmann.it/klaas/shellskripte/main/configs/zshrc -O ~/.zshrc + +# ssh Keys für alle Maschinen +wget https://git.boergmann.it/klaas/shellskripte/main/ssh/public_keys -O ~/.ssh/authorized_keys + +# ssh Password Authenitcatoon no +wget https://git.boergmann.it/klaas/shellskripte/main/ssh/ssh_password +./ssh_password -n + +# install neovim +git clone https://github.com/neovim/neovim +cd neovim +git checkout stable +make CMAKE_BUILD_TYPE=RelWithDebInfo +sudo make install + +# config file for nvim +mkdir ~/.config/nvim +wget https://git.boergmann.it/klaas/shellskripte/main/configs/init.vim -O ~/.config/nvim/init.vim +sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' +nvim --headless +PlugInstall +qa +# Language support for python and C +nvim --headless -c 'CocInstall -sync coc-python' -c 'qall' +nvim --headless -c 'CocInstall -sync coc-clang' -c 'qall' + +# Install NodeJS +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash +source ~/.bashrc +nvm install v20 + +# usefull packages für nodeJS +npm install -g yarn +npm install -g nodemon + +# nvim language support for nodeJS +cd ~/.local/share/nvim/plugged/coc.nvim +yarn install +yarn build + +# aufräumen +rm -Rf ~/install + +# zsh nutzen +usermod -s /bin/zsh klaas diff --git a/ssh_password b/ssh/ssh_password similarity index 100% rename from ssh_password rename to ssh/ssh_password diff --git a/ssh_password.help b/ssh/ssh_password.help similarity index 100% rename from ssh_password.help rename to ssh/ssh_password.help