anpassungen von Sudo und klonen statt einzeldownloads
This commit is contained in:
		
							parent
							
								
									f29cf15a11
								
							
						
					
					
						commit
						ccaf7e70d8
					
				| 
						 | 
				
			
			@ -21,4 +21,4 @@ klont ein Repository vom eigenen Server und wechselt in das Verzeichnis
 | 
			
		|||
 | 
			
		||||
### initial install
 | 
			
		||||
 | 
			
		||||
curl -o- https://git.boergmann.it/src/branch/main/install.sh | sudo sh
 | 
			
		||||
curl -o- https://git.boergmann.it/klaas/shellskripte/raw/branch/main/install.sh | sh
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										32
									
								
								install.sh
								
								
								
								
							
							
						
						
									
										32
									
								
								install.sh
								
								
								
								
							| 
						 | 
				
			
			@ -1,39 +1,33 @@
 | 
			
		|||
#!/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
 | 
			
		||||
 | 
			
		||||
USER_NAME=${SUDO_USER:-$USER}
 | 
			
		||||
USER_HOME=$(eval echo "~$USER_NAME")
 | 
			
		||||
 | 
			
		||||
# 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
 | 
			
		||||
sudo apt install nala -y
 | 
			
		||||
sudo 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/raw/branch/main/configs/zshrc -O $USER_HOME/home/klaas/.zshrc
 | 
			
		||||
git clone https://git.boergmann.it/klaas/shellskripte
 | 
			
		||||
cd shellskripte
 | 
			
		||||
 | 
			
		||||
cp ./configs/zshrc $USER_HOME/home/klaas/.zshrc
 | 
			
		||||
 | 
			
		||||
# ssh Keys für alle Maschinen
 | 
			
		||||
wget https://git.boergmann.it/klaas/shellskripte/raw/branch/main/ssh/public_keys -O $USER_HOME/.ssh/authorized_keys
 | 
			
		||||
cp ./ssh/public_keys $USER_HOME/.ssh/authorized_keys
 | 
			
		||||
 | 
			
		||||
# ssh Password Authenitcatoon no
 | 
			
		||||
wget https://git.boergmann.it/klaas/shellskripte/raw/branch/main/ssh/ssh_password
 | 
			
		||||
./ssh_password -n
 | 
			
		||||
./ssh/ssh_password -n
 | 
			
		||||
 | 
			
		||||
cd ..
 | 
			
		||||
# install neovim
 | 
			
		||||
cd ..
 | 
			
		||||
git clone https://github.com/neovim/neovim
 | 
			
		||||
cd neovim
 | 
			
		||||
git checkout stable
 | 
			
		||||
make CMAKE_BUILD_TYPE=RelWithDebInfo
 | 
			
		||||
sudo make install
 | 
			
		||||
cd ..
 | 
			
		||||
rm -Rf neovim
 | 
			
		||||
 | 
			
		||||
# config file for nvim
 | 
			
		||||
mkdir ~/.config/nvim
 | 
			
		||||
| 
						 | 
				
			
			@ -59,7 +53,7 @@ yarn install
 | 
			
		|||
yarn build
 | 
			
		||||
 | 
			
		||||
# aufräumen
 | 
			
		||||
rm -Rf ~/install
 | 
			
		||||
rm -Rf $USER_HOME/shellskripte
 | 
			
		||||
 | 
			
		||||
# zsh nutzen
 | 
			
		||||
usermod -s /bin/zsh $USER_NAME
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue